i'm making my own 2d engine using sdl & opengl, but i need some "suggestions"...
I have everything declared using classes, but some classes needs other classes, for example cAnimation needs cTextureManager, how to accomplish this?
In practice, i need to have some classess accessible from others, but i can't understand how to make this.
I tried doing something like this:
but naturally it gives error "class cTextureManager g_TextureManager" (?g_TextureManager@@3VcTextureManager@@A) already defined in CTextureManager.obj"
Can somebody explain me how to do that?