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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -