ˇ@

Home 

c++ Programming Glossary: offset_y

Image scaling (KeepAspectRatioByExpanding) through OpenGL

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

width int img_height _frame height int offset_x 0 int offset_y 0 GLfloat gl_width width GL context size GLfloat gl_height height.. if ratiox ratioy gl_height qRound img_height ratiox offset_y qRound height gl_height 2 gl_height offset_y 2 else gl_width.. ratiox offset_y qRound height gl_height 2 gl_height offset_y 2 else gl_width qRound img_width ratioy offset_x qRound..