I am trying to draw an object at the top of my view port. To get the view port dimensions I do the following:
glGetIntegerv( GL_VIEWPORT, viewport );
After this call I expect the (y + height) to be the top of my view port but when I try to draw the object just below that it’s out of my view.
What am I doing wrong?