OLD | NEW |
1 | 1 |
2 /** \file BL_Texture.h | 2 /** \file BL_Texture.h |
3 * \ingroup ketsji | 3 * \ingroup ketsji |
4 */ | 4 */ |
5 | 5 |
6 #ifndef __BL_TEXTURE_H__ | 6 #ifndef __BL_TEXTURE_H__ |
7 #define __BL_TEXTURE_H__ | 7 #define __BL_TEXTURE_H__ |
8 | 8 |
9 // #include <vector> | 9 // #include <vector> |
10 // #include <map> | 10 // #include <map> |
(...skipping 17 matching lines...) Expand all Loading... |
28 unsigned int mTexture; // Bound texture unit da
ta | 28 unsigned int mTexture; // Bound texture unit da
ta |
29 bool mOk; // ... | 29 bool mOk; // ... |
30 bool mNeedsDeleted; // If generated | 30 bool mNeedsDeleted; // If generated |
31 unsigned int mType; // enum TEXTURE_2D | CUB
E_MAP· | 31 unsigned int mType; // enum TEXTURE_2D | CUB
E_MAP· |
32 int mUnit; // Textu
re unit associated with mTexture | 32 int mUnit; // Textu
re unit associated with mTexture |
33 unsigned int mEnvState; // cache textureEnv | 33 unsigned int mEnvState; // cache textureEnv |
34 static unsigned int mDisableState; // speed up disabling calls | 34 static unsigned int mDisableState; // speed up disabling calls |
35 | 35 |
36 void InitNonPow2Tex(unsigned int *p,int x,int y,bool mipmap ); | 36 void InitNonPow2Tex(unsigned int *p,int x,int y,bool mipmap ); |
37 void InitGLTex(unsigned int *p,int x,int y,bool mipmap ); | 37 void InitGLTex(unsigned int *p,int x,int y,bool mipmap ); |
| 38 void InitGLCompressedTex(struct ImBuf *p, bool mipmap); |
38 public: | 39 public: |
39 BL_Texture(); | 40 BL_Texture(); |
40 ~BL_Texture( ); | 41 ~BL_Texture( ); |
41 | 42 |
42 bool Ok(); | 43 bool Ok(); |
43 int GetUnit() {return mUnit;} | 44 int GetUnit() {return mUnit;} |
44 void SetUnit(int unit) {mUnit = unit;} | 45 void SetUnit(int unit) {mUnit = unit;} |
45 | 46 |
46 unsigned int GetTextureType() const; | 47 unsigned int GetTextureType() const; |
47 void DeleteTex(); | 48 void DeleteTex(); |
(...skipping 26 matching lines...) Expand all Loading... |
74 | 75 |
75 | 76 |
76 #ifdef WITH_CXX_GUARDEDALLOC | 77 #ifdef WITH_CXX_GUARDEDALLOC |
77 public: | 78 public: |
78 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:BL_Texture"); } | 79 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:BL_Texture"); } |
79 void operator delete( void *mem ) { MEM_freeN(mem); } | 80 void operator delete( void *mem ) { MEM_freeN(mem); } |
80 #endif | 81 #endif |
81 }; | 82 }; |
82 | 83 |
83 #endif//__BL_TEXTURE_H__ | 84 #endif//__BL_TEXTURE_H__ |
OLD | NEW |