Public API Reference |
#include <material.h>
Inheritance diagram for aeMaterial:
Public Member Functions | |
aeMaterial () | |
Create a empty material. | |
aeMaterial (char *, aeTexture *) | |
Create a material given a name and a primary texture. | |
aeMaterial (char *, aeTexture *, aeTexture *) | |
Createa a material given a name and a primary texture and a secondary texture. | |
char * | getName () const |
Get the material's name. | |
aeTexture * | getPrimaryTexture () const |
Get The primary texture of this material. | |
aeTexture * | getSecondaryTexture () const |
Get the secondary texture of this material. | |
void | addTexture (aeTexture *) |
Add a texture to this material. | |
void | setPrimaryTexture (aeTexture *) |
Set the primary texture of this material. | |
void | setSecondaryTexture (aeTexture *) |
Set the secondary texture of this material. | |
unsigned int | getTextureCount () const |
Get the texture count for this material. | |
bool | hasPrimary () const |
Check if this material has a primary texture. | |
bool | hasSecondary () const |
Check if this material has a secondary texture. | |
Private Attributes | |
aeTexture * | tex1 |
aeTexture * | tex2 |
int | texCount |
char * | matName |
Definition at line 33 of file material.h.
|
Create a empty material.
|
|
Create a material given a name and a primary texture.
|
|
Createa a material given a name and a primary texture and a secondary texture.
|
|
Add a texture to this material. If the material is empty, the texture will be added as primary. If only primary texture is present, the texture will be added as secondary. If both primary and secondary textures are present this will simply do nothing.
|
|
Get the material's name.
Definition at line 73 of file material.h. |
|
Get The primary texture of this material.
Definition at line 81 of file material.h. |
|
Get the secondary texture of this material.
Definition at line 89 of file material.h. |
|
Get the texture count for this material. Can be either 0, 1, or 2.
Definition at line 122 of file material.h. |
|
Check if this material has a primary texture.
Definition at line 130 of file material.h. |
|
Check if this material has a secondary texture.
Definition at line 138 of file material.h. |
|
Set the primary texture of this material.
|
|
Set the secondary texture of this material.
|