diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-11-02 21:31:54 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-11-02 21:31:54 +0300 |
commit | 7d63f5a7fe7378f9bea9e39282828f74bba47287 (patch) | |
tree | 2266b83cb38b26f3e0274d9bca35fa0c75b16e9b /source/gameengine/VideoTexture/ImageViewport.h | |
parent | db24487449b1340eed2f29394fdbcdf2e7acc3ea (diff) |
VideoTexture: fix compile error with GLint in ImageViewport under osx.
Diffstat (limited to 'source/gameengine/VideoTexture/ImageViewport.h')
-rw-r--r-- | source/gameengine/VideoTexture/ImageViewport.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/gameengine/VideoTexture/ImageViewport.h b/source/gameengine/VideoTexture/ImageViewport.h index 9fd3aeb7ba9..4265906b8f5 100644 --- a/source/gameengine/VideoTexture/ImageViewport.h +++ b/source/gameengine/VideoTexture/ImageViewport.h @@ -49,13 +49,13 @@ public: void setCaptureSize (short * size = NULL); /// get position in viewport - int * getPosition (void) { return m_position; } + GLint * getPosition (void) { return m_position; } /// set position in viewport - void setPosition (int * pos = NULL); + void setPosition (GLint * pos = NULL); protected: /// frame buffer rectangle - int m_viewport[4]; + GLint m_viewport[4]; /// size of captured area short m_capSize[2]; @@ -63,9 +63,9 @@ protected: bool m_whole; /// position of capture rectangle in viewport - int m_position[2]; + GLint m_position[2]; /// upper left point for capturing - int m_upLeft[2]; + GLint m_upLeft[2]; /// buffer to copy viewport BYTE * m_viewportImage; @@ -76,7 +76,7 @@ protected: virtual void calcImage (unsigned int texId); /// get viewport size - int * getViewportSize (void) { return m_viewport + 2; } + GLint * getViewportSize (void) { return m_viewport + 2; } }; |