Untold Engine
Beta v0.0.16
docs
|
The U4DResourceLoader class is in charge of importing 3D model assets . More...
Public Member Functions | |
bool | loadSceneData (std::string uFilepath) |
Method which loads all scene asset data into the game. More... | |
bool | loadAnimationData (std::string uFilepath) |
Method which loads the 3D model animation information. More... | |
bool | loadTextureData (std::string uFilepath) |
Method which loads texture data information. More... | |
bool | loadParticleData (std::string uFilepath) |
Method which loads particle data information. More... | |
bool | loadFontData (std::string uFilepath) |
Method that loads font data information. More... | |
bool | loadLightData (std::string uFilepath) |
bool | loadParticeToParticleSystem (U4DParticleSystem *uParticleSystem, std::string uParticleName) |
Method which loads all particle asset information into the particle entity. More... | |
bool | loadFontToText (U4DText *uText, std::string uFontName) |
Method that loads font asset information into the text entity. More... | |
bool | loadAssetToMesh (U4DModel *uModel, std::string uMeshName) |
Method which loads all 3D asset information into the 3D model entity. More... | |
bool | loadAnimationToMesh (U4DAnimation *uAnimation, std::string uAnimationName) |
Method which loads the 3D model animation information. More... | |
CONVEXHULL | loadConvexHullForMesh (U4DModel *uModel) |
void | loadVerticesData (U4DModel *uModel, std::vector< float > uVertices) |
Method which loads the 3D model vertices. More... | |
void | loadNormalData (U4DModel *uModel, std::vector< float > uNormals) |
Method which loads the 3D model Normal vertices. More... | |
void | loadUVData (U4DModel *uModel, std::vector< float > uUV) |
Method which loads the 3D model uv coordinates. More... | |
void | loadIndexData (U4DModel *uModel, std::vector< int > uIndex) |
Method which loads the 3D model indices data to properly render the model. More... | |
void | loadMaterialIndexData (U4DModel *uModel, std::vector< int > uMaterialIndex) |
Method which loads the index information for each material used by the 3D model entity. More... | |
void | loadDiffuseColorData (U4DModel *uModel, std::vector< float > uDiffuseColor) |
Method which loads the 3D model diffuse material color information. More... | |
void | loadSpecularColorsData (U4DModel *uModel, std::vector< float > uSpecularColor) |
Method which loads the 3D model specular material color information. More... | |
void | loadDiffuseIntensityData (U4DModel *uModel, std::vector< float > uDiffuseIntensity) |
Method which loads the 3D model diffuse material intensity information. More... | |
void | loadSpecularIntensityData (U4DModel *uModel, std::vector< float > uSpecularIntesity) |
Method which loads the 3D model specular material intensity information. More... | |
void | loadSpecularHardnessData (U4DModel *uModel, std::vector< float > uSpecularHardness) |
Method which loads the 3D model specular material shininess information. More... | |
void | loadDimensionDataToBody (U4DModel *uModel, std::vector< float > uDimension) |
Method which loads the 3D model dimension information. More... | |
void | loadEntityMatrixSpace (U4DEntity *uModel, std::vector< float > uLocalMatrix) |
Method which loads the Entity matrix space-Orientation and translation. More... | |
void | loadMeshVerticesData (U4DModel *uModel, std::vector< float > uMeshVertices) |
Method to load Mesh Vertex data. Currently used to create an octree around the character. More... | |
void | loadMeshEdgesData (U4DModel *uModel, std::vector< int > uMeshEdgesIndex) |
Method to load Mesh Edges index data. Currently used to create an octree around the character. More... | |
void | loadMeshFacesData (U4DModel *uModel, std::vector< int > uMeshFacesIndex) |
Method to load Mesh Faces index data. Currently used to create an octree around the character. More... | |
void | loadSpaceData (U4DMatrix4n &uMatrix, std::vector< float > uSpaceData) |
Method which loads space data-Orientation/translation. More... | |
void | loadSpaceData (U4DDualQuaternion &uSpace, std::vector< float > uSpaceData) |
Method which loads space data-Orientation/translation. More... | |
void | loadVertexBoneWeightsToBody (std::vector< float > &uVertexWeights, std::vector< float > uWeights) |
Method which loads the 3D model armature bone weights. More... | |
void | loadNormalMap (U4DModel *uModel, std::string uNormalMapName) |
bool | loadTextureDataToEntity (U4DRenderEntity *uRenderEntity, const char *uTextureName) |
void | clear () |
Clears the data in the containers. | |
Static Public Member Functions | |
static U4DResourceLoader * | sharedInstance () |
Shared Instance for the digital asset loader Singleton. | |
Public Attributes | |
std::vector< TEXTURESRAW > | texturesContainer |
Container holding all the textures used in the scene. | |
Static Public Attributes | |
static U4DResourceLoader * | instance =0 |
Instance for the digital asset loader Singleton. | |
Protected Member Functions | |
U4DResourceLoader () | |
Constructor for the digital asset loader. | |
~U4DResourceLoader () | |
Destructor for the digital asset loader. | |
The U4DResourceLoader class is in charge of importing 3D model assets .
bool U4DEngine::U4DResourceLoader::loadAnimationData | ( | std::string | uFilepath | ) |
Method which loads the 3D model animation information.
uFilepath | Name of the binary file containing animation data |
bool U4DEngine::U4DResourceLoader::loadAnimationToMesh | ( | U4DAnimation * | uAnimation, |
std::string | uAnimationName | ||
) |
Method which loads the 3D model animation information.
uAnimation | animation information to load |
uAnimationName | Name of the animation to load |
bool U4DEngine::U4DResourceLoader::loadAssetToMesh | ( | U4DModel * | uModel, |
std::string | uMeshName | ||
) |
Method which loads all 3D asset information into the 3D model entity.
uModel | 3D model entity |
uMeshName | Name of the 3D model given by the modeling software |
void U4DEngine::U4DResourceLoader::loadDiffuseColorData | ( | U4DModel * | uModel, |
std::vector< float > | uDiffuseColor | ||
) |
Method which loads the 3D model diffuse material color information.
uModel | 3D model entity |
uDiffuseColor | Data containing the diffuse material color information |
void U4DEngine::U4DResourceLoader::loadDiffuseIntensityData | ( | U4DModel * | uModel, |
std::vector< float > | uDiffuseIntensity | ||
) |
Method which loads the 3D model diffuse material intensity information.
uModel | 3D model entity |
uDiffuseIntensity | Data containing the diffuse intensity information |
void U4DEngine::U4DResourceLoader::loadDimensionDataToBody | ( | U4DModel * | uModel, |
std::vector< float > | uDimension | ||
) |
Method which loads the 3D model dimension information.
uModel | 3D model entity |
uDimension | Data containing the dimension of the 3D model |
void U4DEngine::U4DResourceLoader::loadEntityMatrixSpace | ( | U4DEntity * | uModel, |
std::vector< float > | uLocalMatrix | ||
) |
Method which loads the Entity matrix space-Orientation and translation.
uModel | 3D model entity |
uLocalMatrix | Data containing the matrix space information |
bool U4DEngine::U4DResourceLoader::loadFontData | ( | std::string | uFilepath | ) |
Method that loads font data information.
uFilepath | Name of the binary file containing font data |
bool U4DEngine::U4DResourceLoader::loadFontToText | ( | U4DText * | uText, |
std::string | uFontName | ||
) |
Method that loads font asset information into the text entity.
uText | text entity |
uFontName | Name of the font asst |
void U4DEngine::U4DResourceLoader::loadIndexData | ( | U4DModel * | uModel, |
std::vector< int > | uIndex | ||
) |
Method which loads the 3D model indices data to properly render the model.
uModel | 3D model entity |
uIndex | Container containing the indices data |
bool U4DEngine::U4DResourceLoader::loadLightData | ( | std::string | uFilepath | ) |
void U4DEngine::U4DResourceLoader::loadMaterialIndexData | ( | U4DModel * | uModel, |
std::vector< int > | uMaterialIndex | ||
) |
Method which loads the index information for each material used by the 3D model entity.
uModel | 3D model entity |
uMaterialIndex | index information for each material used by the 3D entity |
void U4DEngine::U4DResourceLoader::loadMeshEdgesData | ( | U4DModel * | uModel, |
std::vector< int > | uMeshEdgesIndex | ||
) |
Method to load Mesh Edges index data. Currently used to create an octree around the character.
uModel | 3D model entity |
uMeshEdgesIndex | Data containing the mesh edges indices |
void U4DEngine::U4DResourceLoader::loadMeshFacesData | ( | U4DModel * | uModel, |
std::vector< int > | uMeshFacesIndex | ||
) |
Method to load Mesh Faces index data. Currently used to create an octree around the character.
uModel | 3D model entity |
uMeshFacesIndex | Data containing the mesh faces indices |
void U4DEngine::U4DResourceLoader::loadMeshVerticesData | ( | U4DModel * | uModel, |
std::vector< float > | uMeshVertices | ||
) |
Method to load Mesh Vertex data. Currently used to create an octree around the character.
uModel | 3D model entity |
uMeshVertices | Data containing the mesh vertices |
void U4DEngine::U4DResourceLoader::loadNormalData | ( | U4DModel * | uModel, |
std::vector< float > | uNormals | ||
) |
Method which loads the 3D model Normal vertices.
uModel | 3D model entity |
uNormals | Container containing the Normal vertices |
bool U4DEngine::U4DResourceLoader::loadParticeToParticleSystem | ( | U4DParticleSystem * | uParticleSystem, |
std::string | uParticleName | ||
) |
Method which loads all particle asset information into the particle entity.
uParticleSystem | particle system |
uParticleName | Name of the particle given by the particle software |
bool U4DEngine::U4DResourceLoader::loadParticleData | ( | std::string | uFilepath | ) |
Method which loads particle data information.
uFilepath | Name of the binary file containing particle data |
bool U4DEngine::U4DResourceLoader::loadSceneData | ( | std::string | uFilepath | ) |
Method which loads all scene asset data into the game.
uFilepath | Name of the binary file containing scene data |
void U4DEngine::U4DResourceLoader::loadSpaceData | ( | U4DDualQuaternion & | uSpace, |
std::vector< float > | uSpaceData | ||
) |
Method which loads space data-Orientation/translation.
uSpace | Dual quaternion object receiving the space data |
uSpaceData | Data containing space information |
void U4DEngine::U4DResourceLoader::loadSpaceData | ( | U4DMatrix4n & | uMatrix, |
std::vector< float > | uSpaceData | ||
) |
Method which loads space data-Orientation/translation.
uMatrix | 4x4 matrix object receiving the space data |
uSpaceData | Data containing space information |
void U4DEngine::U4DResourceLoader::loadSpecularColorsData | ( | U4DModel * | uModel, |
std::vector< float > | uSpecularColor | ||
) |
Method which loads the 3D model specular material color information.
uModel | 3D model entity |
uSpecularColor | Data containing the specular material color information |
void U4DEngine::U4DResourceLoader::loadSpecularHardnessData | ( | U4DModel * | uModel, |
std::vector< float > | uSpecularHardness | ||
) |
Method which loads the 3D model specular material shininess information.
uModel | 3D model entity |
uSpecularHardness | Data containing the specular shininess information |
void U4DEngine::U4DResourceLoader::loadSpecularIntensityData | ( | U4DModel * | uModel, |
std::vector< float > | uSpecularIntesity | ||
) |
Method which loads the 3D model specular material intensity information.
uModel | 3D model entity |
uSpecularIntesity | Data containing the specular intensity information |
bool U4DEngine::U4DResourceLoader::loadTextureData | ( | std::string | uFilepath | ) |
Method which loads texture data information.
uFilepath | Name of the binary file containing texture data |
void U4DEngine::U4DResourceLoader::loadUVData | ( | U4DModel * | uModel, |
std::vector< float > | uUV | ||
) |
Method which loads the 3D model uv coordinates.
uModel | 3D model entity |
uUV | Container containing the uv coordinates |
void U4DEngine::U4DResourceLoader::loadVertexBoneWeightsToBody | ( | std::vector< float > & | uVertexWeights, |
std::vector< float > | uWeights | ||
) |
Method which loads the 3D model armature bone weights.
uVertexWeights | 3D model bone weight container |
uWeights | Data containing the bone weight data |
void U4DEngine::U4DResourceLoader::loadVerticesData | ( | U4DModel * | uModel, |
std::vector< float > | uVertices | ||
) |
Method which loads the 3D model vertices.
uModel | 3D model entity |
uVertices | Container containing the vertices information |