![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#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 ParallaxLayer * | GetLayer (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 | |
| ParallaxLayerManager & | operator= (const ParallaxLayerManager &)=delete |
Static Public Member Functions | |
| static ParallaxLayerManager & | Get () |
Public Attributes | |
| vector< ParallaxLayer > | layers_ |
Definition at line 51 of file ParallaxLayerManager.h.
| Olympe::Tiled::ParallaxLayerManager::ParallaxLayerManager | ( | ) |
Definition at line 16 of file ParallaxLayerManager.cpp.
| 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:
|
delete |
| 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:| void Olympe::Tiled::ParallaxLayerManager::CalculateRenderPosition | ( | const ParallaxLayer & | layer, |
| float | cameraX, | ||
| float | cameraY, | ||
| float | zoom, | ||
| float & | outX, | ||
| float & | outY | ||
| ) | const |
Definition at line 58 of file ParallaxLayerManager.cpp.
References GetComponentTypeID_Static(), Olympe::Tiled::ParallaxLayer::offsetX, Olympe::Tiled::ParallaxLayer::offsetY, Olympe::Tiled::ParallaxLayer::scrollFactorX, and Olympe::Tiled::ParallaxLayer::scrollFactorY.
Here is the call graph for this function:| 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:
|
static |
Definition at line 33 of file ParallaxLayerManager.cpp.
References GetComponentTypeID_Static().
Referenced by Olympe::Tiled::TiledToOlympe::Convert(), Olympe::Tiled::TiledToOlympe::ConvertImageLayer(), World::InstantiatePass1_VisualLayers(), Olympe::Tiled::TiledToOlympe::ProcessVisualLayers(), and RenderMultiLayerForCamera().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:
|
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:
|
inline |
Definition at line 61 of file ParallaxLayerManager.h.
References layers_.
|
delete |
| 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:| void Olympe::Tiled::ParallaxLayerManager::RenderLayer | ( | const ParallaxLayer & | layer, |
| const CameraTransform & | cam | ||
| ) | const |
Definition at line 86 of file ParallaxLayerManager.cpp.
References GetComponentTypeID_Static(), Olympe::Tiled::ParallaxLayer::offsetX, Olympe::Tiled::ParallaxLayer::offsetY, Olympe::Tiled::ParallaxLayer::opacity, GameEngine::renderer, renderer, Olympe::Tiled::ParallaxLayer::repeatX, Olympe::Tiled::ParallaxLayer::repeatY, Olympe::Tiled::ParallaxLayer::scrollFactorX, Olympe::Tiled::ParallaxLayer::scrollFactorY, Olympe::Tiled::ParallaxLayer::texture, and Olympe::Tiled::ParallaxLayer::visible.
Here is the call graph for this function:| vector<ParallaxLayer> Olympe::Tiled::ParallaxLayerManager::layers_ |
Definition at line 92 of file ParallaxLayerManager.h.
Referenced by AddLayer(), Clear(), GetLayer(), GetLayerCount(), GetLayers(), RenderAllLayers(), and ~ParallaxLayerManager().