Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task-1 done #88

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

task-1 done #88

wants to merge 7 commits into from

Conversation

GDM-git
Copy link
Collaborator

@GDM-git GDM-git commented May 24, 2021

No description provided.

{
}

CubeWindow::~CubeWindow()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем писать деструктор, который ничего не делает?

#include <QWindow>

struct Vertex_Data {
Vertex_Data()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Конструкторы лишние

private:
QMatrix4x4 m_projection_matrix;
QOpenGLShaderProgram m_shader_program;
QOpenGLTexture *m_shader_texture;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Используйте умные указатели

Copy link
Collaborator

@Nvoid09 Nvoid09 May 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::shared_ptr<QOpenGLTexture> m_shader_texture;


void main(void)
{
//gl_FragColor = qt_ColorSet;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Удалите неиспользуемый код (который закомментирован)

void main(void)
{
gl_Position = qt_ModelViewProjectionMatrix * qt_Vertex;
qt_TexCoord0 = qt_MultiTexCoord0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

префикс qt_ в названиях мне не понятен если честно :)

@GDM-git
Copy link
Collaborator Author

GDM-git commented May 26, 2021

Исправил указанные недочёты в программах 1, 2, 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants