Hi,
i think i’m gonna touch the advanced OpenGL programming now. Since my program become bigger and bigger, i started to organize it a bit. Therefore i have a controller class, that handles everything.
Problem: I set some callback functions. But these need to affect some things in my controller class. So my question, is there a way to pass some custom parameter to the callback functions??
[QUOTE=3DPrgmer;1283730]
Problem: I set some callback functions. But these need to affect some things in my controller class. So my question, is there a way to pass some custom parameter to the callback functions??[/QUOTE]
Not as a function parameter, but glfwSetWindowUserPointer() and glfwGetWindowUserPointer() can be used to associate user data with each window.
I experienced a couple OpenGL instructional exercises, did a heap of pursuits however can’t locate a decent answer for my issue