ok i am almost done with version 0.7 of my open engine that i am going to release soon (so look for it in project announcements forum)
I'm just having a problem with accessing the video driver pointer, i built off some off of the tutorials so its defined in main along with the device.
problem is, i need my sprite loading functions (among a few others) access it so i can call :
// draw intro bitmap, hack hack will replace this with a avi loader
// when i learn how to
driver->draw2DImage(intro, core::position2d<s32>(50,50), core::rect<s32>(0,0,342,224), 0, video::SColor(255,255,255,255), true);
i basically need a way to globally be able to call the driver pointer from any function within any class.
thank you for your help in advance
pointer issues
-
Baal Cadar
- Posts: 377
- Joined: Fri Oct 28, 2005 10:28 am
- Contact:
Re: pointer issues
Do you really? I doubt that. This sounds like design flaw. Try to streamline your design in a way, that only a specific amount of components, for specific, clearly outlined tasks, need to access the video driver. It should then be easy to pass the driver to these class instances during initialisation.itsjuan2001 wrote:I basically need a way, to globally be able, to call the driver pointer from any function within any class.