| 260 | } |
| 261 | |
| 262 | void TextureMapUpdate(XnTextureMap* pTex) |
| 263 | { |
| 264 | // set current texture object |
| 265 | glBindTexture(GL_TEXTURE_2D, pTex->nID); |
| 266 | |
| 267 | // set the current image to the texture |
| 268 | glTexImage2D(GL_TEXTURE_2D, 0, pTex->nFormat, pTex->Size.X, pTex->Size.Y, 0, pTex->nFormat, GL_UNSIGNED_BYTE, pTex->pMap); |
| 269 | } |
| 270 | |
| 271 | void TextureMapDraw(XnTextureMap* pTex, IntRect* pLocation) |
| 272 | { |
no outgoing calls
no test coverage detected