I suck at using at creating/using classes
gamedev.net
I'm a complete newbie so sorry if this is completely dumb. I'm working on a game engine and I opted to go with an inheritance hierarchy for my scene code I have a SceneElement as the root class and anything that goes into a scene such as a model, camera, light source, skybox etc inherit itclass SceneElement {};class Model : public SceneElement, public Transformable, public Renderable {};class Camera : public SceneElement, public Transfo
0 Yorumlar ·0 hisse senetleri ·222 Views