Functions | |
glm::vec3 | ApplyTransform (const glm::mat4 &mat, const glm::vec3 &vec) |
void | CheckGlError (const char *operation) |
float | Clamp (float value, float min, float max) |
GLuint | CreateProgram (const char *vertex_source, const char *fragment_source) |
void | DecomposeMatrix (const glm::mat4 &transform_mat, glm::vec3 &translation, glm::quat &rotation, glm::vec3 &scale) |
float | DistanceSquared (const glm::vec3 &v1, const glm::vec3 &v2) |
TangoSupportRotation | GetAndroidRotationFromColorCameraToDisplay (int display_rotation, int color_camera_rotation) |
TangoSupportRotation | GetAndroidRotationFromColorCameraToDisplay (TangoSupportRotation display_rotation, int color_camera_rotation) |
glm::vec3 | GetColumnFromMatrix (const glm::mat4 &mat, const int col) |
glm::vec3 | GetTranslationFromMatrix (const glm::mat4 &mat) |
glm::vec3 | LerpVector (const glm::vec3 &x, const glm::vec3 &y, float a) |
void | PrintMatrix (const glm::mat4 &matrix) |
void | PrintQuaternion (const glm::quat &quat) |
void | PrintVector (const glm::vec3 &vector) |
bool | SegmentAABBIntersect (const glm::vec3 &aabb_min, const glm::vec3 &aabb_max, const glm::vec3 &start, const glm::vec3 &end) |
glm::vec3 tango_gl::util::ApplyTransform | ( | const glm::mat4 & | mat, |
const glm::vec3 & | vec | ||
) |
void tango_gl::util::CheckGlError | ( | const char * | operation | ) |
float tango_gl::util::Clamp | ( | float | value, |
float | min, | ||
float | max | ||
) |
GLuint tango_gl::util::CreateProgram | ( | const char * | vertex_source, |
const char * | fragment_source | ||
) |
void tango_gl::util::DecomposeMatrix | ( | const glm::mat4 & | transform_mat, |
glm::vec3 & | translation, | ||
glm::quat & | rotation, | ||
glm::vec3 & | scale | ||
) |
float tango_gl::util::DistanceSquared | ( | const glm::vec3 & | v1, |
const glm::vec3 & | v2 | ||
) |
TangoSupportRotation tango_gl::util::GetAndroidRotationFromColorCameraToDisplay | ( | int | display_rotation, |
int | color_camera_rotation | ||
) |
TangoSupportRotation tango_gl::util::GetAndroidRotationFromColorCameraToDisplay | ( | TangoSupportRotation | display_rotation, |
int | color_camera_rotation | ||
) |
glm::vec3 tango_gl::util::GetColumnFromMatrix | ( | const glm::mat4 & | mat, |
const int | col | ||
) |
glm::vec3 tango_gl::util::GetTranslationFromMatrix | ( | const glm::mat4 & | mat | ) |
glm::vec3 tango_gl::util::LerpVector | ( | const glm::vec3 & | x, |
const glm::vec3 & | y, | ||
float | a | ||
) |
void tango_gl::util::PrintMatrix | ( | const glm::mat4 & | matrix | ) |
void tango_gl::util::PrintQuaternion | ( | const glm::quat & | quat | ) |
void tango_gl::util::PrintVector | ( | const glm::vec3 & | vector | ) |