gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
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_transform (const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation)=0
 checks whether a point in world space is within the camera's frustum
 
virtual void set_transform (const gdk::graphics_matrix4x4_type &aMatrix)=0
 
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 class  clear_mode { nothing , color_and_depth , depth_only }
 controls which buffers in the active frame buffer object to clear 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

Member Function Documentation

◆ set_viewport()

virtual void gdk::screen_camera::set_viewport ( const float aX,
const float aY,
const float aWidth,
const float aHeight )
pure virtual

sets the normalized size and position of the viewport within of the window

Implemented in gdk::webgl1es2_screen_camera.


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