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¶
variable MainCamera¶
Public Functions Documentation¶
function GetCurrentDevice¶
function GetCurrentDeviceIndex¶
function LayerCamera¶
function OnAttach¶
Is called when the layer is attached to the application.
Implements AIAC::Layer::OnAttach
function OnFrameStart¶
Is called when frame starts.
Implements AIAC::Layer::OnFrameStart
function SetCurrentDevice¶
function SetCurrentDeviceIndex¶
function UpdateAvailableDevices¶
Update the list of available devices.
Returns:
true if the list contains >= 1 device
Returns:
false if the list has no devices
function ~LayerCamera¶
The documentation for this class was generated from the following file src/AIAC/LayerCamera.h