-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
task-1 done #88
Conversation
src/Galaktionov/task1/CubeWindow.cpp
Outdated
{ | ||
} | ||
|
||
CubeWindow::~CubeWindow() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем писать деструктор, который ничего не делает?
src/Galaktionov/task1/CubeWindow.h
Outdated
#include <QWindow> | ||
|
||
struct Vertex_Data { | ||
Vertex_Data() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Конструкторы лишние
src/Galaktionov/task1/CubeWindow.h
Outdated
private: | ||
QMatrix4x4 m_projection_matrix; | ||
QOpenGLShaderProgram m_shader_program; | ||
QOpenGLTexture *m_shader_texture; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Используйте умные указатели
There was a problem hiding this comment.
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;
src/Galaktionov/task1/f_shader.fsh
Outdated
|
||
void main(void) | ||
{ | ||
//gl_FragColor = qt_ColorSet; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
префикс qt_
в названиях мне не понятен если честно :)
Исправил указанные недочёты в программах 1, 2, 3 |
No description provided.