Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

OptimisticHuman

"Function" variables

This topic is 5865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, here''s my problem (sorry for my horrible english and wrongful use of terminology I wrote a nice wrapper library for Direct3D8 a while ago, then formatted one of my hard drives, and oh! the horror!, my library huge header file got deleted... and now I don''t remember how I managed to code this : In my wrapper library, I call some custom initialisation function (such as the loading of d3d objects after alt-tabbing, etc...). Here''s what the code looks like: // Wrapper.cpp typedef VOIDPROC // (this is the part I forgot) VOIDPROC LoadD3DObjects; VOIDPROC KillD3DObjects; void MainInit(void) { InitDirect3D(); if(LoadD3DObjects != NULL) Load3D3Objects(); } // Project.cpp void LoadMyAppObjects(void) { LoadSomeStuff(); LoadSomeMore(); } void KillD3DObjects(void) { KillSomeStuff(); KillSomeMore(); } void MainProc(void) { LoadD3DObjects = LoadMyAppObjects(); KillD3DOBjects = KillMyAppObjects(); InitDirect3D(); } I only need to remember how to define my VOIDPROC variable type in order to get my library back on track. Any would be greatly appreciated. Thanks

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!