¡@

Home 

c++ Programming Glossary: glushort

Creating a 3D sphere in Opengl using Visual C++

http://stackoverflow.com/questions/5988686/creating-a-3d-sphere-in-opengl-using-visual-c

GLfloat normals std vector GLfloat texcoords std vector GLushort indices public SolidSphere float radius unsigned int rings unsigned.. n x n y n z indices.resize rings sectors 4 std vector GLushort iterator i indices.begin for r 0 r rings 1 r for s 0 s sectors..

Problems converting YV12 to RGB through GLSL

http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl

an array of char 1 byte and then converted to an array of GLushort 2 bytes . What do you think This is how the raw YUV frame looks.. 0 Yrot 0 Zrot 0 static GLint ImgWidth ImgHeight static GLushort ImageYUV NULL static void DrawObject void glBegin GL_QUADS glTexCoord2f.. yuv_file.tellg ImgWidth 1280 ImgHeight 720 ImageYUV new GLushort yuv_file_sz char memblock new char yuv_file_sz if memblock ..