~openhommdev/openhomm/gui

« back to all changes in this revision

Viewing changes to src/render/hrRender.hpp

  • Committer: Roman Fomin
  • Date: 2010-02-17 07:04:34 UTC
  • Revision ID: rfomin@gmail.com-20100217070434-r0v5o1ebkrxl53v2
compressed textures
zoom returns :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "hrScene.hpp"
20
20
#include "hrCache.hpp"
21
21
 
22
 
#ifndef GL_TEXTURE_RECTANGLE_ARB
23
 
#define GL_TEXTURE_RECTANGLE_ARB 0x84F5
24
 
#endif
25
 
 
26
 
#ifndef GL_TEXTURE_RECTANGLE_EXT
27
 
#define GL_TEXTURE_RECTANGLE_EXT 0x84F5
28
 
#endif
29
 
 
30
 
#ifndef GL_TEXTURE_RECTANGLE_NV
31
 
#define GL_TEXTURE_RECTANGLE_NV 0x84F5
32
 
#endif
33
 
 
34
22
class hrRender : public QGLWidget
35
23
{
36
24
    Q_OBJECT
45
33
    ~hrRender();
46
34
 
47
35
    void setScene(hrScene* scene);
 
36
    void setZoom(float zoom);
48
37
 
49
38
private:
50
39
    hrScene* scene;
51
40
    GLuint target;
 
41
    float zoom;
52
42
 
53
43
    void drawSprite(GLuint tx, QRect r, bool horizontal = false, bool vertical = false);
54
44
    void checkExtensions();