-------------------------------- Textures --------------------------------
| 150 | // Textures |
| 151 | // -------------------------------- |
| 152 | int GetPowerOfTwo(int num) |
| 153 | { |
| 154 | int result = 1; |
| 155 | |
| 156 | while (result < num) |
| 157 | result <<= 1; |
| 158 | |
| 159 | return result; |
| 160 | } |
| 161 | |
| 162 | void TextureMapInit(XnTextureMap* pTex, int nSizeX, int nSizeY, unsigned int nBytesPerPixel, int nCurX, int nCurY) |
| 163 | { |