Jump to content
  • Advertisement

Archived

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

TheGecko

OpenGL OpenGL viewport problem...need help

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

Hey guys...ok I have this little problem.I''m making a terrain editor using MFC and one of my views is an OpenGL view.However,it''s not turning out properly.It''s kinda hard to explain in words so I''ve posted a link to my app.Included is the executable and the cpp source code that handles my OpenGL view.Keep resizing the OpenGL view (the one on the bottom right with the 2 triangles) and you''ll see what I mean.I''m not sure what it is I''m doing wrong.So can you guys please download it and take a look at the source code? I would REALLY appreciate it.Thanx! Here''s the link: http://members.fortunecity.com/thegecko1/editor.zip It''s a 270KB download (If the fortune city website tells you it doesn''t permit links to it''s files then just copy the link to your browser and open it there.)

Share this post


Link to post
Share on other sites
Advertisement
i assume u want the quad to stay the same size relative to the window
try this winW.. is small window , sys... is the whole screen

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glViewport(0,0,winWidth,winHeight);
glOrtho(0,systemSCREENWIDTH,0,systemSCREENHEIGHT,-1.0,1.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

http://members.xoom.com/myBollux

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!