Namespaces | Macros | Functions
tango-gl/include/tango-gl/util.h File Reference
#include <stdlib.h>
#include <jni.h>
#include <android/log.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/quaternion.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glm/gtx/matrix_decompose.hpp"
Include dependency graph for tango-gl/include/tango-gl/util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tango_gl
 
 tango_gl::util
 

Macros

#define DEGREE_2_RADIANS   0.0174532925f
 
#define GL_VERTEX_PROGRAM_POINT_SIZE   0x8642
 
#define GLM_FORCE_RADIANS
 
#define LOG_TAG   "rtabmap"
 
#define LOGD(...)   __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
 
#define LOGE(...)   __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
 
#define LOGF(...)   __android_log_print(ANDROID_LOG_FATAL,LOG_TAG,__VA_ARGS__)
 
#define LOGI(...)   __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
 
#define LOGW(...)   __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__)
 
#define M_PI   3.1415926f
 
#define RADIAN_2_DEGREE   57.2957795f
 

Functions

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)
 
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)
 
bool tango_gl::util::SegmentAABBIntersect (const glm::vec3 &aabb_min, const glm::vec3 &aabb_max, const glm::vec3 &start, const glm::vec3 &end)
 

Macro Definition Documentation

#define DEGREE_2_RADIANS   0.0174532925f

Definition at line 53 of file tango-gl/include/tango-gl/util.h.

#define GL_VERTEX_PROGRAM_POINT_SIZE   0x8642

Definition at line 21 of file tango-gl/include/tango-gl/util.h.

#define GLM_FORCE_RADIANS

Definition at line 19 of file tango-gl/include/tango-gl/util.h.

#define LOG_TAG   "rtabmap"

Definition at line 35 of file tango-gl/include/tango-gl/util.h.

#define LOGD (   ...)    __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)

Definition at line 41 of file tango-gl/include/tango-gl/util.h.

#define LOGE (   ...)    __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)

Definition at line 45 of file tango-gl/include/tango-gl/util.h.

#define LOGF (   ...)    __android_log_print(ANDROID_LOG_FATAL,LOG_TAG,__VA_ARGS__)

Definition at line 46 of file tango-gl/include/tango-gl/util.h.

#define LOGI (   ...)    __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)

Definition at line 42 of file tango-gl/include/tango-gl/util.h.

#define LOGW (   ...)    __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__)

Definition at line 43 of file tango-gl/include/tango-gl/util.h.

#define M_PI   3.1415926f

Definition at line 49 of file tango-gl/include/tango-gl/util.h.

#define RADIAN_2_DEGREE   57.2957795f

Definition at line 52 of file tango-gl/include/tango-gl/util.h.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:07