Skip to content

Class AIAC::LayerCamera

ClassList > AIAC > LayerCamera

Inherits the following classes: AIAC::Layer

Public Attributes

Type Name
std::vector< std::string > AvailableDevices
AIAC::Camera MainCamera

Public Functions

Type Name
std::string GetCurrentDevice () const
int GetCurrentDeviceIndex () const
LayerCamera () = default
virtual void OnAttach () override
Is called when the layer is attached to the application.
virtual void OnFrameStart () override
Is called when frame starts.
void SetCurrentDevice (std::string path)
void SetCurrentDeviceIndex (int index)
bool UpdateAvailableDevices ()
Update the list of available devices.
virtual ~LayerCamera () = default

Public Functions inherited from AIAC::Layer

See AIAC::Layer

Type Name
virtual void OnAttach ()
Is called when the layer is attached to the application.
virtual void OnDetach ()
Is called when the layer is detached from the application (~app).
virtual void OnFrameAwake ()
Is calle before GLFW poll events, GL frame and Imgui Frame.
virtual void OnFrameEnd ()
Is called when frame ends.
virtual void OnFrameFall ()
Is called when the GLFW, GL and Imgui frame is updated and rendered.
virtual void OnFrameStart ()
Is called when frame starts.
virtual ~Layer () = default

Public Attributes Documentation

variable AvailableDevices

std::vector<std::string> AIAC::LayerCamera::AvailableDevices;

variable MainCamera

AIAC::Camera AIAC::LayerCamera::MainCamera;

Public Functions Documentation

function GetCurrentDevice

inline std::string AIAC::LayerCamera::GetCurrentDevice () const

function GetCurrentDeviceIndex

inline int AIAC::LayerCamera::GetCurrentDeviceIndex () const

function LayerCamera

AIAC::LayerCamera::LayerCamera () = default

function OnAttach

Is called when the layer is attached to the application.

virtual void AIAC::LayerCamera::OnAttach () override

Implements AIAC::Layer::OnAttach


function OnFrameStart

Is called when frame starts.

virtual void AIAC::LayerCamera::OnFrameStart () override

Implements AIAC::Layer::OnFrameStart


function SetCurrentDevice

void AIAC::LayerCamera::SetCurrentDevice (
    std::string path
) 

function SetCurrentDeviceIndex

void AIAC::LayerCamera::SetCurrentDeviceIndex (
    int index
) 

function UpdateAvailableDevices

Update the list of available devices.

bool AIAC::LayerCamera::UpdateAvailableDevices () 

Returns:

true if the list contains >= 1 device

Returns:

false if the list has no devices


function ~LayerCamera

virtual AIAC::LayerCamera::~LayerCamera () = default


The documentation for this class was generated from the following file src/AIAC/LayerCamera.h