Jump to content
  • Advertisement
Sign in to follow this  
sapan3112

Global object constructors uses Run time computed values. Error

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

I(Beginner) am currently developing CARROM GAME in Cplusplus(C++) and OpenGL. All the geometric primitives are computed or initialized in terms of WINDOWSIZE(getGlut-SCREEN Height) which will only available after glutInit() call in main(). Now my problem is that I needed to declare some class objects as global to keep up with game life-time. Now error is that we can't use getGlut(Screen-height) before glutInit(). Plz someone give some clue.

Share this post


Link to post
Share on other sites
Advertisement
Yeah, that I can do to have uniform display. But I wanted to do that exactly using resolution of system. For the time being I am using 1024 as window size parameter and other computation which is perfect for my system. But is that perfect for some other systems as well?

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!