Developer documentation
Version 3.0.3-105-gd3941f44
MR::GUI::GL Namespace Reference

Namespaces

namespace  Context
 
namespace  Shader
 

Classes

class  Area
 
class  Font
 
class  FrameBuffer
 
class  IndexBuffer
 
class  Lighting
 
class  mat4
 
class  Texture
 
class  vec4
 
class  VertexArrayObject
 
class  VertexBuffer
 

Typedefs

using Format = QGLFormat
 

Functions

void init ()
 
void set_default_context ()
 
const char * ErrorString (GLenum errorcode)
 
void check_error (const char *filename, int line)
 
void __assert_context_is_current (QWidget *glarea)
 
void assert_context_is_current (QWidget *glarea=nullptr)
 
mat4 identity ()
 
mat4 transpose (const mat4 &a)
 
mat4 inv (const mat4 &a)
 
mat4 ortho (float L, float R, float B, float T, float N, float F)
 
mat4 frustum (float L, float R, float B, float T, float N, float F)
 
mat4 translate (float x, float y, float z)
 
template<class Cont >
mat4 translate (const Cont &x)
 
mat4 scale (float x, float y, float z)
 
mat4 scale (float s)
 

Variables

Areaglwidget
 

Typedef Documentation

◆ Format

using MR::GUI::GL::Format = typedef QGLFormat

Definition at line 80 of file gl.h.

Function Documentation

◆ __assert_context_is_current()

void MR::GUI::GL::__assert_context_is_current ( QWidget *  glarea)

◆ assert_context_is_current()

void MR::GUI::GL::assert_context_is_current ( QWidget *  glarea = nullptr)
inline

Definition at line 100 of file gl.h.

◆ check_error()

void MR::GUI::GL::check_error ( const char *  filename,
int  line 
)
inline

Definition at line 88 of file gl.h.

◆ ErrorString()

const char * MR::GUI::GL::ErrorString ( GLenum  errorcode)

◆ frustum()

mat4 MR::GUI::GL::frustum ( float  L,
float  R,
float  B,
float  T,
float  N,
float  F 
)
inline

Definition at line 201 of file transformation.h.

◆ identity()

mat4 MR::GUI::GL::identity ( )
inline

Definition at line 149 of file transformation.h.

◆ init()

void MR::GUI::GL::init ( )

◆ inv()

mat4 MR::GUI::GL::inv ( const mat4 a)
inline

Definition at line 171 of file transformation.h.

◆ ortho()

mat4 MR::GUI::GL::ortho ( float  L,
float  R,
float  B,
float  T,
float  N,
float  F 
)
inline

Definition at line 183 of file transformation.h.

◆ scale() [1/2]

mat4 MR::GUI::GL::scale ( float  s)
inline

Definition at line 246 of file transformation.h.

◆ scale() [2/2]

mat4 MR::GUI::GL::scale ( float  x,
float  y,
float  z 
)
inline

Definition at line 235 of file transformation.h.

◆ set_default_context()

void MR::GUI::GL::set_default_context ( )

◆ translate() [1/2]

template<class Cont >
mat4 MR::GUI::GL::translate ( const Cont &  x)
inline

Definition at line 229 of file transformation.h.

◆ translate() [2/2]

mat4 MR::GUI::GL::translate ( float  x,
float  y,
float  z 
)
inline

Definition at line 218 of file transformation.h.

◆ transpose()

mat4 MR::GUI::GL::transpose ( const mat4 a)
inline

Definition at line 158 of file transformation.h.

Variable Documentation

◆ glwidget

Area* MR::GUI::GL::glwidget
extern