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

Function GetPowerOfTwo

Samples/NiViewer/Draw.cpp:152–160  ·  view source on GitHub ↗

-------------------------------- Textures --------------------------------

Source from the content-addressed store, hash-verified

150// Textures
151// --------------------------------
152int GetPowerOfTwo(int num)
153{
154 int result = 1;
155
156 while (result < num)
157 result <<= 1;
158
159 return result;
160}
161
162void TextureMapInit(XnTextureMap* pTex, int nSizeX, int nSizeY, unsigned int nBytesPerPixel, int nCurX, int nCurY)
163{

Callers 1

TextureMapInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected