-
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-3 done #90
base: master
Are you sure you want to change the base?
task-3 done #90
Conversation
src/Galaktionov/task3/CubeWindow.cpp
Outdated
@@ -0,0 +1,151 @@ | |||
#include "CubeWindow.h" | |||
|
|||
std::array<QVector3D, 17> cubes_arr{ |
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::array<QVector3D, 17> cubes_arr{ | |
constexpr std::array<QVector3D, 17> cubes_arr{ |
src/Galaktionov/task3/CubeWindow.cpp
Outdated
QVector3D( 2.0f, 1.0f,-2.5f),QVector3D( 2.0f, 0.0f,-2.5f),QVector3D( 2.0f,-1.0f,-2.5f) | ||
}; | ||
|
||
std::array<Vertex_Data, 24> vertexes{{ |
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::array<Vertex_Data, 24> vertexes{{ | |
constexpr std::array<Vertex_Data, 24> vertexes{{ |
src/Galaktionov/task3/CubeWindow.cpp
Outdated
Vertex_Data{{ 0.5f,-0.5f,-0.5f}, { 0.0f,-1.0f, 0.0f}} | ||
}}; | ||
|
||
std::array<GLuint, 36> indexes{{ |
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::array<GLuint, 36> indexes{{ | |
constexpr std::array<GLuint, 36> indexes{{ |
src/Galaktionov/task3/CubeWindow.cpp
Outdated
Vertex_Data{{ 0.5f,-0.5f,-0.5f}, { 0.0f,-1.0f, 0.0f}} | ||
}}; | ||
|
||
std::array<GLuint, 36> indexes{{ |
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.
Исправил
No description provided.