Jump to content
  • Advertisement

Archived

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

Gilzu

anyone knows a macro/func that builds a RECT?

This topic is 6198 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''m sick and tierd of filling the RECT struct every time i have to use it. isnt there a func/macro that returns RECT? smting like returnrect(0,0,640,480) which return RECT? Gil Micro$oft beta testing: "Does the splash screen works? SHIP IT!!!"

Share this post


Link to post
Share on other sites
Advertisement
When declaring a RECT, it can be initialised:

RECT r = {0, 0, 640, 480};

Or, if you need to fill it out after declaration:

#define SetRect(r,a,b,c,d) r.left = a; r.top = b; r.right = c; r.bottom = d

Share this post


Link to post
Share on other sites

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