Home | All Classes | Grouped Classes | Index | Search

# Class CL_Viewpoint

CL_Viewpoint object. More...

Derived from: none
Derived by: none
Group: GL (Display 3D)

#include <ClanLib/gl.h>

Construction:

CL_Viewpoint | Constructs a viewpoint.

Attributes:

pos | Position of viewpoint.
dir | Viewing direction of viewpoint.
up | Up direction of viewpoint.

Operations:

translate | Translates viewpoint position.
set | Sets the viewpoint position.
translate_local | Moves the viewpoint from its local point of view.
rotate_local | Rotates the viewpoint from its local point view.
enter_local | Setup OpenGL model view matrix to use local viewpoint coordinates.
leave_local | Restores the OpenGL model view matrix prior to a call to enter_local().
make_local_direction | Converts a direction vector from world into local coordinates.
setup_modelview | Sets up the model view matrix to look from this viewpoint.

Detailed description:

!group=GL/Display 3D! !header=gl.h!

A viewpoint represents a position and viewing direction in 3D.

Questions or comments, write to the ClanLib mailing list.