diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-04-03 01:04:20 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-04-03 01:04:20 +0400 |
commit | 6839ec66405f366d95641b1d5685369a1b19757c (patch) | |
tree | ecd65680f673221994758ab86dd563cf9462d8df /source/gameengine/Ketsji/BL_Texture.h | |
parent | 756bad72c4ca4538834aed7bbdc46a2cce41393f (diff) |
applied Charlies patch for game engine graphics. display list support, and bumpmapping shader improvements.
Diffstat (limited to 'source/gameengine/Ketsji/BL_Texture.h')
-rw-r--r-- | source/gameengine/Ketsji/BL_Texture.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/source/gameengine/Ketsji/BL_Texture.h b/source/gameengine/Ketsji/BL_Texture.h index 2df14580e65..0c12b11b12b 100644 --- a/source/gameengine/Ketsji/BL_Texture.h +++ b/source/gameengine/Ketsji/BL_Texture.h @@ -1,8 +1,8 @@ #ifndef __BL_TEXTURE_H__ #define __BL_TEXTURE_H__ -#include <vector> -#include <map> +// #include <vector> +// #include <map> #include "MT_Matrix4x4.h" #include "KX_Camera.h" @@ -11,39 +11,36 @@ struct Image; struct EnvMap; class BL_Material; -class RTData; class RAS_Rect; class RAS_ICanvas; +//class RTData; -// -- #include "STR_String.h" class BL_Texture { private: // ----------------------------------- - unsigned int mTexture; - bool mError; - bool mOk; - bool mNeedsDeleted; - unsigned int mType; - STR_String mName; - int mUnit; + unsigned int mTexture; // Bound texture unit data + bool mError; // Errors + bool mOk; // ... + bool mNeedsDeleted; // If generated + unsigned int mType; // enum TEXTURE_2D | CUBE_MAP + int mUnit; // Texture unit associated with mTexture + unsigned int mEnvState; // cache textureEnv + static unsigned int mDisableState; // speed up disabling calls // ----------------------------------- + void InitNonPow2Tex(unsigned int *p,int x,int y,bool mipmap ); void InitGLTex(unsigned int *p,int x,int y,bool mipmap ); - public: BL_Texture(); ~BL_Texture( ); - - //operator const unsigned int () const; + bool Ok(); int GetUnit() {return mUnit;} void SetUnit(int unit) {mUnit = unit;} - STR_String GetName() const; - unsigned int GetTextureType() const; void DeleteTex(); |