COpenGL::GetViewArea

void GetViewArea( FRECT* ViewArea );

Parameters

ViewArea Pointer to a FRECT structure. The function writes the view area dimensions into that structure.

Remarks

The GetViewArea method function retrieves the rectangular dimensions of the view area. The view area lies in a plane parallel to the computer screen which contains the reference point. The orthographic and perspective view volumes intersect this plane in the same view area rectangle. The GetViewArea function retrieves only dimensions of the view area centered to the origin. To retrieve exact 3D coordinates of the view area corners you need to rotate retrieved area dimensions (considered to be in the x, y plane) in the same way as the eye point is oriented towards the reference point and translate rotated coordinates using the reference point coordinates. The GetLookRotations method function can be used to retrieve the rotation angles of the looking direction (the direction from the eye point to the reference point)

See Also

GetLookRotations