Changeset 1879 in orxonox.OLD for orxonox/trunk/core/world.cc
- Timestamp:
- May 8, 2004, 1:12:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/world.cc
r1872 r1879 117 117 \brief Draws the World and all Objects contained 118 118 119 Calls the draw function of all: Objects, Players, Environement 119 Calls the draw function of all: Objects, Players, Environement. This is the core of all graphics here. 120 120 */ 121 121 void World::drawWorld(void) 122 122 { 123 /* first draw all players */ 123 124 playerList* tmpPlayer = lastPlayer; 124 125 Player* player = tmpPlayer->player; … … 128 129 tmpPlayer = tmpPlayer->next; 129 130 } 131 /* second draw all npcs */ 130 132 npcList* tmpNPC = lastNPC; 131 133 while( tmpNPC != null ) … … 134 136 tmpNPC = tmpNPC->next; 135 137 } 138 /* now draw the rest of the world: environement */ 139 glColor3f(0.0, 1.0, 0.0); 140 glBegin(GL_LINES); 141 glVertex3f(0.0, -10.0, 0.0); 142 glVertex3f(0.0, 200.0, 0.0); 143 144 glVertex3f(5.0, -10.0, 0.0); 145 glVertex3f(5.0, 200.0, 0.0); 146 147 glVertex3f(-5.0, -10.0, 0.0); 148 glVertex3f(-5.0, 200.0, 0.0); 149 150 glVertex3f(10.0, -10.0, 0.0); 151 glVertex3f(10.0, 200.0, 0.0); 152 153 glVertex3f(-10.0, -10.0, 0.0); 154 glVertex3f(-10.0, 200.0, 0.0); 155 156 glVertex3f(15.0, -10.0, 0.0); 157 glVertex3f(15.0, 200.0, 0.0); 158 159 glVertex3f(-15.0, -10.0, 0.0); 160 glVertex3f(-15.0, 200.0, 0.0); 161 162 glVertex3f(20.0, -10.0, 0.0); 163 glVertex3f(20.0, 200.0, 0.0); 164 165 glVertex3f(-20.0, -10.0, 0.0); 166 glVertex3f(-20.0, 200.0, 0.0); 167 168 glVertex3f(25.0, -10.0, 0.0); 169 glVertex3f(25.0, 200.0, 0.0); 170 171 glVertex3f(-25.0, -10.0, 0.0); 172 glVertex3f(-25.0, 200.0, 0.0); 173 glEnd(); 174 175 136 176 } 137 177
Note: See TracChangeset
for help on using the changeset viewer.