NGL  6.5
The NCCA Graphics Library
Types.h File Reference

main definition of types and namespace More...

#include "glew.h"
#include <GL/gl.h>
#include <QtOpenGL/QGLContext>
#include <QGLContext>
+ Include dependency graph for Types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CreateCoreGLContext
 

Namespaces

 ngl
 implementation files for RibExport class
 

Macros

#define NGL_DLLEXPORT
 
#define FCompare(a, b)   ( ((a)-ngl::EPSILON)<(b) && ((a)+ngl::EPSILON)>(b) )
 FCompare macro used for floating point comparision functions. More...
 
#define NGL_UNUSED(arg)   (void)arg;
 define unused to quiet Warnings More...
 

Typedefs

using ngl::PRECISION = GLfloat
 Set the PRECISION of all data types Set PRECISION to be a GLfloat so we only have to change one value to set the data type. More...
 
using ngl::Real = PRECISION
 create a variable called Real which is the main data type we use (GLfloat for most cases) More...
 

Functions

voidsetGL32VisualMac (bool _multisample=true)
 

Variables

constexpr float ngl::EPSILON = 0.001f
 define EPSILON for floating point comparison More...
 

Detailed Description

main definition of types and namespace

declare a variable called Real which sets the Global Precision for the other classes (GLfloat)

Author
Jonathan Macey
Version
2.0
Date
29/10/09 Updated to meet NCCA coding standard

Definition in file Types.h.

Macro Definition Documentation

#define FCompare (   a,
  b 
)    ( ((a)-ngl::EPSILON)<(b) && ((a)+ngl::EPSILON)>(b) )

FCompare macro used for floating point comparision functions.

Definition at line 136 of file Types.h.

#define NGL_DLLEXPORT

Definition at line 65 of file Types.h.

#define NGL_UNUSED (   arg)    (void)arg;

define unused to quiet Warnings

Definition at line 143 of file Types.h.

Function Documentation

void* setGL32VisualMac ( bool  _multisample = true)

Definition at line 4 of file setGL32VisualMac.mm.

+ Here is the caller graph for this function: