MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / TextureMapUpdate

Function TextureMapUpdate

Samples/NiViewer/Draw.cpp:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void 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
271void TextureMapDraw(XnTextureMap* pTex, IntRect* pLocation)
272{

Callers 3

drawInitFunction · 0.85
drawColorImageFunction · 0.85
drawDepthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected