coordinates - change the axis Y. From "bottom left" to "top left"? (opengl) -


change axis y. "bottom left" "top left"? tried glscalef (1.f,-1.f, 1.f); turns upside down. how make glrectf (0,0,200,200); draw in upper left corner instead of bottom left?

given

  • width , height of viewport,
  • and "corresponding" orthographic projection (e.g. gluortho2d(0, width, 0, height),
  • and no other model view transformation,

glrectf(0, height, 200, height-200) creates desired output.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -