Ghost Context Refactor
[blender-staging.git] / source / gameengine / Rasterizer / RAS_ICanvas.h
index 713a06845acbdd211ea19e7535c1c4b40c42c997..d90cbea286e5d8d5524368e1be545932d5ee2189 100644 (file)
@@ -59,7 +59,7 @@ public:
        virtual 
        ~RAS_ICanvas(
        ) {
-       };
+       }
 
        virtual 
                void 
@@ -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,26 @@ 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
+        */
+       virtual
+               const int*
+       GetViewPort() = 0;
 
        virtual 
                void 
@@ -213,6 +244,16 @@ public:
                int height
        )=0;
 
+       virtual
+               void
+       SetFullScreen(
+               bool enable
+       )=0;
+
+       virtual
+               bool
+       GetFullScreen()=0;
+
                
        
 protected:
@@ -224,5 +265,4 @@ protected:
 #endif
 };
 
-#endif //__RAS_ICANVAS_H__
-
+#endif  /* __RAS_ICANVAS_H__ */