VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::BasicCamera Class Reference
Inheritance diagram for vex::BasicCamera:
vex::GameObject

Public Member Functions

 BasicCamera (Engine &engine, const std::string &name)
void BeginPlay () override
 virtual void function you override to implement custom behavior when the game starts.
void Update (float deltaTime) override
 virtual void function you override to implement custom behavior when the game updates (eg. every frame).
Public Member Functions inherited from vex::GameObject
 GameObject (Engine &engine, const std::string &name)
 Default constructor for GameObject.
void Destroy ()
 Destroys the GameObject and removes it from the engine's registry.
virtual ~GameObject ()
 Destructor.
 GameObject (const GameObject &)=delete
GameObjectoperator= (const GameObject &)=delete
 GameObject (GameObject &&other) noexcept
vex::Entity GetEntity () const
 Function that returns entity object, which is the entity associated with this GameObject. Its mostly needed for parenting and other engine internal usage.
EngineGetEngine ()
 Function that returns engine reference allowing your custom Object to use engine provided methods.
template<typename T>
T & GetComponent ()
 Function that returns reference to a requested component.
template<typename T>
void AddComponent (const T &comp)
 Function that adds a component to the GameObject.
template<typename T>
bool HasComponent () const
 Function that checks if the GameObject has a component.
bool isValid () const
void ParentTo (vex::Entity entity)
 Function that parent this Object to another GameObject. You need to pass another GameObject's entity.
void setObjectType (const std::string &type)
 Function that sets the type of the GameObject.
const std::string & getObjectType () const
 Function that returns the type of the GameObject.

Additional Inherited Members

Protected Attributes inherited from vex::GameObject
Enginem_engine
vex::Entity m_entity
bool m_isValid
std::string objectType

Detailed Description

Definition at line 6 of file BasicCamera.hpp.

Constructor & Destructor Documentation

◆ BasicCamera()

vex::BasicCamera::BasicCamera ( Engine & engine,
const std::string & name )

Definition at line 7 of file BasicCamera.cpp.

Member Function Documentation

◆ BeginPlay()

void vex::BasicCamera::BeginPlay ( )
overridevirtual

virtual void function you override to implement custom behavior when the game starts.

Reimplemented from vex::GameObject.

Definition at line 12 of file BasicCamera.cpp.

◆ Update()

void vex::BasicCamera::Update ( float deltaTime)
overridevirtual

virtual void function you override to implement custom behavior when the game updates (eg. every frame).

Reimplemented from vex::GameObject.

Definition at line 39 of file BasicCamera.cpp.


The documentation for this class was generated from the following files: