Category : opengl

//Planets Object PLANET1(&Planet, &ModelShader); PLANET1.model = &Planet; PLANET1.transform.Dist_f_Parent = glm::vec2(14, 14); PLANET1.setParent(&SUN); Object PLANET2(&Sun_Moon, &ModelShader); PLANET2.model = &Sun_Moon; PLANET2.transform.e_x = 1; PLANET2.transform.Dist_f_Parent = glm::vec2(28, 28); PLANET2.setParent(&SUN); Object PLANET3(&Planet, &ModelShader); PLANET3.model = &Planet; PLANET3.transform.e_x = -0.60; PLANET3.transform.Dist_f_Parent = glm::vec2(42, 42); PLANET3.setParent(&SUN); Object PLANET4(&Sun_Moon, &ModelShader); PLANET4.model = &Sun_Moon; PLANET4.transform.e_x = 0.3; PLANET4.transform.Dist_f_Parent = glm::vec2(56, 56); PLANET4.setParent(&SUN); So ..

Read more

I have QT 6.2.1. I want to use the OpenGL functions manually like with GLFW, just create a window with QT and draw on it with OpenGL core profile. I can’t find any modern tutorial(I’m new in OpenGL) I found this tutorial https://wiki.qt.io/How_to_use_OpenGL_Core_Profile_with_Qt?veaction=edit but it doesn’t work for me. Also, I use CMake build system ..

Read more

I’ve been spending hours in from of my laptop trying to solve this simple problem. I’m a nerbie in OpenGL. May I know what’s the problem? #include <windows.h> #include <stdlib.h> #include <glGL.h> #include <glGLU.h> #include <glglut.h> #include <math.h> void display(); void reshape(int,int); void init() { glClearColor(0.0, 0.0, 0.0, 0.0); } int main(int argc, char** argv) ..

Read more