Skip to main content
gamedev.net
🔒 Locked

Menu

Started by Digital2005 1 reply 700+ views
Original Post
Digital2005
Digital2005
I'm trying to integrate a menu, using Opengl to a game i play. Basically i want it to be a small box in the left side which has tick boxs or something on it. (eg Tickbox for crosshair, HUD, FPS) How can i go about drawing a menu. A friend said via glViewport Thanks in advance
Digital2005
Digital2005
that would be about it. I know how to draw the menu (well i think i do now) its just a question of linking it, how could i go about doing that? here are some snippets of how i think it should be adapted.

What would i have to put in my main.cpp to get this function to work? can you draw boxes with texCoordPointer? if so would what do i need to call? lol

{
glBegin(GL_QUADS);
glVertex3f(x,y,z);
glVertex3f(x+width,y,z);
glVertex3f(x+width,y+height,z);
glVertex3f(x,y+height,z);
glEnd();
}

thanks in advance again.

Topic Locked

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

Sign in to reply to this topic.