Ghost Context Refactor
[blender-staging.git] / source / gameengine / Rasterizer / RAS_ICanvas.h
index 60b9f0520755e27a47052c096a0c8e62984efb22..d90cbea286e5d8d5524368e1be545932d5ee2189 100644 (file)
@@ -105,6 +105,18 @@ public:
                void 
        SwapBuffers(
        )=0;
+       
+       virtual
+               void
+       SetSwapInterval(
+               int interval
+       )=0;
+
+       virtual
+               bool
+       GetSwapInterval(
+               int& intervalOut
+       )=0;
  
        virtual 
                void 
@@ -178,7 +190,19 @@ public:
        SetViewPort(
                int x1, int y1,
                int x2, int y2
-       ) = 0; 
+       ) = 0;
+
+       /**
+        * Update the Canvas' viewport (used when the viewport changes without using SetViewPort()
+        * eg: Shadow buffers and FBOs
+        */
+
+       virtual
+               void
+       UpdateViewPort(
+               int x1, int y1,
+               int x2, int y2
+       ) = 0;
 
        /**
         * Get the visible viewport
@@ -220,6 +244,16 @@ public:
                int height
        )=0;
 
+       virtual
+               void
+       SetFullScreen(
+               bool enable
+       )=0;
+
+       virtual
+               bool
+       GetFullScreen()=0;
+
                
        
 protected: