Changeset 2936 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 21, 2004, 4:02:26 AM (20 years ago)
- Location:
- orxonox/trunk/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/framework.cc
r2933 r2936 35 35 return 0; 36 36 } 37 38 printf ("%i, %i\n", wHandler.screen->w, wHandler.screen->h); 37 39 if (argc>=3) 38 40 obj = new Object (argv[1], atof(argv[2])); … … 97 99 printf("MouseButton %d pressed at (%d,%d).\n", 98 100 event.button.button, event.button.x, event.button.y); 99 rotatorV = ( 250-event.button.x) / 500.0 /100;101 rotatorV = ( (float)wHandler.screen->w/2 -event.button.x) / (float)wHandler.screen->w / 100.0; 100 102 } 101 103 -
orxonox/trunk/importer/windowHandler.cc
r2931 r2936 63 63 } 64 64 SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 1 ); 65 if ( SDL_SetVideoMode(width, height, 0, flags) == NULL ) {65 if ( (screen = SDL_SetVideoMode(width, height, 0, flags)) == NULL ) { 66 66 return FALSE; 67 67 } -
orxonox/trunk/importer/windowHandler.h
r2931 r2936 29 29 GLvoid KillGLWindow(GLvoid); 30 30 BOOL CreateGLWindow(char* title, int width, int height, int bits, BOOL fullscreenflag); 31 SDL_Surface* screen; 31 32 private: 32 33 int InitGL(GLvoid);
Note: See TracChangeset
for help on using the changeset viewer.