Cinder  0.9.1
Classes | Namespaces | Macros
GlslProg.h File Reference
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <map>
#include <set>
#include "cinder/gl/wrapper.h"
#include "cinder/Vector.h"
#include "cinder/Matrix.h"
#include "cinder/DataSource.h"
#include "cinder/GeomIo.h"
#include "cinder/Exception.h"

Classes

class  cinder::gl::GlslProg
 
struct  cinder::gl::GlslProg::Attribute
 
struct  cinder::gl::GlslProg::Uniform
 
struct  cinder::gl::GlslProg::Format
 
class  cinder::gl::GlslProgExc
 
class  cinder::gl::GlslProgCompileExc
 
class  cinder::gl::GlslProgLinkExc
 
class  cinder::gl::GlslNullProgramExc
 

Namespaces

 cinder
 
 cinder::gl
 

Macros

#define CI_GLSL(VERSION, CODE)   "#version " #VERSION "\n" #CODE
 

Macro Definition Documentation

#define CI_GLSL (   VERSION,
  CODE 
)    "#version " #VERSION "\n" #CODE

Convenience macro that allows one to embed raw glsl code in-line. The VERSION parameter will be used for the glsl's '#version' define.

Note
Some strings will confuse different compilers, most commonly being preprocessor derictives (hence the need for VERSION to be a pamaeter). If available on all target platforms, users should use C+11 raw string literals, which do not suffer from the same limitations.