Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Scene Class Referenceabstract

#include <Scene.hpp>

Inheritance diagram for Scene:
DecryptFileScene EncryptFileScene

Public Member Functions

 ENIGMA_NON_COPYABLE (Scene)
 
 ENIGMA_NON_MOVEABLE (Scene)
 
 Scene () noexcept
 
virtual ~Scene () noexcept=default
 
virtual void OnCreate ()=0
 
virtual void OnEvent (Event &event)=0
 
virtual void OnUpdate (const float &dt)=0
 
virtual void OnDraw ()=0
 
virtual void OnImGuiDraw ()=0
 
virtual void OnDestroy ()=0
 
const bool WantsToQuit () const noexcept
 
const bool IsLoading () const noexcept
 
std::mutex & GetMutex () noexcept
 
void EndScene () noexcept
 
void SetLoading (const bool loading) noexcept
 

Protected Attributes

std::mutex m_mutex {}
 
bool m_quit {}
 
bool m_isLoading {}
 

Friends

class Application
 

Detailed Description

Definition at line 20 of file Scene.hpp.

Constructor & Destructor Documentation

◆ Scene()

Scene::Scene ( )
noexcept

◆ ~Scene()

virtual Scene::~Scene ( )
virtualdefaultnoexcept

Member Function Documentation

◆ EndScene()

void Scene::EndScene ( )
inlinenoexcept

Definition at line 45 of file Scene.hpp.

◆ ENIGMA_NON_COPYABLE()

Scene::ENIGMA_NON_COPYABLE ( Scene  )

◆ ENIGMA_NON_MOVEABLE()

Scene::ENIGMA_NON_MOVEABLE ( Scene  )

◆ GetMutex()

std::mutex& Scene::GetMutex ( )
inlinenoexcept

Definition at line 42 of file Scene.hpp.

◆ IsLoading()

const bool Scene::IsLoading ( ) const
inlinenoexcept

Definition at line 41 of file Scene.hpp.

◆ OnCreate()

virtual void Scene::OnCreate ( )
pure virtual

◆ OnDestroy()

virtual void Scene::OnDestroy ( )
pure virtual

◆ OnDraw()

virtual void Scene::OnDraw ( )
pure virtual

◆ OnEvent()

virtual void Scene::OnEvent ( Event event)
pure virtual

◆ OnImGuiDraw()

virtual void Scene::OnImGuiDraw ( )
pure virtual

◆ OnUpdate()

virtual void Scene::OnUpdate ( const float &  dt)
pure virtual

◆ SetLoading()

void Scene::SetLoading ( const bool  loading)
inlinenoexcept

Definition at line 46 of file Scene.hpp.

◆ WantsToQuit()

const bool Scene::WantsToQuit ( ) const
inlinenoexcept

Definition at line 40 of file Scene.hpp.

Friends And Related Function Documentation

◆ Application

friend class Application
friend

Definition at line 22 of file Scene.hpp.

Member Data Documentation

◆ m_isLoading

bool Scene::m_isLoading {}
protected

Definition at line 51 of file Scene.hpp.

◆ m_mutex

std::mutex Scene::m_mutex {}
protected

Definition at line 49 of file Scene.hpp.

◆ m_quit

bool Scene::m_quit {}
protected

Definition at line 50 of file Scene.hpp.


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