GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | List of all members

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
 

Detailed Description

A camera is used to render a specific area of a layout.

See also
gd::Layout

Member Function Documentation

void gd::Camera::SetViewport ( float  x1_,
float  y1_,
float  x2_,
float  y2_ 
)
inline

Change the viewport, i.e the area of the window where the camera will be displayed.

Note
The coordinates must be between 0 and 1.

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