Jump to content
  • Advertisement
Sign in to follow this  
bigbrother2000

unable to use initialised structure during render

This topic is 4983 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

hi, i've created a two dimensional array which has individual variables for each member, they have been initialised when directx is initialised and it finds these no problem: (firstmaze.maze[9][7].north = 1) with .north been the variable set to 1, however when i try to retrieve information during the render function of my maze array, if (firstmaze.maze[9][7].north == 1) it says .north must have a class/struct/union type and that firstmaze and maze need defining. Is there a way i access information held in the 2dimensional array during render?

Share this post


Link to post
Share on other sites
Advertisement
You must make sure the firstmaze object was declared and defined in the same scope of your render function (or must be global) or if u use classes
then it must be a member of the class implementing the render function.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!