#include "assimp/aabb.h"
#include "assimp/types.h"
#include <glm/glm.hpp>
#include "shared/game/sharedobject.hpp"
#include <glm/gtc/quaternion.hpp>
Go to the source code of this file.
◆ GLM_ENABLE_EXPERIMENTAL
| #define GLM_ENABLE_EXPERIMENTAL |
◆ aiBboxToGLM()
| Bbox aiBboxToGLM |
( |
const aiAABB & |
bbox | ) |
|
◆ aiColorToGLM()
| glm::vec3 aiColorToGLM |
( |
const aiColor3D & |
color | ) |
|
Convert ASSIMP color to a glm::vec3
- Parameters
-
- Returns
- glm::vec3 of (r, g, b)
◆ combineBboxes()
| Bbox combineBboxes |
( |
const Bbox & |
bbox1, |
|
|
const Bbox & |
bbox2 |
|
) |
| |
Combine two bounding boxes together to get the bounding box that encompasses the space both of them take up.
Note that
- Parameters
-
| bbox1 | is a bounding box |
| bbox2 | is another bounding box |
- Returns
- is the combined bounding box which contains both of the provided bounding boxes
◆ getGLMQuat()
| glm::quat getGLMQuat |
( |
const aiQuaternion & |
pOrientation | ) |
|
◆ getGLMVec()
| glm::vec3 getGLMVec |
( |
const aiVector3D & |
vec | ) |
|
◆ matrixToGLM()
| glm::mat4 matrixToGLM |
( |
const aiMatrix4x4 & |
from | ) |
|
◆ rotate90DegreesAroundXAxis()
| glm::vec3 rotate90DegreesAroundXAxis |
( |
const glm::vec3 & |
direction | ) |
|
◆ rotate90DegreesAroundYAxis()
| glm::vec3 rotate90DegreesAroundYAxis |
( |
const glm::vec3 & |
direction | ) |
|