Mercurial > fife-parpg
comparison engine/core/video/opengl/renderbackendopengl.h @ 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 | 855ad500f991 |
comparison
equal
deleted
inserted
replaced
633:46b95d06c8c2 | 634:5f381fa34769 |
---|---|
43 virtual ~RenderBackendOpenGL(); | 43 virtual ~RenderBackendOpenGL(); |
44 const std::string& getName() const; | 44 const std::string& getName() const; |
45 void startFrame(); | 45 void startFrame(); |
46 void endFrame(); | 46 void endFrame(); |
47 void init(); | 47 void init(); |
48 void clearBackBuffer(); | |
49 | |
48 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); | 50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); |
49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); | 51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); |
50 Image* createImage(SDL_Surface* surface); | 52 Image* createImage(SDL_Surface* surface); |
51 bool putPixel(int x, int y, int r, int g, int b, int a = 255); | 53 bool putPixel(int x, int y, int r, int g, int b, int a = 255); |
52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); | 54 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); |