|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Stores references to all ICamera instances in the scene. More...
#include <CameraProvider.hpp>


Public Member Functions | |
| CameraProvider (IntPtr natPtr) | |
| CameraProvider (IGame owner) | |
| ICamera | GetActiveCamera () |
| void | SetActiveCamera (ICamera camera) |
| void | SetActiveCamera (ulong indexCamera) |
| void | Refresh () |
| CameraProvider (IGame *owner) | |
| Constructs a new instance. | |
| ICamera * | operator[] (size_t idx) const |
| Returns the idx-th ICamera instance in the scene. | |
| ICamera * | GetActiveCamera () const noexcept |
| Gets an reference to the active camera object. | |
| void | SetActiveCamera (size_t idx) |
| Same as SetActiveCamera(this->operator[](idx)), but with bounds checking. | |
| void | SetActiveCamera (ICamera *camera) |
| Sets an alternate camera to be used for rendering. | |
| void | Refresh () |
| Should be called when adding/removing cameras into the scene. | |
| size_t | Count () const noexcept |
| Returns the number of ICamera instances in the scene. | |
| Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| virtual void | Dispose () |
| Public Member Functions inherited from Engine3DRadSpace.IService | |
| IGame * | GetOwner () const noexcept |
| Gets the owner of this instance. | |
| virtual | ~IService ()=default |
Properties | |
| ICamera | this[ulong index] [get] |
| ulong | Count [get] |
| Properties inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | Handle [get] |
| Properties inherited from Engine3DRadSpace.IService | |
| IGame | Owner [get] |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy) | |
| NatPtrWrapper (Action< IntPtr > fnDestroy) | |
| void | Reset (IntPtr newObj) |
| void | Dispose (bool disposing) |
| Protected Member Functions inherited from Engine3DRadSpace.IService | |
| IService () | |
| IService (IGame *owner) | |
| IService (const IService &)=delete | |
| IService & | operator= (const IService &)=delete |
| IService (IService &&) noexcept=default | |
| IService & | operator= (IService &&) noexcept=default |
| Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | _handle |
| bool | _disposed |
| Protected Attributes inherited from Engine3DRadSpace.IService | |
| IGame * | _owner = nullptr |
Stores references to all ICamera instances in the scene.
|
inline |
|
inline |
|
explicit |
Constructs a new instance.
| owner | Owner |
|
noexcept |
|
inline |
|
noexcept |
Gets an reference to the active camera object.
| ICamera * CameraProvider::operator[] | ( | size_t | idx | ) | const |
|
inline |
Should be called when adding/removing cameras into the scene.
|
inline |
|
inline |
| void CameraProvider::SetActiveCamera | ( | ICamera * | camera | ) |
Sets an alternate camera to be used for rendering.
| camera | Must be valid during draw calls |
| void CameraProvider::SetActiveCamera | ( | size_t | idx | ) |
Same as SetActiveCamera(this->operator[](idx)), but with bounds checking.
| idx | index |
|
get |
|
get |