If i have common style perspective transformation matrix like this
/ focus 0 cx \ | 0 focus cy | \ 0 0 1 /
how can setup parameters for glFrustum or gluPerspective to get correct transformation
for example:
glFrustum ( -cx, screenWidth - cx, -cy, screenHeight - cy, focus, focus + 1000) gluLookAt( 0.0, 0.0, -focus, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
don't create correct transformation =(