class
MCameraComponent
- Module
- Game
- Header
#include "Game/MCameraComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
EProjection | projection | Default EProjection::Perspective. |
float | fieldOfView | degrees, perspective only Default 60.0f. |
float | orthoSize | half-height in world units, orthographic only Default 10.0f. |
float | nearPlane | Default 0.1f. |
float | farPlane | Default 1000.0f. |
bool | isMainCamera | marks this as the view-rendering camera Default false. |
Constructors
| Signature | Name | Description |
|---|---|---|
MCameraComponent() = default | MCameraComponent | |
~MCameraComponent() override = default | ~MCameraComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnRegister | Mirror a CameraComponent onto the backing entity. |
void | PullFromMirror | |
void | RefreshMirror | Re-push the fields below onto the mirrored component (edits after OnRegister won't apply otherwise). |
void | SetFieldOfView | The reflected setters push straight through to the mirror, so a graph never has to know RefreshMirror exists. |
float | GetFieldOfView | |
void | SetClipPlanes | |
void | SetOrthographic | |
bool | IsOrthographic | |
void | SetOrthoSize | |
void | SetAsMainCamera | |
bool | IsMainCamera |
Function details
MCameraComponent
C++
MCameraComponent() = default~MCameraComponent
C++
~MCameraComponent() override = defaultOnRegister
C++
void OnRegister() overrideMirror a CameraComponent onto the backing entity.
PullFromMirror
C++
void PullFromMirror(World* ecs, EntityID entity) overrideRefreshMirror
C++
void RefreshMirror() overrideRe-push the fields below onto the mirrored component (edits after OnRegister won't apply otherwise).
SetFieldOfView
C++
void SetFieldOfView(float degrees)The reflected setters push straight through to the mirror, so a graph never has to know RefreshMirror exists.
GetFieldOfView
C++
float GetFieldOfView() constSetClipPlanes
C++
void SetClipPlanes(float nearDistance, float farDistance)SetOrthographic
C++
void SetOrthographic(bool orthographic)IsOrthographic
C++
bool IsOrthographic() constSetOrthoSize
C++
void SetOrthoSize(float halfHeight)SetAsMainCamera
C++
void SetAsMainCamera(bool main)IsMainCamera
C++
bool IsMainCamera() constGenerated from Game/MCameraComponent.h via game.json · Nov 5, 2026Version 1.0.0