OTB  7.2.0
Orfeo Toolbox
Classes | Typedefs | Enumerations | Functions
otb::gl Namespace Reference

Classes

struct  BufferObject
 
struct  BufferObjectPolicy
 
struct  Error
 
class  Handle
 
struct  Mesh
 
struct  TypeTraits
 
struct  TypeTraits< type >
 
struct  VertexArrayObjectPolicy
 

Typedefs

using Id_t = GLuint
 
using IndexBufferObject = BufferObject< element::index >
 
using VertexArrayObject = Handle< VertexArrayObjectPolicy >
 
using VertexBufferObject = BufferObject< element::vertex >
 

Enumerations

enum  element : GLenum {
  element::vertex = GL_ARRAY_BUFFER,
  element::index = GL_ELEMENT_ARRAY_BUFFER
}
 
enum  error : int {
  error::clear = 0,
  error::trace,
  error::assertion,
  error::exception
}
 

Functions

template<error E = error::exception>
GLenum CheckError ()
 
Mesh MakeInterleavedTexturedQuad (Id_t xy, Id_t uv)
 
Mesh MakeQuad (Id_t xy)
 
Mesh MakeTexturedQuad (Id_t xy, Id_t uv)
 
template<>
struct otb::gl::TypeTraits< type > OTB_GL_TYPE_TRAITS (GLfloat, GL_FLOAT, "GLfloat")
 
 OTB_GL_TYPE_TRAITS (GLdouble, GL_DOUBLE, "GLdouble")
 
 OTB_GL_TYPE_TRAITS (GLint, GL_INT, "GLint")
 
 OTB_GL_TYPE_TRAITS (GLuint, GL_UNSIGNED_INT, "GLuint")
 

Typedef Documentation

◆ Id_t

typedef GLuint otb::gl::Id_t

Definition at line 40 of file otbGlHandle.h.

◆ IndexBufferObject

Definition at line 167 of file otbGlBufferObject.h.

◆ VertexArrayObject

VertexArrayObject type definition.

Definition at line 46 of file otbGlVertexArrayObject.h.

◆ VertexBufferObject

Definition at line 166 of file otbGlBufferObject.h.

Enumeration Type Documentation

◆ element

enum otb::gl::element : GLenum
strong

OpenGL element-type of buffer-object.

Enumerator
vertex 
index 

Definition at line 36 of file otbGlBufferObject.h.

◆ error

enum otb::gl::error : int
strong
Enumerator
clear 
trace 
assertion 
exception 

Definition at line 69 of file otbGlError.h.

Function Documentation

◆ CheckError()

template<error E = error::exception>
GLenum otb::gl::CheckError ( )

◆ MakeInterleavedTexturedQuad()

Mesh otb::gl::MakeInterleavedTexturedQuad ( Id_t  xy,
Id_t  uv 
)

◆ MakeQuad()

Mesh otb::gl::MakeQuad ( Id_t  xy)

◆ MakeTexturedQuad()

Mesh otb::gl::MakeTexturedQuad ( Id_t  xy,
Id_t  uv 
)

◆ OTB_GL_TYPE_TRAITS() [1/4]

otb::gl::OTB_GL_TYPE_TRAITS ( GLdouble  ,
GL_DOUBLE  ,
"GLdouble"   
)

◆ OTB_GL_TYPE_TRAITS() [2/4]

otb::gl::OTB_GL_TYPE_TRAITS ( GLint  ,
GL_INT  ,
"GLint"   
)

◆ OTB_GL_TYPE_TRAITS() [3/4]

otb::gl::OTB_GL_TYPE_TRAITS ( GLuint  ,
GL_UNSIGNED_INT  ,
"GLuint"   
)

◆ OTB_GL_TYPE_TRAITS() [4/4]

template<>
struct otb::gl::TypeTraits< type > otb::gl::OTB_GL_TYPE_TRAITS ( GLfloat  ,
GL_FLOAT  ,
"GLfloat"   
)