Cube Renderer
Renderer class in charge of rendering a cube.
Constructors
Properties
Gets or sets camera center position.
Gets or sets camera intrinsic parameters.
Gets or sets camera rotation.
Color to clear the scene.
Cube position.
Cube rotation.
Diffuse color to be used for lighting purposes. This is only taken into account if normals are used.
listener to notify when surface has changed.
Gets or sets orientation to compute a pinhole camera expressed in view coordinates. If orientation is unknown, view camera is not used.
Gets or sets camera that defines point of view to draw the scene expressed in Android view coordinates. This is only available or can only be set if surface is initialized and orientation is defined (not unknown).
Gets or sets view camera center position.
Gets or sets view camera intrinsic parameters.
Gets or sets view camera rotation.
Functions
Called when a frame needs to be drawn into the surface. Sets camera and draws the cube.
Called when size of surface where drawing occurs changes.
Called when surface where drawing occurs has been created in order to initialize OpenGL.
Sets near and far plane values. Any vertex nearer to the camera than the near plane, or any vertex further from the camera than the far plane is ignored and not drawn.