neptune3d
04-11-2006, 05:33 AM
Hello all,
Please forgive the basic question :)
I am a 2nd year Software Engineering Student at a local college starting to learn OpenGL. I have recently been using c and made the switch to c++ a few months ago but this is my first run into making windows proggries from scratch.
After making a few test apps I have decided to seperate my code to different files but am wondering if I am going too far. My Original thought was to have a main.cpp with only winmain, have the event handler off in its own .h/.cpp pair, a setup.cpp/.h pair that would register the class, pixelformat, etc and create the window and finally a displayFrame pair that would have all the rendering stuff.
My question is should I be seperating windows functions out to their own files or for implementation, standards, speed, etc, would it be best to keep them all in the same file?
(then I have to figure out why my handle isn't passing from one file to the next :) )
Thx all,
Nep
Please forgive the basic question :)
I am a 2nd year Software Engineering Student at a local college starting to learn OpenGL. I have recently been using c and made the switch to c++ a few months ago but this is my first run into making windows proggries from scratch.
After making a few test apps I have decided to seperate my code to different files but am wondering if I am going too far. My Original thought was to have a main.cpp with only winmain, have the event handler off in its own .h/.cpp pair, a setup.cpp/.h pair that would register the class, pixelformat, etc and create the window and finally a displayFrame pair that would have all the rendering stuff.
My question is should I be seperating windows functions out to their own files or for implementation, standards, speed, etc, would it be best to keep them all in the same file?
(then I have to figure out why my handle isn't passing from one file to the next :) )
Thx all,
Nep