Class CameraComponent

Inheritance Relationships

Base Type

Class Documentation

class CameraComponent : public Component

Public Functions

CameraComponent(Entity &owner, const JSON::json &data)
~CameraComponent()
Matrix &getViewMatrix()
Matrix &getProjectionMatrix()
Vector3 getAbsolutePosition()
PostProcessingDetails getPostProcessingDetails() const
bool setupData()

Perform setting up internal data needed from other components after they have been added to the owning entity.

void onRemove()

Perform operations prior to detachment from owning entity and destruction.

JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void addCustomPostProcessingDetails(const String &path)
void draw()

Expose the component data with ImGui.