Developer documentation
Version 3.0.3-105-gd3941f44
gl.h File Reference
#include "mrtrix.h"
#include "debug.h"
#include <QtGlobal>
#include <QtGui>
#include <QGLWidget>
#include "gui/opengl/gl_core_3_3.h"

Go to the source code of this file.

Classes

class  MR::GUI::GL::Area
 
struct  MR::GUI::GL::Context::Grab
 
struct  MR::GUI::GL::Context::Checker
 
class  MR::GUI::GL::Texture
 
class  MR::GUI::GL::VertexBuffer
 
class  MR::GUI::GL::VertexArrayObject
 
class  MR::GUI::GL::IndexBuffer
 
class  MR::GUI::GL::FrameBuffer
 

Namespaces

namespace  MR
 
namespace  MR::GUI
 
namespace  MR::GUI::GL
 
namespace  MR::GUI::GL::Context
 

Macros

#define GL_DEBUG(msg)   (void)0
 
#define GL_CHECK_ERROR   ::MR::GUI::GL::check_error (__FILE__, __LINE__)
 
#define GLGETBOOL(x, n)   { GLboolean __v[n]; gl::GetBooleanv (x, __v); std::cerr << #x " = "; for (auto i : __v) std::cerr << int(i) << " "; std::cerr << "\n"; }
 
#define GLGETINT(x, n)   { GLint __v[n]; gl::GetIntegerv (x, __v); std::cerr << #x " = "; for (auto i : __v) std::cerr << int(i) << " "; std::cerr << "\n"; }
 

Typedefs

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

Functions

void MR::GUI::GL::init ()
 
void MR::GUI::GL::set_default_context ()
 
const char * MR::GUI::GL::ErrorString (GLenum errorcode)
 
void MR::GUI::GL::check_error (const char *filename, int line)
 
void MR::GUI::GL::__assert_context_is_current (QWidget *glarea)
 
void MR::GUI::GL::assert_context_is_current (QWidget *glarea=nullptr)
 
std::pair< int, int > MR::GUI::GL::Context::current ()
 
std::pair< int, int > MR::GUI::GL::Context::get (QWidget *)
 
std::pair< int, int > MR::GUI::GL::Context::makeCurrent (QWidget *)
 
void MR::GUI::GL::Context::restore (std::pair< int, int >)
 

Variables

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

Macro Definition Documentation

◆ GL_CHECK_ERROR

#define GL_CHECK_ERROR   ::MR::GUI::GL::check_error (__FILE__, __LINE__)

Definition at line 52 of file gl.h.

◆ GL_DEBUG

#define GL_DEBUG (   msg)    (void)0

Definition at line 46 of file gl.h.

◆ GLGETBOOL

#define GLGETBOOL (   x,
 
)    { GLboolean __v[n]; gl::GetBooleanv (x, __v); std::cerr << #x " = "; for (auto i : __v) std::cerr << int(i) << " "; std::cerr << "\n"; }

Definition at line 56 of file gl.h.

◆ GLGETINT

#define GLGETINT (   x,
 
)    { GLint __v[n]; gl::GetIntegerv (x, __v); std::cerr << #x " = "; for (auto i : __v) std::cerr << int(i) << " "; std::cerr << "\n"; }

Definition at line 57 of file gl.h.