Radium Engine
1.5.20
|
#include <IO/AssimpLoader/AssimpCameraDataLoader.hpp>
Public Member Functions | |
AssimpCameraDataLoader (const bool VERBOSE_MODE=false) | |
void | loadData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::Camera > > &data) override |
Convert all the camera data from scene into data . | |
Protected Member Functions | |
bool | sceneHasCamera (const aiScene *scene) const |
Return true if the given scene has camera data. | |
uint | sceneCameraSize (const aiScene *scene) const |
Return the number of cameras in the given scene. | |
void | loadCameraData (const aiScene *scene, const aiCamera &camera, Core::Asset::Camera &data) |
Fill data with the CameraData from camera . | |
Core::Matrix4 | loadCameraFrame (const aiScene *scene, const Core::Matrix4 &parentFrame, const aiCamera &node) const |
Return the Camera transformation, in world space, for data from the scene. | |
The AssimpCameraDataLoader converts camera data from the Assimp format to the Asset::Camera format.
Definition at line 28 of file AssimpCameraDataLoader.hpp.
|
explicit |
Definition at line 16 of file AssimpCameraDataLoader.cpp.
|
protected |
Fill data
with the CameraData from camera
.
Definition at line 60 of file AssimpCameraDataLoader.cpp.
|
protected |
Return the Camera transformation, in world space, for data
from the
scene.
Definition at line 95 of file AssimpCameraDataLoader.cpp.
|
override |
Convert all the camera data from scene
into data
.
Definition at line 21 of file AssimpCameraDataLoader.cpp.
|
protected |
Return the number of cameras in the given scene.
Definition at line 56 of file AssimpCameraDataLoader.cpp.
|
inlineprotected |
Return true if the given scene has camera data.
Definition at line 52 of file AssimpCameraDataLoader.cpp.