|
| | gBoundingBox () |
| |
| | gBoundingBox (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) |
| |
| | gBoundingBox (float minX, float minY, float minZ, float maxX, float maxY, float maxZ, glm::mat4 transformationMatrix) |
| |
| | gBoundingBox (const gBoundingBox &b) |
| |
| virtual | ~gBoundingBox () |
| |
| void | set (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) |
| |
| void | set (const gBoundingBox &b) |
| |
| bool | intersects (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) const |
| |
| bool | intersects (const gBoundingBox &b) const |
| |
| bool | contains (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) const |
| |
| bool | contains (const gBoundingBox &b) const |
| |
| bool | contains (float x, float y, float z) const |
| |
| gBoundingBox | merge (const gBoundingBox &other) const |
| |
| gBoundingBox | offset (const glm::vec3 &offset) const |
| |
| bool | intersects (gRay &ray) const |
| |
| float | distance (gRay &ray) const |
| |
| bool | intersects (gRay *ray) const |
| |
| float | distance (gRay *ray) const |
| |
| const glm::vec3 & | getMin () const |
| |
| const glm::vec3 & | getMax () const |
| |
| float | minX () const |
| |
| float | minY () const |
| |
| float | minZ () const |
| |
| float | maxX () const |
| |
| float | maxY () const |
| |
| float | maxZ () const |
| |
| float | getWidth () const |
| |
| float | getHeight () const |
| |
| float | getDepth () const |
| |
| const glm::vec3 & | getOrigin () const |
| |
| void | setTransformationMatrix (const glm::mat4 &matrix) |
| |
| bool | intersectsOBB (gRay *ray) const |
| |
| float | distanceOBB (gRay *ray) const |
| |
| void | draw () const |
| |
| void | drawOBB () const |
| |
| | gRenderObject () |
| |
| int | getScreenWidth () |
| |
| int | getScreenHeight () |
| |
| void | pushMatrix () |
| |
| void | popMatrix () |
| |
| | 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) |
| |
|
| static bool | intersects (float minX1, float minY1, float minZ1, float maxX1, float maxY1, float maxZ1, float minX2, float minY2, float minZ2, float maxX2, float maxY2, float maxZ2) |
| |
| static bool | intersects (const gBoundingBox &b1, const gBoundingBox &b2) |
| |
| static bool | contains (float minX1, float minY1, float minZ1, float maxX1, float maxY1, float maxZ1, float minX2, float minY2, float minZ2, float maxX2, float maxY2, float maxZ2) |
| |
| static bool | contains (const gBoundingBox &b1, const gBoundingBox &b2) |
| |
| 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 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) |
| |
gBoundingBox represents an axis aligned box (AABB) defined by 6 parameters for the minimum and maximum values of its corners. Abounding box has 3 size parameters: width, height and depth; that are calculated automatically after setting min and max values. One can use gBoundingBox in calculating broad distance intersection(rejection test) of the objects.