Original Post
Hi! My question is: Let''s say you have a bunch of routines you use a lot that are all related (eg. DirectX/OpenGL initialization). You want to be able to reuse them in other projects. Would you put them in a class or a singleton or just leave them as plain old functions? Would you have them as functions in a namespace? For example, I have a class that handles initializing OpenGL and a class that loads my map files. I wasn''t sure if this is the right way to do things, because always calling functions through classes might be slow. I appreciate any input.
Firebird Entertainment