Game Develop Core: gd::Layer 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::Layer Class Reference
Platform Definition ( Classes defining the common concepts used by all platforms )

Represents a layer of a layout. More...

`#include <Layer.h>`

## Public Member Functions

void | SetName (const std::string &name_)
| Change layer name.
const std::string & | GetName () const
| Get layer name.
void | SetVisibility (bool isVisible_)
| Change if layer is displayed or not.
bool | GetVisibility () const
| Return true if layer will be displayed at the layout startup.
void | SetCameraCount (unsigned int n)
| Change the number of cameras inside the layer. More...
unsigned int | GetCameraCount () const
| Get cameras count.
const Camera & | GetCamera (unsigned int n) const
| Return a reference to a camera.
Camera & | GetCamera (unsigned int n)
| Return a reference to a camera.
void | DeleteCamera (unsigned int n)
| Delete a specific camera.
void | AddCamera (const Camera &camera)
| Add an already existing camera.
void | EditLayer ()
| Display a window to edit the layer. More...
void | SaveToXml (TiXmlElement *element) const
| Save to xml.
void | LoadFromXml (const TiXmlElement *element)
| Load from xml.

## Detailed Description

Represents a layer of a layout.

See Also
  gd::Layout

## Member Function Documentation

void gd::Layer::EditLayer | ( | ) |  |

Display a window to edit the layer.

Display a window to edit the layer

void gd::Layer::SetCameraCount | ( | unsigned int | n) |  |

Change the number of cameras inside the layer.

Change cameras count, automatically adding/removing them.

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

- Layer.h
- Layer.cpp