Game Develop Core: gd::Camera Class Reference

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- Class List
- Class Index
- Class Hierarchy

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
Public Member Functions | List of all members
gd::Camera Class Reference
Platform Definition ( Classes defining the common concepts used by all platforms )

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_)
float | GetViewportX1 () const
float | GetViewportY1 () const
float | GetViewportX2 () const
float | GetViewportY2 () const
void | SetSize (float width_, float height_)
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::SetSize | ( | float | width_,
|  | float | height_
| ) |  |

inline

Change the size of the rendered area of the scene.

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 The coordinates must be between 0 and 1.

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

- Layer.h
- Layer.cpp