|
GlistEngine
|
#include <gMaterial.h>


Public Member Functions | |
| gMaterial () | |
| gMaterial (const gMaterial &other) | |
| gMaterial & | operator= (const gMaterial &other) |
| ~gMaterial () | |
| bool | isPBR () const |
| void | loadMap (gTexture::TextureType type, const std::string &texturePath) |
| void | setMap (gTexture::TextureType type, gTexture *texture) |
| gTexture * | getMap (gTexture::TextureType type) const |
| void | bindMap (gTexture::TextureType type) const |
| void | bindMap (gTexture::TextureType type, int slotNo) const |
| void | unbindMap (gTexture::TextureType type) const |
| void | setMapEnabled (gTexture::TextureType type, bool enabled) |
| bool | isMapEnabled (gTexture::TextureType type) const |
| void | setAmbientColor (int r, int g, int b, int a=255) |
| void | setAmbientColor (float r, float g, float b, float a=1.0f) |
| void | setAmbientColor (gColor *color) |
| gColor * | getAmbientColor () |
| void | setDiffuseColor (int r, int g, int b, int a=255) |
| void | setDiffuseColor (float r, float g, float b, float a=1.0f) |
| void | setDiffuseColor (gColor *color) |
| gColor * | getDiffuseColor () |
| void | setSpecularColor (int r, int g, int b, int a=255) |
| void | setSpecularColor (float r, float g, float b, float a=1.0f) |
| void | setSpecularColor (gColor *color) |
| gColor * | getSpecularColor () |
| void | setShininess (float shininess) |
| float | getShininess () const |
| void | loadDiffuseMap (const std::string &texturePath) |
| void | setDiffuseMap (gTexture *diffuseMap) |
| gTexture * | getDiffuseMap () |
| void | bindDiffuseMap () const |
| void | unbindDiffuseMap () const |
| void | setDiffuseMapEnabled (bool enabled) |
| bool | isDiffuseMapEnabled () const |
| void | loadSpecularMap (const std::string &texturePath) |
| void | setSpecularMap (gTexture *specularMap) |
| gTexture * | getSpecularMap () |
| void | bindSpecularMap () const |
| void | unbindSpecularMap () const |
| void | setSpecularMapEnabled (bool enabled) |
| bool | isSpecularMapEnabled () const |
| void | loadNormalMap (const std::string &texturePath) |
| void | setNormalMap (gTexture *normalMap) |
| gTexture * | getNormalMap () |
| void | bindNormalMap () const |
| void | unbindNormalMap () const |
| void | setNormalMapEnabled (bool enabled) |
| bool | isNormalMapEnabled () const |
| void | loadHeightMap (const std::string &texturePath) |
| void | setHeightMap (gTexture *heightMap) |
| gTexture * | getHeightMap () |
| void | bindHeightMap () const |
| void | unbindHeightMap () const |
| void | setHeightMapEnabled (bool enabled) |
| bool | isHeightMapEnabled () const |
| void | loadAlbedoMap (const std::string &texturePath) |
| void | setAlbedoMap (gTexture *albedoMap) |
| gTexture * | getAlbedoMap () |
| void | bindAlbedoMap (int slotNo=3) const |
| void | unbindAlbedoMap () const |
| void | setAlbedoMapEnabled (bool enabled) |
| bool | isAlbedoMapEnabled () const |
| void | loadRoughnessMap (const std::string &texturePath) |
| void | setRoughnessMap (gTexture *roughnessMap) |
| gTexture * | getRoughnessMap () |
| void | bindRoughnessMap (int slotNo=6) const |
| void | unbindRoughnessMap () const |
| void | setRoughnessMapEnabled (bool enabled) |
| bool | isRoughnessMapEnabled () const |
| void | loadMetalnessMap (const std::string &texturePath) |
| void | setMetalnessMap (gTexture *metalnessMap) |
| gTexture * | getMetalnessMap () |
| void | bindMetalnessMap (int slotNo=5) const |
| void | unbindMetalnessMap () const |
| void | setMetalnessMapEnabled (bool enabled) |
| bool | isMetalnessMapEnabled () const |
| void | loadPbrNormalMap (const std::string &texturePath) |
| void | setPbrNormalMap (gTexture *pbrNormalMap) |
| gTexture * | getPbrNormalMap () |
| void | bindPbrNormalMap (int slotNo=4) const |
| void | unbindPbrNormalMap () const |
| void | setPbrNormalMapEnabled (bool enabled) |
| bool | isPbrNormalMapEnabled () const |
| void | loadAOMap (const std::string &texturePath) |
| void | setAOMap (gTexture *map) |
| gTexture * | getAOMap () |
| void | bindAOMap (int slotNo=7) const |
| void | unbindAOMap () const |
| void | setAOMapEnabled (bool enabled) |
| bool | isAOMapEnabled () const |
Public Member Functions inherited from gRenderObject | |
| gRenderObject () | |
| int | getScreenWidth () |
| int | getScreenHeight () |
| void | pushMatrix () |
| void | popMatrix () |
Public Member Functions inherited from gObject | |
| gObject () | |
| void | logi (std::string message) |
| void | logd (std::string message) |
| void | logw (std::string message) |
| void | loge (std::string message) |
| void | logi (std::string tag, std::string message) |
| void | logd (std::string tag, std::string message) |
| void | logw (std::string tag, std::string message) |
| void | loge (std::string tag, std::string message) |
Additional Inherited Members | |
Static Public Member Functions inherited from gRenderObject | |
| static void | setScreenSize (int screenWidth, int screenHeight) |
| static void | setUnitScreenSize (int unitWidth, int unitHeight) |
| static void | setScreenScaling (int screenScaling) |
| static void | enableShadowMapping () |
| static void | disableShadowMapping () |
| static bool | isShadowMappingEnabled () |
| static gRenderer * | getRenderer () |
| static void | destroyRenderer () |
| static void | createRenderer () |
Static Public Member Functions inherited from gObject | |
| static std::string | gGetAppDir () |
| static std::string | gGetAssetsDir () |
| static void | gSetAssetsDir (std::string assetsDir) |
| static std::string | gGetFilesDir () |
| static std::string | gGetImagesDir () |
| static std::string | gGetFontsDir () |
| static std::string | gGetModelsDir () |
| static std::string | gGetTexturesDir () |
| static std::string | gGetShadersDir () |
| static std::string | gGetSoundsDir () |
| static std::string | gGetDatabasesDir () |
| static std::string | gGetVideosDir () |
| static void | setCurrentResolution (int scalingNo, int currentResolutionNo) |
Static Public Attributes inherited from gObject | |
| static const int | LOGLEVEL_SILENT |
| static const int | LOGLEVEL_DEBUG |
| static const int | LOGLEVEL_INFO |
| static const int | LOGLEVEL_WARNING |
| static const int | LOGLEVEL_ERROR |
Static Protected Attributes inherited from gRenderObject | |
| static bool | isshadowmappingenabled |
Static Protected Attributes inherited from gObject | |
| static int | renderpassnum |
| static int | renderpassno |
| static int | releasescaling |
| static int | releaseresolution |
| gMaterial::gMaterial | ( | ) |
| gMaterial::gMaterial | ( | const gMaterial & | other | ) |
| gMaterial::~gMaterial | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void gMaterial::bindMap | ( | gTexture::TextureType | type | ) | const |
| void gMaterial::bindMap | ( | gTexture::TextureType | type, |
| int | slotNo | ||
| ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| gColor * gMaterial::getAmbientColor | ( | ) |
|
inline |
| gColor * gMaterial::getDiffuseColor | ( | ) |
|
inline |
|
inline |
| gTexture * gMaterial::getMap | ( | gTexture::TextureType | type | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| float gMaterial::getShininess | ( | ) | const |
| gColor * gMaterial::getSpecularColor | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool gMaterial::isMapEnabled | ( | gTexture::TextureType | type | ) | const |
|
inline |
|
inline |
| bool gMaterial::isPBR | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void gMaterial::loadMap | ( | gTexture::TextureType | type, |
| const std::string & | texturePath | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void gMaterial::setAmbientColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1.0f |
||
| ) |
| void gMaterial::setAmbientColor | ( | gColor * | color | ) |
| void gMaterial::setAmbientColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a = 255 |
||
| ) |
|
inline |
|
inline |
| void gMaterial::setDiffuseColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1.0f |
||
| ) |
| void gMaterial::setDiffuseColor | ( | gColor * | color | ) |
| void gMaterial::setDiffuseColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a = 255 |
||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void gMaterial::setMap | ( | gTexture::TextureType | type, |
| gTexture * | texture | ||
| ) |
| void gMaterial::setMapEnabled | ( | gTexture::TextureType | type, |
| bool | enabled | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void gMaterial::setShininess | ( | float | shininess | ) |
| void gMaterial::setSpecularColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1.0f |
||
| ) |
| void gMaterial::setSpecularColor | ( | gColor * | color | ) |
| void gMaterial::setSpecularColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a = 255 |
||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void gMaterial::unbindMap | ( | gTexture::TextureType | type | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |