#include "ExDefine.h"
Go to the source code of this file.
Functions | |
void | InitBasicObjectList (void) |
void | InitString (void) |
void | RenderBitmapString (float x, float y, void *font, const char *string) |
void | EnterOrthoMode (void) |
void | LeaveOrthoMode (void) |
Variables | |
unsigned int | GRILLE |
|
Definition at line 74 of file ExPredefinedObject.cpp. Referenced by ExCObject::ShowInfo().
00075 { 00076 glMatrixMode(GL_PROJECTION); 00077 glPushMatrix(); 00078 glLoadIdentity(); 00079 glOrtho( 0,glutGet(GLUT_WINDOW_WIDTH),glutGet(GLUT_WINDOW_HEIGHT),0,0,1); 00080 glMatrixMode(GL_MODELVIEW); 00081 glLoadIdentity(); 00082 } |
|
Definition at line 26 of file ExPredefinedObject.cpp. Referenced by SetGlutCallBack().
00027 { 00028 float i; 00029 glNewList(GRILLE,GL_COMPILE); 00030 glDisable(GL_LIGHTING); 00031 glBegin(GL_LINES); 00032 glColor3f(1.0f,0.0f,0.0f); 00033 for ( i=-100;i<101;i++) 00034 { 00035 glVertex3f(0.0f, i, 100.0f); 00036 glVertex3f(0.0f, i,-100.0f); 00037 glVertex3f(0.0f, 100.0f, i); 00038 glVertex3f(0.0f,-100.0f, i); 00039 } 00040 glColor3f(0.0,1.0f,0.0f); 00041 00042 for ( i=-100;i<101;i++) 00043 { 00044 glVertex3f( 100.0f, i,0.0f); 00045 glVertex3f(-100.0f, i,0.0f); 00046 glVertex3f( i, 100.0f,0.0f); 00047 glVertex3f( i,-100.0f,0.0f); 00048 } 00049 glColor3f(0.0,0.0f,1.0f); 00050 for (i=-100;i<101;i++) 00051 { 00052 glVertex3f( 100.0f,0.0f, i); 00053 glVertex3f(-100.0f,0.0f, i); 00054 glVertex3f( i,0.0f, 100.0f); 00055 glVertex3f( i,0.0f,-100.0f); 00056 } 00057 glEnd(); 00058 glEnable(GL_LIGHTING); 00059 glEndList(); 00060 00061 00062 } |
|
|
|
Definition at line 84 of file ExPredefinedObject.cpp. Referenced by ExCObject::ShowInfo().
00085 { 00086 glMatrixMode( GL_PROJECTION ); 00087 glPopMatrix(); 00088 glMatrixMode( GL_MODELVIEW ); 00089 } |
|
Definition at line 64 of file ExPredefinedObject.cpp. Referenced by ExManagerConsole::DrawConsole(), ExManagerWindow::ShowFps(), and ExCObject::ShowInfo().
00065 { 00066 const char *c; 00067 glRasterPos2f(x, y); 00068 for (c=string; *c != '\0'; c++) 00069 { 00070 glutBitmapCharacter(font, *c); 00071 } 00072 } |
|
Definition at line 33 of file ExPredefinedObject.h. |