SimpleOpenGL2App.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef SIMPLE_OPENGL2_APP_H
  2. #define SIMPLE_OPENGL2_APP_H
  3. #include "../CommonInterfaces/CommonGraphicsAppInterface.h"
  4. class SimpleOpenGL2App : public CommonGraphicsApp
  5. {
  6. protected:
  7. struct SimpleOpenGL2AppInternalData* m_data;
  8. public:
  9. SimpleOpenGL2App(const char* title, int width, int height);
  10. virtual ~SimpleOpenGL2App();
  11. virtual void drawGrid(DrawGridData data=DrawGridData());
  12. virtual void setUpAxis(int axis);
  13. virtual int getUpAxis() const;
  14. virtual void swapBuffer();
  15. virtual void drawText( const char* txt, int posX, int posY);
  16. virtual void setBackgroundColor(float red, float green, float blue);
  17. virtual int registerCubeShape(float halfExtentsX,float halfExtentsY, float halfExtentsZ, int textureIndex = -1, float textureScaling = 1)
  18. {
  19. return 0;
  20. }
  21. virtual int registerGraphicsUnitSphereShape(EnumSphereLevelOfDetail lod, int textureId=-1)
  22. {
  23. return 0;
  24. }
  25. virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size);
  26. virtual void registerGrid(int xres, int yres, float color0[4], float color1[4]);
  27. };
  28. #endif //SIMPLE_OPENGL2_APP_H