Changeset 21 for trunk/src/test-map.cpp
- Timestamp:
- Jun 29, 2010, 2:27:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/test-map.cpp
r20 r21 32 32 int nlayers = 0; 33 33 34 /* Player coordinates */ 35 int playerx = 0, playery = 0; 36 34 37 // Load Bitmaps And Convert To Textures 35 38 void LoadGLTextures(void) … … 197 200 198 201 for (int i = 0; i < nlayers; i++) 202 { 203 glPushMatrix(); 204 if (i == 2) 205 glTranslatef(playerx, playery, 0.0f); 199 206 PutMap(layers[i], width, height); 207 glPopMatrix(); 208 } 200 209 } 201 210 … … 217 226 218 227 video->Refresh(33.33333f); 228 229 SDL_GetMouseState(&playerx, &playery); 219 230 220 231 /* This could go in a separate function */
Note: See TracChangeset
for help on using the changeset viewer.