Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Olympe::Tiled::ParallaxLayerManager Class Reference

#include <ParallaxLayerManager.h>

Public Member Functions

void AddLayer (const ParallaxLayer &layer)
 
const vector< ParallaxLayer > & GetLayers () const
 
void Clear ()
 
void CalculateRenderPosition (const ParallaxLayer &layer, float cameraX, float cameraY, float zoom, float &outX, float &outY) const
 
size_t GetLayerCount () const
 
const ParallaxLayerGetLayer (size_t index) const
 
void RenderLayer (const ParallaxLayer &layer, const CameraTransform &cam) const
 
void RenderAllLayers (const CameraTransform &cam) const
 
 ParallaxLayerManager ()
 
 ~ParallaxLayerManager ()
 
 ParallaxLayerManager (const ParallaxLayerManager &)=delete
 
ParallaxLayerManageroperator= (const ParallaxLayerManager &)=delete
 

Static Public Member Functions

static ParallaxLayerManagerGet ()
 

Public Attributes

vector< ParallaxLayerlayers_
 

Detailed Description

Definition at line 51 of file ParallaxLayerManager.h.

Constructor & Destructor Documentation

◆ ParallaxLayerManager() [1/2]

Olympe::Tiled::ParallaxLayerManager::ParallaxLayerManager ( )

Definition at line 16 of file ParallaxLayerManager.cpp.

◆ ~ParallaxLayerManager()

Olympe::Tiled::ParallaxLayerManager::~ParallaxLayerManager ( )

Definition at line 20 of file ParallaxLayerManager.cpp.

References GetComponentTypeID_Static(), and layers_.

+ Here is the call graph for this function:

◆ ParallaxLayerManager() [2/2]

Olympe::Tiled::ParallaxLayerManager::ParallaxLayerManager ( const ParallaxLayerManager )
delete

Member Function Documentation

◆ AddLayer()

void Olympe::Tiled::ParallaxLayerManager::AddLayer ( const ParallaxLayer layer)

Definition at line 39 of file ParallaxLayerManager.cpp.

References layers_.

Referenced by Olympe::Tiled::TiledToOlympe::ConvertImageLayer().

+ Here is the caller graph for this function:

◆ CalculateRenderPosition()

void Olympe::Tiled::ParallaxLayerManager::CalculateRenderPosition ( const ParallaxLayer layer,
float  cameraX,
float  cameraY,
float  zoom,
float outX,
float outY 
) const

◆ Clear()

void Olympe::Tiled::ParallaxLayerManager::Clear ( )

Definition at line 44 of file ParallaxLayerManager.cpp.

References GetComponentTypeID_Static(), and layers_.

Referenced by Olympe::Tiled::TiledToOlympe::Convert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Get()

ParallaxLayerManager & Olympe::Tiled::ParallaxLayerManager::Get ( )
static

◆ GetLayer()

const ParallaxLayer * Olympe::Tiled::ParallaxLayerManager::GetLayer ( size_t  index) const

Definition at line 78 of file ParallaxLayerManager.cpp.

References GetComponentTypeID_Static(), and layers_.

Referenced by Olympe::Tiled::TiledToOlympe::ProcessVisualLayers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetLayerCount()

size_t Olympe::Tiled::ParallaxLayerManager::GetLayerCount ( ) const
inline

Definition at line 74 of file ParallaxLayerManager.h.

References layers_.

Referenced by Olympe::Tiled::TiledToOlympe::ProcessVisualLayers().

+ Here is the caller graph for this function:

◆ GetLayers()

const vector< ParallaxLayer > & Olympe::Tiled::ParallaxLayerManager::GetLayers ( ) const
inline

Definition at line 61 of file ParallaxLayerManager.h.

References layers_.

◆ operator=()

ParallaxLayerManager & Olympe::Tiled::ParallaxLayerManager::operator= ( const ParallaxLayerManager )
delete

◆ RenderAllLayers()

void Olympe::Tiled::ParallaxLayerManager::RenderAllLayers ( const CameraTransform cam) const

Definition at line 168 of file ParallaxLayerManager.cpp.

References GetComponentTypeID_Static(), and layers_.

+ Here is the call graph for this function:

◆ RenderLayer()

void Olympe::Tiled::ParallaxLayerManager::RenderLayer ( const ParallaxLayer layer,
const CameraTransform cam 
) const

Member Data Documentation

◆ layers_

vector<ParallaxLayer> Olympe::Tiled::ParallaxLayerManager::layers_

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