| 95 | glFlush(); |
| 96 | } |
| 97 | void 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 | |
| 107 | XnFloat Colors[][3] = |
| 108 | { |
no test coverage detected