¡@

Home 

c++ Programming Glossary: gltexcoord2f

opengl texturing

http://stackoverflow.com/questions/5380717/opengl-texturing

else glClear GL_COLOR_BUFFER_BIT glBegin GL_QUADS glTexCoord2f 0.0 0.0 glVertex3f 75.0 0.0 400.0 glTexCoord2f 0.0 1.0 glVertex3f.. GL_QUADS glTexCoord2f 0.0 0.0 glVertex3f 75.0 0.0 400.0 glTexCoord2f 0.0 1.0 glVertex3f 75.0 0.0 100.0 glTexCoord2f 1.0 1.0 glVertex3f.. 0.0 400.0 glTexCoord2f 0.0 1.0 glVertex3f 75.0 0.0 100.0 glTexCoord2f 1.0 1.0 glVertex3f 75.0 0.0 100.0 glTexCoord2f 1.0 1.0 glVertex3f..

Image scaling (KeepAspectRatioByExpanding) through OpenGL

http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl

I'm trying to implement image scaling in OpenGL using only glTexCoord2f and glVertex2f . Let me explain after loading a QImage and sending.. coordinates to flip the image vertically glBegin GL_QUADS glTexCoord2f 0.0f img_height glVertex2f offset_x gl_height offset_y glTexCoord2f.. 0.0f img_height glVertex2f offset_x gl_height offset_y glTexCoord2f img_width img_height glVertex2f gl_width offset_x gl_height..