GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
A camera is used to render a specific area of a layout. More...
#include <Layer.h>
Public Member Functions | |
void | SetViewport (float x1_, float y1_, float x2_, float y2_) |
Change the viewport, i.e the area of the window where the camera will be displayed. More... | |
void | SetViewportX1 (float x1_) |
void | SetViewportY1 (float y1_) |
void | SetViewportX2 (float x2_) |
void | SetViewportY2 (float y2_) |
float | GetViewportX1 () const |
float | GetViewportY1 () const |
float | GetViewportX2 () const |
float | GetViewportY2 () const |
void | SetSize (float width_, float height_) |
Change the size of the rendered area of the scene, in pixels. | |
float | GetWidth () const |
float | GetHeight () const |
void | SetUseDefaultSize (bool useDefaultSize=true) |
bool | UseDefaultSize () const |
void | SetUseDefaultViewport (bool useDefaultViewport=true) |
bool | UseDefaultViewport () const |
A camera is used to render a specific area of a layout.
|
inline |
Change the viewport, i.e the area of the window where the camera will be displayed.