Skip to main content
GameDev.net gamedev.net
🔒 Locked

Single function .h file

Started by CyberSlag5k Jan 21, 2005 at 8:50 AM 1 replies 500+ views
Original Post
CyberSlag5k
CyberSlag5k
I'm doing an openGL project and rather than scroll all over creation looking for my renderScene() function (the project is small and doesn't really warrent having more than just a main.cpp), I've created a render.h file that contains nothing but that function. Can anyone see anything wrong with doing it that way? Is this just blatently bad coding practice?
Without order nothing can exist - without chaos nothing can evolve.
nickwinters
nickwinters
There's nothing really wrong with that. If it's as small as you say, there probably isn't any need to do anything more than that.
CyberSlag5k
CyberSlag5k
Thanks. Was just checking.
Without order nothing can exist - without chaos nothing can evolve.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.