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

Function DrawTexture

Samples/NiUserTracker/SceneDrawer.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 glFlush();
96}
97void DrawTexture(float topLeftX, float topLeftY, float bottomRightX, float bottomRightY)
98{
99 glEnableClientState(GL_TEXTURE_COORD_ARRAY);
100 glTexCoordPointer(2, GL_FLOAT, 0, texcoords);
101
102 DrawRectangle(topLeftX, topLeftY, bottomRightX, bottomRightY);
103
104 glDisableClientState(GL_TEXTURE_COORD_ARRAY);
105}
106
107XnFloat Colors[][3] =
108{

Callers 1

DrawDepthMapFunction · 0.85

Calls 1

DrawRectangleFunction · 0.85

Tested by

no test coverage detected