diff options
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_ICanvas.h')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_ICanvas.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/source/gameengine/Rasterizer/RAS_ICanvas.h b/source/gameengine/Rasterizer/RAS_ICanvas.h index 2ab06be26e7..826fe732b94 100644 --- a/source/gameengine/Rasterizer/RAS_ICanvas.h +++ b/source/gameengine/Rasterizer/RAS_ICanvas.h @@ -130,6 +130,26 @@ public: GetHeight( ) const = 0; + virtual + int + GetMouseX( int x + )=0; + + virtual + int + GetMouseY( int y + )= 0; + + virtual + float + GetMouseNormalizedX( int x + )=0; + + virtual + float + GetMouseNormalizedY( int y + )= 0; + virtual const RAS_Rect & GetDisplayArea( @@ -172,16 +192,25 @@ public: int y )=0; + virtual + RAS_MouseState + GetMouseState() + { + return m_mousestate; + } + virtual void MakeScreenShot( const char* filename )=0; +protected: + RAS_MouseState m_mousestate; #ifdef WITH_CXX_GUARDEDALLOC public: - void *operator new( unsigned int num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_ICanvas"); } + void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_ICanvas"); } void operator delete( void *mem ) { MEM_freeN(mem); } #endif }; |