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

Function getClosestPowerOfTwo

Samples/NiUserTracker/SceneDrawer.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60unsigned int getClosestPowerOfTwo(unsigned int n)
61{
62 unsigned int m = 2;
63 while(m < n) m<<=1;
64
65 return m;
66}
67GLuint initTexture(void** buf, int& width, int& height)
68{
69 GLuint texID = 0;

Callers 2

initTextureFunction · 0.85
DrawDepthMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected