LEFT | RIGHT |
1 /** \file gameengine/Ketsji/BL_Texture.cpp | 1 /** \file gameengine/Ketsji/BL_Texture.cpp |
2 * \ingroup ketsji | 2 * \ingroup ketsji |
3 */ | 3 */ |
4 // ------------------------------------ | 4 // ------------------------------------ |
5 | 5 |
6 #include "GL/glew.h" | 6 #include "GL/glew.h" |
7 | 7 |
8 #include <iostream> | 8 #include <iostream> |
9 #include <map> | 9 #include <map> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 num= num&(num-1); | 49 num= num&(num-1); |
50 return num; | 50 return num; |
51 } | 51 } |
52 | 52 |
53 // Place holder for a full texture manager | 53 // Place holder for a full texture manager |
54 class BL_TextureObject | 54 class BL_TextureObject |
55 { | 55 { |
56 public: | 56 public: |
57 unsigned int gl_texture; | 57 unsigned int gl_texture; |
58 void* ref_buffer; | 58 void* ref_buffer; |
| 59 }; |
59 | 60 |
60 typedef std::map<char*, BL_TextureObject> BL_TextureMap; | 61 typedef std::map<char*, BL_TextureObject> BL_TextureMap; |
61 static BL_TextureMap g_textureManager; | 62 static BL_TextureMap g_textureManager; |
62 | 63 |
63 | 64 |
64 BL_Texture::BL_Texture() | 65 BL_Texture::BL_Texture() |
LEFT | RIGHT |