Original Post
I''m curious, how do many of you layout your code? I''ve tried many methods and haven''t been satisfied with one of them. Let me give you some examples of what I mean:
I''ve tried making a series of objects that represent each "scene" in the game. The problem: What if I want to display two or more scenes at once?
I''ve tried making a class for each item in a scene. A player class, background class, etc. The problem here is, each class still has its own D3D code. What if two objects use the same texture? Now I''m wasting memory.
I''ve tried keep the D3D code out of the classes, but that seems to be defeating the purpose of the classes. They''re becomming not much more than data containers with no functionality in them.
Does anybody have more efficient methods they might want to share?
----
"Caw, caw, BANG f**k I''m dead!" --The Crow