- Timestamp:
- Jun 29, 2010, 2:27:18 PM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 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 */ -
trunk/src/video.cpp
r18 r21 54 54 55 55 SDL_WM_SetCaption(title, NULL); 56 SDL_ShowCursor(0); 57 SDL_WM_GrabInput(SDL_GRAB_ON); 56 58 57 59 /* Initialise OpenGL */
Note: See TracChangeset
for help on using the changeset viewer.