Mercurial > fife-parpg
diff engine/core/video/renderbackend.h @ 621:356634098bd9
* Removed the image chunking size variable from engine settings.
* Replaced the existing define of PI and added some math related static const variables
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 01 Oct 2010 14:09:47 +0000 |
parents | b2feacaed53c |
children | 46b95d06c8c2 |
line wrap: on
line diff
--- a/engine/core/video/renderbackend.h Thu Sep 30 21:24:55 2010 +0000 +++ b/engine/core/video/renderbackend.h Fri Oct 01 14:09:47 2010 +0000 @@ -53,7 +53,7 @@ * @param name The name of the new renderbackend. */ RenderBackend(const SDL_Color& colorkey); - + /** Destructor. */ virtual ~RenderBackend(); @@ -95,7 +95,7 @@ * @return The new Image. */ virtual Image* createImage(const uint8_t* data, unsigned int width, unsigned int height) = 0; - + /** Helper function to create images from SDL_Surfaces. * Takes ownership over the surface. * @param surface The surface to convert. @@ -104,7 +104,7 @@ virtual Image* createImage(SDL_Surface* surface) = 0; virtual void isClearNeeded(bool clear) = 0; - + /** Returns a pointer to the main screen Image * @return A pointer to the main screen Image, or 0 if no mainscreen exists. */ @@ -113,7 +113,7 @@ /** Creates a Screenshot and saves it to a file. */ void captureScreen(const std::string& filename); - + SDL_Surface* getSurface(); unsigned int getWidth() const; unsigned int getHeight() const; @@ -128,14 +128,6 @@ bool isAlphaOptimizerEnabled(); void saveImage(const std::string& filename); - /** OpenGL image needs to be sliced into power of two sized chunks. - * You can adjust the size by calling this method. - * Size can be anything (reasonable), it is always changed to the next biggest power of two value - * @example values 50 -> 64, 340 -> 512 - */ - void setChunkingSize(unsigned int size); - unsigned int getChunkingSize(); - /** Sets whether to use the colorkey feature */ void setColorKeyEnabled(bool colorkeyenable); @@ -145,11 +137,11 @@ bool isColorKeyEnabled() const; /** Sets the global colorkey to use for images - */ + */ void setColorKey(const SDL_Color& colorkey); /** Gets the global colorkey setting - */ + */ const SDL_Color& getColorKey() const; protected: