Radium Engine  1.5.0
Ra::IO::AssimpCameraDataLoader Class Reference

#include <IO/AssimpLoader/AssimpCameraDataLoader.hpp>

Inherits Ra::Core::Asset::DataLoader< DATA >.

+ Collaboration diagram for Ra::IO::AssimpCameraDataLoader:

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. More...
 

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.
 

Detailed Description

The AssimpCameraDataLoader converts camera data from the Assimp format to the Asset::Camera format.

Definition at line 28 of file AssimpCameraDataLoader.hpp.

Member Function Documentation

◆ loadData()

void Ra::IO::AssimpCameraDataLoader::loadData ( const aiScene *  scene,
std::vector< std::unique_ptr< Core::Asset::Camera >> &  data 
)
override

Convert all the camera data from scene into data.

Todo:
process camera name to feed component name

Definition at line 21 of file AssimpCameraDataLoader.cpp.


The documentation for this class was generated from the following files: