lwjgl - get viewport "location

Hi,
At the moment I save the vector I used for glTranslatef(vector.getY(),vector.getX(),vector.getZ())
Is it possible to get it out of the display? Sth like Display.getViewport doesn’t exist/ can’t find it in the api.
best regards

In a short answer:
Nope.

But you don’t need to. You store it yourself. Why would you need to get the position you translated to, if you did that yourself, and if only you could change the translation?

What are you trying to accomplish?

thx, I just wondered about it ;D
learning purpose only ::slight_smile:

For performance reasons you want to avoid reading back anything from OpenGL, especially with Java. OpenGL calls are expensive, and from Java they require native calls making them even slower. In the later versions of OpenGL, functions like glTranslatef() has been deprecated which forces you to do the matrix stuff yourself to encourage people to write more efficient code.