- Timestamp:
- Apr 3, 2005, 10:51:47 PM (20 years ago)
- Location:
- orxonox/branches/textEngine/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/glfont.cc
r3715 r3716 55 55 #include <string.h> 56 56 57 #include "graphics_engine.h" 57 58 #include "p_node.h" 58 59 #include "vector.h" … … 272 273 printf("test %f %f %f,\n", tmp[0], tmp[1], tmp[2]); 273 274 pos.x = tmp[0]; 274 pos.y = tmp[1];275 pos.y = GraphicsEngine::getInstance()->getResolutionY() - tmp[1]; 275 276 pos.z = tmp[2]; 276 277 } -
orxonox/branches/textEngine/src/lib/graphics/graphics_engine.h
r3681 r3716 26 26 int setGLattribs(void); 27 27 int setResolution(int width, int height, int bpp); 28 /** \returns the x resolution */ 29 inline int getResolutionX(void) {return this->resolutionX;} 30 /** \returns the y resolution */ 31 inline int getResolutionY(void) {return this->resolutionY;} 32 /** \returns the Bits Per Pixel */ 33 inline int getbbp(void) {return this->bitsPerPixel;} 28 34 int resolutionChanged(SDL_ResizeEvent* resizeInfo); 29 35 void listModes(void);
Note: See TracChangeset
for help on using the changeset viewer.