Textogl  1.1.2
OpenGL Text renderer
Classes | Typedefs | Enumerations
textogl Namespace Reference

OpenGL Font rendering types. More...

Classes

class  Font_sys
 Container for font and text rendering. More...
 
class  Static_text
 Object for text which does not change often. More...
 

Typedefs

template<typename T = float>
using Vec2 = typename detail::Vec2_t< T >::type
 2D Vector More...
 
template<typename T = float>
using Vec4 = typename detail::Vec4_t< T >::type
 4D Vector More...
 
template<typename T = float>
using Mat4 = typename detail::Mat4_t< T >::type
 4D Matrix More...
 
using Color = Vec4< float >
 Color vector More...
 

Enumerations

enum  Text_origin : int {
  ORIGIN_HORIZ_BASELINE = 0x00 , ORIGIN_HORIZ_LEFT = 0x01 , ORIGIN_HORIZ_RIGHT = 0x02 , ORIGIN_HORIZ_CENTER = 0x03 ,
  ORIGIN_VERT_BASELINE = 0x00 , ORIGIN_VERT_TOP = 0x04 , ORIGIN_VERT_BOTTOM = 0x08 , ORIGIN_VERT_CENTER = 0x0C
}
 Text origin specification. More...
 

Detailed Description

OpenGL Font rendering types.

Typedef Documentation

◆ Color

using textogl::Color = typedef Vec4<float>

Color vector

Note
If GLM is available, this is an alias for glm::vec4

◆ Mat4

template<typename T = float>
using textogl::Mat4 = typedef typename detail::Mat4_t<T>::type

4D Matrix

Note
If GLM is available, this is an alias for glm::mat4 / dmat4

◆ Vec2

template<typename T = float>
using textogl::Vec2 = typedef typename detail::Vec2_t<T>::type

2D Vector

Note
If GLM is available, this is an alias for glm::vec2 / dvec2 / ...

◆ Vec4

template<typename T = float>
using textogl::Vec4 = typedef typename detail::Vec4_t<T>::type

4D Vector

Note
If GLM is available, this is an alias for glm::vec4 / dvec4 / ...

Enumeration Type Documentation

◆ Text_origin

Text origin specification.

Enumerator
ORIGIN_HORIZ_BASELINE 

Horizontal text origin at baseline.

ORIGIN_HORIZ_LEFT 

Horizontal text origin at left edge.

ORIGIN_HORIZ_RIGHT 

Horizontal text origin at right edge.

ORIGIN_HORIZ_CENTER 

Horizontal text origin at center.

ORIGIN_VERT_BASELINE 

Vertical text origin at baseline.

ORIGIN_VERT_TOP 

Vertical text origin at left edge.

ORIGIN_VERT_BOTTOM 

Vertical text origin at right edge.

ORIGIN_VERT_CENTER 

Vertical text origin at center.