🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

the viewport is bigger than the screen

Started by
0 comments, last by okapota 23 years, 11 months ago
hi, i dont know if it is an opengl question, or an mfc question, but i ran into a little big problem. my application consists three viewports, top/side/perspective. but when i want to draw a grid, the coordinates of the lines, are the screen coordinats, so if i size it down, the lines are to close to each other, is there any way around this, or i should change the spacing between the lines mnualy based on the screen size? the smae happs with the 3d opengl screen, if the screen isnt big enough for the primitives, nothing will be drawn, instead of just parts of it. should i glEnable some sort of clipping algorithm? what else can i do?
Advertisement
experiment with these
glViewport(..
glScissor(..

This topic is closed to new replies.

Advertisement