SO3Engine
Public Member Functions | List of all members
SO3::ALMaterial Class Reference

#include <ALMaterial.h>

Public Member Functions

 ALMaterial (ALScene *alscene, aiMaterial *srcMaterial, bool useVertexColor=false)
 
 ~ALMaterial ()
 
std::string convertToScol (bool clearFile=true)
 
std::string convert (boost::filesystem::path expPath, bool clearFile=false)
 
SMaterialload ()
 

Detailed Description

class Material

Definition at line 80 of file ALMaterial.h.

Constructor & Destructor Documentation

◆ ALMaterial()

SO3::ALMaterial::ALMaterial ( ALScene alscene,
aiMaterial *  srcMaterial,
bool  useVertexColor = false 
)

ALMaterial Constructor. It just initialize the variable needed.

Parameters
srcMaterial: Assimp Material to convert.
originPath: Directory of the loaded file. If no export directory is given, It will put the script in this directory.
grp: Ogre ressource group to put the material to.
root: Scol scene to attach the material to.
exportPath: Directory to export the materials to. If exportPath == 0, then use the originPath.

Definition at line 18 of file ALMaterial.cpp.

◆ ~ALMaterial()

SO3::ALMaterial::~ALMaterial ( )

Definition at line 28 of file ALMaterial.cpp.

Member Function Documentation

◆ convert()

std::string SO3::ALMaterial::convert ( boost::filesystem::path  expPath,
bool  clearFile = false 
)

Definition at line 1129 of file ALMaterial.cpp.

◆ convertToScol()

std::string SO3::ALMaterial::convertToScol ( bool  clearFile = true)

Convert a aiMaterial to a scol/ogre material.

Parameters
clearFile: True will create a new material file erasing any precedent material file, false will add the material to the material file.

◆ load()

SMaterial * SO3::ALMaterial::load ( )

Definition at line 1310 of file ALMaterial.cpp.


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