gdk-graphics
1b6d84e044c2c953fd7c9501e628a67e80f4da0d
include
gdk
screen_camera.h
1
// © Joseph Cameron - All Rights Reserved
2
3
#ifndef GDK_GFX_SCREEN_CAMERA_H
4
#define GDK_GFX_SCREEN_CAMERA_H
5
6
#include <gdk/camera.h>
7
#include <gdk/color.h>
8
#include <gdk/graphics_types.h>
9
10
namespace
gdk
11
{
16
class
screen_camera
:
public
camera
17
{
18
public
:
20
virtual
void
set_viewport
(
const
float
aX,
21
const
float
aY,
22
const
float
aWidth,
23
const
float
aHeight) = 0;
24
25
virtual
~
screen_camera
() =
default
;
26
};
27
}
28
29
#endif
30
gdk
Definition:
camera.h:9
gdk::screen_camera::set_viewport
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
gdk::camera
Definition:
camera.h:11
gdk::screen_camera
Position, orientation and perspective from which entity(s) are drawn.
Definition:
screen_camera.h:16
Generated by
1.8.13