ˇ@

Home 

c++ Programming Glossary: offset_x

Image scaling (KeepAspectRatioByExpanding) through OpenGL

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

img_width _frame width int img_height _frame height int offset_x 0 int offset_y 0 GLfloat gl_width width GL context size GLfloat.. offset_y 2 else gl_width qRound img_width ratioy offset_x qRound width gl_width 2 gl_width offset_x 2 break Mirroring.. ratioy offset_x qRound width gl_width 2 gl_width offset_x 2 break Mirroring texture coordinates to flip the image vertically..