CL_Viewpoint::enter_local - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_Viewpoint::enter_local

Setup OpenGL model view matrix to use local viewpoint coordinates.

    	void enter_local();

Detailed description:

Calling this function causes CL_Viewpoint to do the following:

- glMatrixMode(GL_MODELVIEW)
- glPushMatrix()
- glMultMatrix(world2local_transform)

world2local_transform is a coordinate switch matrix, that convert local coordinates for a model to be positioned in the world at the viewpoint's position and viewing direction.

It is required that leave_local() is to be called, when the local coordinate space model view is no longer needed.

See also:

CL_Viewpoint

Questions or comments, write to the ClanLib mailing list.