gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Member Functions | List of all members
gdk::screen_camera Class Referenceabstract

Position, orientation and perspective from which entity(s) are drawn. More...

#include <screen_camera.h>

Inheritance diagram for gdk::screen_camera:
gdk::camera gdk::webgl1es2_screen_camera

Public Member Functions

virtual void set_viewport (const float aX, const float aY, const float aWidth, const float aHeight)=0
 sets the normalized size and position of the viewport within of the window
 
- Public Member Functions inherited from gdk::camera
virtual void set_perspective_projection (const float aFieldOfView, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio)=0
 sets the projection matrix to a perspective projection
 
virtual void set_orthographic_projection (const float aWidth, const float aHeight, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio)=0
 sets the projection matrix to an orthographic projection
 
virtual void set_view_matrix (const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation)=0
 rebuilds the view matrix from a 3d position and rotation
 
virtual void set_clear_color (const gdk::color &acolor)=0
 sets the clear color, used to fill color buffer after it is cleared.
 
virtual void set_clear_mode (const clear_mode aClearMode)=0
 clear mode decides which buffers to clear. see enum
 

Additional Inherited Members

- Public Types inherited from gdk::camera
enum  clear_mode { clear_mode::nothing, clear_mode::color_and_depth, clear_mode::depth_only }
 Describes camera clear behaviour: which buffers in the current FBO should be cleared? More...
 

Detailed Description

Position, orientation and perspective from which entity(s) are drawn.

Todo:

cull functor

set_projection from matrix

project vector from viewport coord into world


The documentation for this class was generated from the following file: