Potato Engine
Loading...
Searching...
No Matches
Camera Class Reference

Camera wrapper for rendering. More...

#include <Camera.hpp>

Inheritance diagram for Camera:
Actor Archivable Tickable

Additional Inherited Members

Public Member Functions inherited from Actor
 Actor ()
 Constructs actor object.
Vector2 GetPosition () const
 Gets position.
void SetPosition (const Vector2 &position)
 Sets position.
Vector2 GetSize () const
 Gets size.
void SetSize (const Vector2 &size)
 Sets size.
float GetRotation () const
 Gets rotation.
void SetRotation (float rotation)
 Sets rotation.
void AddLocalOffset (const Vector2 &offset)
 Adds to location vector.
void AddLocalRotation (float rotation)
 Adds to rotation value.
bool isVisible () const
 Checks if actor visible.
void SetVisibility (bool visibility)
 Sets visibility of actor.
void DispatchBeginPlay ()
 Internal function used to queue BeginPlay() on actor.
Public Member Functions inherited from Tickable
bool isTicking () const
 Checks if object is ticking.
void SetTicking (bool isEnabled)
 Sets tick state for object.
Public Attributes inherited from Actor
char Texture
Protected Member Functions inherited from Actor
virtual void BeginPlay ()
 Gameplay start.
virtual void Tick (float dt) override
 Update tick event.

Detailed Description

Camera wrapper for rendering.

This class is a wrapper used for rendering logic. Assigned to controller while loading subobjects. A player cannot render the level without a camera assigned to the controller

Definition at line 12 of file Camera.hpp.

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( )

Definition at line 5 of file Camera.cpp.

◆ ~Camera()

Camera::~Camera ( )

Definition at line 11 of file Camera.cpp.