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

question

Started by LinX Jan 19, 2002 at 1:12 AM 1 replies 350+ views
Original Post
LinX
LinX
what do you tink of creating a ''drawing'' class which take cares of all drawing stuff.. i''ve done this and pass a pointer of this class to the various objects which needs to draw stuff to the screen..some samples i saw don''t keep the drawing stuff in a class just functions..which is better wae ? thanks.
Starwolf
Starwolf
I do sortof the same.. I''ve created classes for gfx, sound, input, etc, and I''m storing a pointer to these in a Core class all my other classes have an extern reference to. Works like a charm for me, but there might be some downfalls I''m unaware of.

Topic Locked

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

Sign in to reply to this topic.