Go to the documentation of this file.
17 #ifndef TANGO_GL_GL_UTIL_H_
18 #define TANGO_GL_GL_UTIL_H_
19 #define GLM_FORCE_RADIANS
21 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
26 #include <android/log.h>
27 #include <GLES2/gl2.h>
28 #include <GLES2/gl2ext.h>
30 #include <OpenGLES/ES2/gl.h>
31 #include <OpenGLES/ES2/glext.h>
41 #define LOG_TAG "rtabmap"
42 #if defined(DISABLE_LOG)
48 #define LOGD(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
49 #define LOGI(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
50 #define LOGW(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
52 #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
53 #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
54 #define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__)
58 #define LOGE(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
59 #define LOGF(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
61 #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
62 #define LOGF(...) __android_log_print(ANDROID_LOG_FATAL,LOG_TAG,__VA_ARGS__)
66 #define M_PI 3.1415926f
69 #define RADIAN_2_DEGREE 57.2957795f
70 #define DEGREE_2_RADIANS 0.0174532925f
77 const char* fragment_source);
106 #endif // TANGO_GL_RENDERER_GL_UTIL
GLM_FUNC_DECL genType min(genType const &x, genType const &y)
void PrintQuaternion(const glm::quat &quat)
void PrintVector(const glm::vec3 &vector)
void DecomposeMatrix(const glm::mat4 &transform_mat, glm::vec3 &translation, glm::quat &rotation, glm::vec3 &scale)
glm::vec3 ApplyTransform(const glm::mat4 &mat, const glm::vec3 &vec)
highp_quat quat
Quaternion of default single-precision floating-point numbers.
void CheckGlError(const char *operation)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ColXpr col(Index i) const
void PrintMatrix(const glm::mat4 &matrix)
bool SegmentAABBIntersect(const glm::vec3 &aabb_min, const glm::vec3 &aabb_max, const glm::vec3 &start, const glm::vec3 &end)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics scale
GLuint CreateProgram(const char *vertex_source, const char *fragment_source)
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
GLM_FUNC_DECL detail::tquat< T, P > rotation(detail::tvec3< T, P > const &orig, detail::tvec3< T, P > const &dest)
float Clamp(float value, float min, float max)
Map< const Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(const T *data, int rows, int cols, int stride)
glm::vec3 GetTranslationFromMatrix(const glm::mat4 &mat)
glm::vec3 GetColumnFromMatrix(const glm::mat4 &mat, const int col)
float DistanceSquared(const glm::vec3 &v1, const glm::vec3 &v2)
glm::vec3 LerpVector(const glm::vec3 &x, const glm::vec3 &y, float a)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:23