Skip to main content
gamedev.net
🔒 Locked

Workspace Quad

Started by Zen721 Apr 29, 2006 at 2:17 PM 1 replies 800+ views
Original Post
Zen721
Zen721
How should i write a code if i want to make a quad that will be as same size as my workspace (2D) with function glBegin(GL_QUADS) //which parameters i have to have whit reshape func ??? i dont know is this question is good
Zakwayda
Zakwayda
You probably want orthographic projection mode, using glOrtho(). Using this function and appropriate vertex coordinates, you can render a quad which covers whatever portion of the window you wish (the whole thing or just a part of it, depending on what you mean by 'workspace').
Zen721
Zen721
OK Thats what i want to know
Keep On Cooding thanks :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.