![]() |
AireEngine
A 3D Open-World Game Engine
|
Class to identify a material for Blinn-Phong rendering. More...
#include <material.h>


Public Member Functions | |
| Material (MatHandle &) | |
| bool | hasTexture () |
| void | setColor (glm::vec3 &col, ColorType colType) |
| glm::vec3 * | getColor (ColorType colType) |
| void | setTexture (TexturePtr &, TextureType texType) |
| TexturePtr | getTexture (TextureType texType) |
| void | setShininess (float val) |
| float * | getShininess () |
| uint32_t | getSize () |
| MatHandle | getHandle () |
Public Member Functions inherited from Aire::Resource | |
| Resource () | |
| Default constructor. | |
| virtual | ~Resource () |
| Default destructor. | |
| bool | isLoadToGpu () |
| ResourceState | getState () |
| void | setState (ResourceState state) |
Additional Inherited Members | |
Protected Attributes inherited from Aire::Resource | |
| ResourceState | resourceState |
Class to identify a material for Blinn-Phong rendering.
| glm::vec3 * Aire::Material::getColor | ( | ColorType | colType | ) |
Get material colour
| colType | The colour type to query |
| MatHandle Aire::Material::getHandle | ( | ) |
|
virtual |
Implements Aire::Resource.
| Aire::TexturePtr Aire::Material::getTexture | ( | TextureType | texType | ) |
Get a texture attached to the material
| texType | The type of texture of query (diffuse, specular, etc.) |
| bool Aire::Material::hasTexture | ( | ) |
| void Aire::Material::setColor | ( | glm::vec3 & | col, |
| ColorType | colType ) |
Set colour of the material
| col | Colour to set |
| colType | The type of colour on the material to be set |
Set shininess value
| val | The shininess value to set |
| void Aire::Material::setTexture | ( | TexturePtr & | texHandle, |
| TextureType | texType ) |
Set texture on the material
| texHandle | The texture object to be attached to the material |
| texType | The type of texture to attach (diffuse, specular, etc.) |