Variables
text_drawable.cpp File Reference
#include <tango-gl/util.h>
#include <vector>
#include <rtabmap/core/Transform.h>
#include "util.h"
#include "text_drawable.h"
#include "text_atlas_png.h"
#include <rtabmap/utilite/UConversion.h>
Include dependency graph for text_drawable.cpp:

Go to the source code of this file.

Variables

const std::string kTextFragmentShader
 
const std::string kTextVertexShader
 
const float RI_TEXT_HEIGHT_BASE = 32.0f
 
const char RI_TEXT_START = ' '
 
const char RI_TEXT_STOP = '~'+1
 
const int RI_TEXT_TEXTURE_SIZE = 512
 

Variable Documentation

◆ kTextFragmentShader

const std::string kTextFragmentShader
Initial value:
=
"precision mediump float;"
"uniform vec3 uColor;"
"varying vec2 v_texCoord;"
"uniform sampler2D s_texture;"
"void main() {"
" gl_FragColor = texture2D( s_texture, v_texCoord );"
" gl_FragColor.rgb = uColor;"
"}"

Definition at line 49 of file text_drawable.cpp.

◆ kTextVertexShader

const std::string kTextVertexShader
Initial value:
=
"uniform mat4 uMVPMatrix;"
"attribute vec4 vPosition;"
"attribute vec2 a_texCoord;"
"varying vec2 v_texCoord;"
"void main() {"
" gl_Position = uMVPMatrix * vPosition;"
" v_texCoord = a_texCoord;"
"}"

Definition at line 40 of file text_drawable.cpp.

◆ RI_TEXT_HEIGHT_BASE

const float RI_TEXT_HEIGHT_BASE = 32.0f

Definition at line 60 of file text_drawable.cpp.

◆ RI_TEXT_START

const char RI_TEXT_START = ' '

Definition at line 61 of file text_drawable.cpp.

◆ RI_TEXT_STOP

const char RI_TEXT_STOP = '~'+1

Definition at line 62 of file text_drawable.cpp.

◆ RI_TEXT_TEXTURE_SIZE

const int RI_TEXT_TEXTURE_SIZE = 512

Definition at line 59 of file text_drawable.cpp.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Apr 28 2025 02:46:08