#### Archived

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

# Ortho and extern problem

This topic is 5149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

hello, I am working on a little tie fighetr game, and i wanted it to have a radar in the bottom of the screen. to do this i found out that i need to use ortho, but all the tutorials i found wernt much use to me (im just like that). Here is a function i made to draw it:
void DrawRadar()
{
//I NEED TO TURN ON ORTHO HERE

glDisable(GL_TEXTURE_2D);
glColor3f(0.5,0.5,1.0);
glVertex2f(-0.5,0.5);
glVertex2f(0.5,0.5);
glVertex2f(0.5,-0.5);
glVertex2f(-0.5,-0.5);
glEnd();
glBegin(GL_POINTS);
glColor3f(1.0,0.0,0);
glVertex2f(g_Camera.m_vPosition.x/10,g_Camera.m_vPosition.z/10);
glEnd();
glColor3f(1.0,1.0,1.0);
glEnable(GL_TEXTURE_2D);
//I NEED TO TURN ON PERSPECTIVE HERE

}

Also, i have been trying in vain to make variables external. I have put extern infront of them, but it dosnt work... Anyone have any idea? thx -------- "Here lies a toppled God, His fall was not a small one, We but built his pedastle, A narrow, and a tall one" Frank Herbert (Dune:Messiah)

##### Share on other sites
Well, i managed to figure the extern one out, not sure bout the radar tho...

1. 1
2. 2
3. 3
4. 4
Rutin
17
5. 5

• 11
• 37
• 12
• 12
• 11
• ### Forum Statistics

• Total Topics
631413
• Total Posts
2999945
×