comparison engine/core/video/video.i @ 634:5f381fa34769

* Added the clearBackBuffer() function to the renderbackends. * Renamed setClearScreen() to setClearBackBuffer() * The SDL render backend now honors what was set with setClearBackBuffer() * Documented testRenderedViewPort() * The OpenGL backend no longer clears the screen every frame by default. testRenderedViewPort() takes care of clearing the screen for now. Note: if the user overrides the default and enables clearing of the backbuffer that it may be cleared twice in one frame (OpenGL only)!
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 06 Oct 2010 15:49:53 +0000
parents 46b95d06c8c2
children 3094988564d5
comparison
equal deleted inserted replaced
633:46b95d06c8c2 634:5f381fa34769
170 void saveImage(const std::string& filename); 170 void saveImage(const std::string& filename);
171 void setColorKeyEnabled(bool colorkeyenable); 171 void setColorKeyEnabled(bool colorkeyenable);
172 bool isColorKeyEnabled() const; 172 bool isColorKeyEnabled() const;
173 void setColorKey(const SDL_Color& colorkey); 173 void setColorKey(const SDL_Color& colorkey);
174 const SDL_Color& getColorKey() const; 174 const SDL_Color& getColorKey() const;
175 void setClearScreen(bool clear); 175 void setClearBackBuffer(bool clear);
176 }; 176 };
177 177
178 enum MouseCursorType { 178 enum MouseCursorType {
179 CURSOR_NONE, 179 CURSOR_NONE,
180 CURSOR_NATIVE, 180 CURSOR_NATIVE,