Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3716 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Apr 3, 2005, 10:51:47 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: now the text is really placed on top of a given world-entity

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  
    5555#include <string.h>
    5656
     57#include "graphics_engine.h"
    5758#include "p_node.h"
    5859#include "vector.h"
     
    272273      printf("test %f %f %f,\n", tmp[0], tmp[1], tmp[2]);
    273274      pos.x = tmp[0];
    274       pos.y = tmp[1];
     275      pos.y = GraphicsEngine::getInstance()->getResolutionY() - tmp[1];
    275276      pos.z = tmp[2];
    276277    }
  • orxonox/branches/textEngine/src/lib/graphics/graphics_engine.h

    r3681 r3716  
    2626  int setGLattribs(void);
    2727  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;}
    2834  int resolutionChanged(SDL_ResizeEvent* resizeInfo);
    2935  void listModes(void);
Note: See TracChangeset for help on using the changeset viewer.