Jump to content
  • Advertisement
Sign in to follow this  
eltharynd

WT* ?

This topic is 2109 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 was coding something while i stopped 1 hours on some simple math problem...

at first i thought i was doing something wrong but after a while i realized this

	float x = eng->mWidth;
	float y = eng->mHeight;

returned 0 in x... i had to resolve this way

	float xx = eng->mWidth;
	float yy = eng->mHeight;
	float x = (800 / xx);
	float y = (200 / yy);

and everything worked...

can someone explain to me while i cannot include a member of another class in an equation?? did i do something wrong??? please help me understand...

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!