Questions tagged [glfw]
GLFW is a cross-platform library for creating and interacting with windows with an OpenGL context.
130 questions
1 vote
0 answers
77 views
glBufferData on GL_DRAW_INDIRECT_BUFFER causes rendering isues
I've been writing a renderer in C++ using OpenGL. Recently I wanted to implement indirect batch rendering using glMultiDrawElementsIndirect. When I try to test this ...
0 votes
0 answers
361 views
How do I fix java.lang.ClassNotFoundException: org.lwjgl.glfw.GLFW
I have not used Java in a while and thought I might try LWJGL with OpenGL and GLFW. I am using Apache Maven as a Build System. It lets me compile the program, but when I run it, it says: ...
1 vote
1 answer
164 views
Blinding flash. Set background color when creating new window
Using GLFW to create the main window Example c++ ...
0 votes
1 answer
1k views
How to design an EventBus(guided by the pub/sub pattern)
I'm working on my game engine, and was faced with the fact, that i don't know how properly design an event system. As a pattern i choose Pub/Sub with an event bus, but i don't know where i should '...
6 votes
3 answers
2k views
How to install game with dependencies on Linux?
I am creating a game using C and some libraries. I wish to not require my users to download anything but the game as most games are self contained. What is the usual process for compiling and ...
0 votes
0 answers
219 views
Rotate game object to the mouse pointer
I am making a game from scratch using OpenGl and GLFW. Since my motivation is to learn computer graphics, I am using my own explicit math functions for rotation and translation. My current rotation ...
0 votes
1 answer
940 views
Why does speed times delta-time give slow movement?
I'm using glfw's glfwGetTime() function to calculate my time between frames i.e deltaT but when I multiply my desired movement ...
2 votes
0 answers
360 views
why is reported screen size smaller than display size with GLFW full screen window
I'm using GLFW to create a full screen GL application. I'm running it on my Ubuntu 20.04 laptop that has a typical 1920:1080 display, at least that's the screen resolution reported under Settings->...