beatnik
02-21-2001, 10:02 AM
I'm just getting started with OpenGL, but I've had a good amount of experience with (and really prefer) heavily Object Oriented design.
So I have to ask: is a game program which sets up, for instance, a window- instance class (for purposes of keeping all the code encapsulated) that calls all of the gl setups, destroy functions, &tc going to slow down the program?
I would think that since the compiler is treating it as an object that the instructions and variables dealing with a "window" class would all be in the same area in memory and speed it up... am I wrong here?
Having all brand new hardware, I'm not planning on it being an issue until I get into advanced stuff, but I don't want to start with bad habits.
<BEATNIK>
So I have to ask: is a game program which sets up, for instance, a window- instance class (for purposes of keeping all the code encapsulated) that calls all of the gl setups, destroy functions, &tc going to slow down the program?
I would think that since the compiler is treating it as an object that the instructions and variables dealing with a "window" class would all be in the same area in memory and speed it up... am I wrong here?
Having all brand new hardware, I'm not planning on it being an issue until I get into advanced stuff, but I don't want to start with bad habits.
<BEATNIK>