Положение вершины C++ OpenGL не меняется с 0,0 ⇐ C++
-
Anonymous
Положение вершины C++ OpenGL не меняется с 0,0
I'm a beginner in both C++ and OpenGl and trying to learn the latter with this series: https://thecherno.com/opengl. When trying to render a triangle the third vertex position displays at 0.0 and doesn't change, no matter what I change it to. The order of which set of floats renders which vertex is also different than in that YT series. Not an issue though.
float positions[6] = { 0.8f, -0.8f, // btm right corner -0.8f, -0.8f, // btm left corner 0.0f, 0.8f // top center
Источник: https://stackoverflow.com/questions/780 ... g-from-0-0
I'm a beginner in both C++ and OpenGl and trying to learn the latter with this series: https://thecherno.com/opengl. When trying to render a triangle the third vertex position displays at 0.0 and doesn't change, no matter what I change it to. The order of which set of floats renders which vertex is also different than in that YT series. Not an issue though.
float positions[6] = { 0.8f, -0.8f, // btm right corner -0.8f, -0.8f, // btm left corner 0.0f, 0.8f // top center
Источник: https://stackoverflow.com/questions/780 ... g-from-0-0
Мобильная версия