VoxelBlur
Depth-of-field volume rendering
 All Classes Files Functions Variables Enumerations Enumerator
Macros | Variables
volumerenderer_init.cpp File Reference

This file contains all initialization-related stuff of the VolumeRenderer for more clean looks. More...

#include "stdafx.h"
#include "volumerenderer_private.h"
Include dependency graph for volumerenderer_init.cpp:

Macros

#define FRAGDATA_LOCATION   "fragColor"
 
#define CHECK_EXT(ctx, str)
 
#define VAO_CREATE(vao)
 
#define BUFFER_CREATE(buf)
 

Variables

PFNGLBINDIMAGETEXTUREPROC __glBindImageTexture
 
PFNGLDISPATCHCOMPUTEPROC __glDispatchCompute
 

Detailed Description

This file contains all initialization-related stuff of the VolumeRenderer for more clean looks.

The main implementation file is volumerenderer.cpp.

See Also
volumerenderer_private.h

Macro Definition Documentation

#define BUFFER_CREATE (   buf)
Value:
if(!buf->create()){\
m_errString = tr("Could not create buffer object.");\
delete buf; \
return false;}
#define CHECK_EXT (   ctx,
  str 
)
Value:
if(d.glExtensions.contains(str)) \
{ qDebug()<<str<<"... ok"; } \
else { qCritical()<<str<<"... MISSING!"; m_errString=tr("Required OpenGL extension %1 not available, sorry :/").arg(str); return false;}
#define VAO_CREATE (   vao)
Value:
if(!vao->create()){\
m_errString = tr("Could not create vertex array object.");\
delete vao; \
return false;}