diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-25 00:27:01 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-25 00:27:01 +0200 |
commit | 42963b341f3fbc055c494a0dc0c97d395fa69562 (patch) | |
tree | e1152b55f259dda115aad080360a09499eb15fbf /src/graphics/common/device.h | |
parent | 9d592045317ca66be415e60ba4c2db90b5d7ad3e (diff) | |
download | colobot-42963b341f3fbc055c494a0dc0c97d395fa69562.tar.gz colobot-42963b341f3fbc055c494a0dc0c97d395fa69562.tar.bz2 colobot-42963b341f3fbc055c494a0dc0c97d395fa69562.zip |
Refactoring of texture code
- refactored texture structs & functions
- added note about OpenGL extensions
- removed device.cpp as unnecessary
- minor changes in CEngine
Diffstat (limited to 'src/graphics/common/device.h')
-rw-r--r-- | src/graphics/common/device.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/graphics/common/device.h b/src/graphics/common/device.h index 410596d..7aa4ce3 100644 --- a/src/graphics/common/device.h +++ b/src/graphics/common/device.h @@ -62,7 +62,16 @@ struct DeviceConfig DeviceConfig() { LoadDefault(); } //! Loads the default values - void LoadDefault(); + inline void LoadDefault() + { + width = 800; + height = 600; + bpp = 32; + fullScreen = false; + resizeable = false; + doubleBuf = true; + noFrame = false; + } }; @@ -326,10 +335,10 @@ public: //! Returns the current enable state of given texture stage virtual bool GetTextureEnabled(int index) = 0; - //! Sets the current params of texture with given index - virtual void SetTextureParams(int index, const Gfx::TextureParams ¶ms) = 0; - //! Returns the current params of texture with given index - virtual Gfx::TextureParams GetTextureParams(int index) = 0; + //! Sets the params for texture stage with given index + virtual void SetTextureStageParams(int index, const Gfx::TextureStageParams ¶ms) = 0; + //! Returns the current params of texture stage with given index + virtual Gfx::TextureStageParams GetTextureStageParams(int index) = 0; //! Sets the texture factor to the given color value virtual void SetTextureFactor(const Gfx::Color &color) = 0; |