FEventsCameraEntity¶
-
namespace
marengine -
class
FEventsCameraEntity¶ - #include “Core/ecs/Entity/EventsCameraEntity.h”
is events class for updating camera, with which we can watch scene during gameplay. Should contain only static methods!
Public Static Functions
-
void
passSceneManager(FSceneManagerEditor *pSceneManagerEditor)¶
-
void
passRenderManager(FRenderManager *pRenderManager)¶
-
void
onMainCameraUpdate(const Entity &entity)¶ Updates main camera with given entity, only if it can be updated (FSceneManager must allow it).
- Warning
Method assumes that entity contains main camera, it does not check if it is main one!
- Parameters
entity: entity, which must contain main renderCamera at its CCamera
-
void
onEditorCameraSet(const FRenderCamera *pRenderCamera)¶ Method sets editor camera and pushes it to render pipeline.
- Parameters
renderCamera: pointer to editor’s renderCamera, which will be pushed to pipeline and used.
-
void
onGameCameraSet()¶ Method looks for main game camera (looks for entity with cameraComponent, which is main one) and then pushes it to render pipeline.
Private Static Attributes
-
FSceneManagerEditor *
s_pSceneManagerEditor= {nullptr}¶
-
FRenderManager *
s_pRenderManager= {nullptr}¶
-
void
-
class