|
GlistEngine
|
#include <gModel.h>


Public Member Functions | |
| gModel () | |
| virtual | ~gModel () |
| void | disassemble () |
| void | loadModel (const std::string &modelPath) |
| void | loadModelWithOriginalVertices (const std::string &modelPath) |
| void | loadMorphingTargetModel (const std::string &modelPath) |
| void | load (const std::string &fullPath) |
| void | draw () |
| const std::string & | getFilename () const |
| const std::string | getFullpath () const |
| int | getMeshNum () const |
| int | getMeshNo (const std::string &meshName) const |
| gSkinnedMesh & | getMesh (int meshNo) |
| gSkinnedMesh * | getMeshPtr (int meshNo) |
| std::string | getMeshName (int meshNo) const |
| const gBoundingBox & | getBoundingBox () |
| void | move (float dx, float dy, float dz) |
| void | move (const glm::vec3 &dv) |
| void | rotate (const glm::quat &q) |
| void | rotate (float radians, float ax, float ay, float az) |
| void | rotateDeg (float degrees, float ax, float ay, float az) |
| void | rotateAround (float radians, const glm::vec3 &axis, const glm::vec3 &point) |
| void | rotateAroundDeg (float degrees, const glm::vec3 &axis, const glm::vec3 &point) |
| void | scale (float sx, float sy, float sz) |
| void | scale (float s) |
| void | dolly (float distance) |
| void | truck (float distance) |
| void | boom (float distance) |
| void | tilt (float radians) |
| void | tiltDeg (float degrees) |
| void | pan (float radians) |
| void | panDeg (float degrees) |
| void | roll (float radians) |
| void | rollDeg (float degrees) |
| void | setPosition (float px, float py, float pz) |
| void | setPosition (const glm::vec3 &p) |
| void | setOrientation (const glm::quat &o) |
| void | setOrientation (const glm::vec3 &angles) |
| void | setScale (const glm::vec3 &s) |
| void | setScale (float sx, float sy, float sz) |
| void | setScale (float s) |
| void | setTransformationMatrix (const glm::mat4 &transformationMatrix) |
| bool | isAnimated () const |
| int | getAnimationNum () const |
| float | getAnimationDuration (int animationNo=0) const |
| void | animate (float animationPosition) |
| float | getAnimationPosition () const |
| void | setAnimationFrameNo (int frameNo) |
| void | nextAnimationFrame () |
| int | getAnimationFrameNo () const |
| void | setAnimationFrameNum (int animationKeyNum) |
| int | getAnimationFrameNum () const |
| void | setAnimationFramerate (float animationFramerate) |
| float | getAnimationFramerate () const |
| void | setMorphingFrameNo (int morphingAnimationNo) |
| int | getMorphingFrameNo () const |
| void | nextMorphingFrame () |
| void | setMorphingSpeed (int speed) |
| int | getMorphingSpeed () const |
| void | setMorphingFrameNum (int morphingFrameNum) |
| int | getMorphingFrameNum () const |
| void | setMorphingTarget (int morphingTargetId) |
| int | getMorphingTarget () const |
| bool | isVertexAnimated () const |
| bool | isVertexAnimationStoredOnVram () const |
| void | makeVertexAnimated (bool storeOnVram=true) |
| gBoundingBox & | getInitialBoundingBox () |
| void | recalculateBoundingBox () |
| void | setEnableFrustumCulling (bool enable) |
Public Member Functions inherited from gNode | |
| gNode () | |
| virtual | ~gNode () |
| void | move (float dx, float dy, float dz) |
| void | move (const glm::vec3 &dv) |
| void | rotate (const glm::quat &q) |
| void | rotate (float radians, float ax, float ay, float az) |
| void | rotateDeg (float degrees, float ax, float ay, float az) |
| void | rotateAround (float radians, const glm::vec3 &axis, const glm::vec3 &point) |
| void | rotateAroundDeg (float degrees, const glm::vec3 &axis, const glm::vec3 &point) |
| void | scale (float sx, float sy, float sz) |
| void | scale (float s) |
| void | setPosition (float px, float py, float pz) |
| void | setPosition (const glm::vec3 &pv) |
| void | setOrientation (const glm::quat &o) |
| void | setOrientation (const glm::vec3 &angles) |
| void | setScale (const glm::vec3 &s) |
| void | setScale (float sx, float sy, float sz) |
| void | setScale (float s) |
| void | truck (float distance) |
| void | boom (float distance) |
| void | dolly (float distance) |
| void | tilt (float radians) |
| void | tiltDeg (float degrees) |
| void | pan (float radians) |
| void | panDeg (float degrees) |
| void | roll (float radians) |
| void | rollDeg (float degrees) |
| float | getPosX () const |
| float | getPosY () const |
| float | getPosZ () const |
| const glm::vec3 & | getPosition () const |
| const glm::quat & | getOrientation () const |
| const glm::vec3 & | getScale () const |
| glm::vec3 | getScalarDirectionX () const |
| glm::vec3 | getScalarDirectionY () const |
| glm::vec3 | getScalarDirectionZ () const |
| void | setTransformationMatrix (const glm::mat4 &transformationMatrix) |
| const glm::mat4 & | getTransformationMatrix () const |
| int | getId () const |
| void | setParent (gNode *parent) |
| gNode * | getParent () const |
| void | removeParent () |
| void | addChild (gNode *child) |
| void | removeChild (gNode *child) |
| void | removeChild (int gObjectId) |
| void | setEnabled (bool isEnabled) |
| bool | isEnabled () const |
| void | pushMatrix () const |
| void | popMatrix () 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) |
Public Attributes | |
| std::deque< gTexture * > | textures_loaded |
| std::deque< gSkinnedMesh * > | meshes |
| std::string | directory |
Protected Member Functions | |
| void | processTransformationMatrix () override |
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 |
Protected Attributes inherited from gNode | |
| gNode * | parent |
| std::deque< gNode * > | children |
| glm::mat4 | localtransformationmatrix |
| bool | isenabled |
| glm::vec3 | position |
| glm::quat | orientation |
| glm::vec3 | scalevec |
| glm::vec3 | prevposition |
| glm::quat | prevorientation |
| glm::vec3 | prevscalevec |
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 |
| gModel::gModel | ( | ) |
|
virtual |
| void gModel::animate | ( | float | animationPosition | ) |
| void gModel::boom | ( | float | distance | ) |
| void gModel::disassemble | ( | ) |
| void gModel::dolly | ( | float | distance | ) |
| void gModel::draw | ( | ) |
| float gModel::getAnimationDuration | ( | int | animationNo = 0 | ) | const |
| int gModel::getAnimationFrameNo | ( | ) | const |
| int gModel::getAnimationFrameNum | ( | ) | const |
| float gModel::getAnimationFramerate | ( | ) | const |
| int gModel::getAnimationNum | ( | ) | const |
| float gModel::getAnimationPosition | ( | ) | const |
| const gBoundingBox & gModel::getBoundingBox | ( | ) |
| const std::string & gModel::getFilename | ( | ) | const |
| const std::string gModel::getFullpath | ( | ) | const |
| gBoundingBox & gModel::getInitialBoundingBox | ( | ) |
| gSkinnedMesh & gModel::getMesh | ( | int | meshNo | ) |
| std::string gModel::getMeshName | ( | int | meshNo | ) | const |
| int gModel::getMeshNo | ( | const std::string & | meshName | ) | const |
| int gModel::getMeshNum | ( | ) | const |
| gSkinnedMesh * gModel::getMeshPtr | ( | int | meshNo | ) |
| int gModel::getMorphingFrameNo | ( | ) | const |
| int gModel::getMorphingFrameNum | ( | ) | const |
| int gModel::getMorphingSpeed | ( | ) | const |
| int gModel::getMorphingTarget | ( | ) | const |
| bool gModel::isAnimated | ( | ) | const |
| bool gModel::isVertexAnimated | ( | ) | const |
| bool gModel::isVertexAnimationStoredOnVram | ( | ) | const |
| void gModel::load | ( | const std::string & | fullPath | ) |
| void gModel::loadModel | ( | const std::string & | modelPath | ) |
| void gModel::loadModelWithOriginalVertices | ( | const std::string & | modelPath | ) |
| void gModel::loadMorphingTargetModel | ( | const std::string & | modelPath | ) |
| void gModel::makeVertexAnimated | ( | bool | storeOnVram = true | ) |
| void gModel::move | ( | const glm::vec3 & | dv | ) |
|
inline |
| void gModel::nextAnimationFrame | ( | ) |
| void gModel::nextMorphingFrame | ( | ) |
| void gModel::pan | ( | float | radians | ) |
|
inline |
|
overrideprotectedvirtual |
Reimplemented from gNode.
| void gModel::recalculateBoundingBox | ( | ) |
| void gModel::roll | ( | float | radians | ) |
|
inline |
| void gModel::rotate | ( | const glm::quat & | q | ) |
| void gModel::rotate | ( | float | radians, |
| float | ax, | ||
| float | ay, | ||
| float | az | ||
| ) |
| void gModel::rotateAround | ( | float | radians, |
| const glm::vec3 & | axis, | ||
| const glm::vec3 & | point | ||
| ) |
|
inline |
|
inline |
| void gModel::scale | ( | float | s | ) |
| void gModel::scale | ( | float | sx, |
| float | sy, | ||
| float | sz | ||
| ) |
| void gModel::setAnimationFrameNo | ( | int | frameNo | ) |
| void gModel::setAnimationFrameNum | ( | int | animationKeyNum | ) |
| void gModel::setAnimationFramerate | ( | float | animationFramerate | ) |
| void gModel::setEnableFrustumCulling | ( | bool | enable | ) |
| void gModel::setMorphingFrameNo | ( | int | morphingAnimationNo | ) |
| void gModel::setMorphingFrameNum | ( | int | morphingFrameNum | ) |
| void gModel::setMorphingSpeed | ( | int | speed | ) |
| void gModel::setMorphingTarget | ( | int | morphingTargetId | ) |
| void gModel::setOrientation | ( | const glm::quat & | o | ) |
| void gModel::setOrientation | ( | const glm::vec3 & | angles | ) |
| void gModel::setPosition | ( | const glm::vec3 & | p | ) |
|
inline |
| void gModel::setScale | ( | const glm::vec3 & | s | ) |
|
inline |
|
inline |
| void gModel::setTransformationMatrix | ( | const glm::mat4 & | transformationMatrix | ) |
| void gModel::tilt | ( | float | radians | ) |
|
inline |
| void gModel::truck | ( | float | distance | ) |
| std::string gModel::directory |
| std::deque<gSkinnedMesh*> gModel::meshes |
| std::deque<gTexture*> gModel::textures_loaded |