Support Forum G3D Web Page |
Public Member Functions | |
Specification () | |
Specification (const String &trisFilename) | |
Infers the rest of the specification from the path to (and including) the tris.md2 file. More... | |
Specification (const Any &any) | |
Example .any file format: More... | |
Public Attributes | |
String | filename |
Main part .md2 filename. More... | |
shared_ptr< UniversalMaterial > | material |
Cannot be nullptr. More... | |
bool | negateNormals |
If true, negate the normal direction on this object when rendering. More... | |
float | scale |
String | weaponFilename |
Optional second part .md2 filename, which is typically the weapon. More... | |
shared_ptr< UniversalMaterial > | weaponMaterial |
May be nullptr if weaponFilename is the empty string. More... | |
G3D::MD2Model::Specification::Specification | ( | ) |
G3D::MD2Model::Specification::Specification | ( | const String & | trisFilename | ) |
Infers the rest of the specification from the path to (and including) the tris.md2 file.
G3D::MD2Model::Specification::Specification | ( | const Any & | any | ) |
Example .any file format:
String G3D::MD2Model::Specification::filename |
Main part .md2 filename.
This typically ends in tris.md2.
shared_ptr<UniversalMaterial> G3D::MD2Model::Specification::material |
Cannot be nullptr.
bool G3D::MD2Model::Specification::negateNormals |
If true, negate the normal direction on this object when rendering.
Most models do not need this. An example of one that does is the "suw" model included with the G3D data pack.
float G3D::MD2Model::Specification::scale |
String G3D::MD2Model::Specification::weaponFilename |
Optional second part .md2 filename, which is typically the weapon.
shared_ptr<UniversalMaterial> G3D::MD2Model::Specification::weaponMaterial |
May be nullptr if weaponFilename is the empty string.