OK, this is very stupid, but…
It seems that all tutorials are focused on manipulating screen.
Fine. But I have not found a single explanation of very basic concept, without getting into "pipe etc ". Ended up with “multiple window definition” error.
So here is something, in pseudo code , I like to get confirmed from the group
setting up glut :
optionally verify non glut headers / libraries - if required
initialize glut
setup simple "main"basic “window” - size, color etc.
setup buffering
add “callbacks” as required (display, keyboard …)
start “main loop” - and watch for smoke
Now for meat and potatoes
-
can I keep the basic glut setup - including "main loop "
in C++ class constructor?
If so - is there a real advantage to do so ?
The OpenGL class will be active until the program is terminated , done. -
Is there a way to put the OpenGL “callbacks” functions as members of the class?
I get " has to be static" and "cannot be static ".
It does not matter if the callbacks are “global” - defined outside class, but it woudl be more organized if they are class functions.
It it is frowned on asking C++ (openGL) questions here, just ignore me.