OpenGL/C++ 3D Tutorial 29 - Window creation function with custom options!

preview_player
Показать описание
Support:
- Udemy courses coming soon!

Links:

-C++ Tutorials:
-SFML:
-SFML Sidescroller:
-SFML Open World RPG:
-SFML Simple Games and Apps:
-SFML Games in ONE VIDEO:
-Livestreams:

#gamedeveloper #2dGames #programming
Рекомендации по теме
Комментарии
Автор

Nice way of creating a lot of bugs down the road with hardcoded values. But I guess I should check out your series now that I am looking for a job.

alexeiabrikossov
Автор

Hello Suraj Sharma, I am having a strange error I managed to avoid but I want to let you know since it indicates big problems with the shader class.

When I added the variables for the gl major and minor version in the shader class, somehow the main thread ran out of space and chose to erase other variables in the shader class. I decided to use only one integer instead of two to save space and my code works again. I did use an extra variable in my class you did not use, however I am concerned that there was such little space left on the thread. I believe this is because we are using GLuints instead of normal integers. They require so many bytes. Is there a reason we are using GLuints? I noticed most of them in the shader class are set equal to 0.

livinghomunculus
Автор

I am trying to read the values for title, window width and window height from an ini file. The wdith and height work just fine but when it comes to const char* I get a ton of problems, when I fixed them and read a std::string as a line I then used title = line.c_str(); and no errors but then a series of problems ensued with glew initialization. Has anyone managed to do this and if so how?
Thanks in advance

TheCodingSeal