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,heightof 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
Post a Comment