ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
CameraManager.h
Go to the documentation of this file.
1/**
2 * @file CameraManager.h
3 * @brief Declares the CameraManager class for managing multiple camera instances.
4 *
5 * This file defines the CameraManager class, which provides functionality to manage
6 * and retrieve multiple CameraBase objects.
7 *
8 * @author Coela Can't
9 * @date 22/12/2024
10 */
11
12#pragma once
13
14#include "../CameraBase.h" // Include for base camera functionality.
15
16/**
17 * @class CameraManager
18 * @brief Manages multiple CameraBase objects.
19 *
20 * The CameraManager class provides a centralized interface for handling
21 * multiple camera instances, including retrieval of camera data and count.
22 */
24protected:
25 CameraBase** cameras; ///< Array of pointers to CameraBase objects.
26 uint8_t count; ///< Number of CameraBase objects managed.
27
28public:
29 /**
30 * @brief Constructs a CameraManager object.
31 *
32 * @param cameras Pointer to an array of CameraBase objects.
33 * @param count The number of cameras in the array.
34 */
36
37 /**
38 * @brief Retrieves the array of CameraBase objects.
39 *
40 * @return A pointer to the array of CameraBase objects.
41 */
43
44 /**
45 * @brief Retrieves the count of cameras managed by the CameraManager.
46 *
47 * @return The number of CameraBase objects.
48 */
49 uint8_t GetCameraCount();
50};
Base class for managing camera properties and transformations.
Definition CameraBase.h:26
Manages multiple CameraBase objects.
uint8_t GetCameraCount()
Retrieves the count of cameras managed by the CameraManager.
uint8_t count
Number of CameraBase objects managed.
CameraBase ** GetCameras()
Retrieves the array of CameraBase objects.
CameraBase ** cameras
Array of pointers to CameraBase objects.