Mercurial > fife-parpg
comparison engine/core/video/opengl/renderbackendopengl.h @ 425:ad7969d9460b
A client can now specify a global color key to be used with all images. The default color key is (255,0,255) in RGB format. Also the client can enable/disable the color key feature by using the setColorKeyEnabled function in the EngineSettings class. By default the color key feature is disabled. fixes[t:451]
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 20 Feb 2010 19:11:01 +0000 |
parents | 18c2a21ac0ad |
children | ad1f09d954f9 |
comparison
equal
deleted
inserted
replaced
424:e29fbf84cb41 | 425:ad7969d9460b |
---|---|
37 /** The main class of the OpenGL-based renderer. | 37 /** The main class of the OpenGL-based renderer. |
38 * @see RenderBackend | 38 * @see RenderBackend |
39 */ | 39 */ |
40 class RenderBackendOpenGL : public RenderBackend { | 40 class RenderBackendOpenGL : public RenderBackend { |
41 public: | 41 public: |
42 RenderBackendOpenGL(); | 42 RenderBackendOpenGL(const SDL_Color& colorkey); |
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(); |