Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros
Shader.cpp File Reference
#include <vlGraphics/Shader.hpp>
#include <vlGraphics/GLSL.hpp>
#include <vlGraphics/Light.hpp>
#include <vlGraphics/ClipPlane.hpp>
#include <vlGraphics/OpenGLContext.hpp>
#include <vlCore/Log.hpp>
#include <vlCore/Say.hpp>

Go to the source code of this file.

Macros

#define GET_OR_CREATE(RS)
 
#define GET_OR_CREATE_IDX(RS, index)
 

Macro Definition Documentation

◆ GET_OR_CREATE

#define GET_OR_CREATE (   RS)

◆ GET_OR_CREATE_IDX

#define GET_OR_CREATE_IDX (   RS,
  index 
)
Value:
RS* rs = static_cast<RS*>( gocRenderStateSet()->renderState( RS_##RS, index ) ); \
if ( rs == NULL ) \
{ \
rs = new RS; \
gocRenderStateSet()->setRenderState( rs, index ); \
} \
return rs;
#define NULL
Definition: OpenGLDefs.hpp:81

Definition at line 80 of file Shader.cpp.

Referenced by vl::Shader::gocClipPlane(), vl::Shader::gocLight(), vl::Shader::gocTexEnv(), vl::Shader::gocTexGen(), vl::Shader::gocTextureMatrix(), vl::Shader::gocTextureSampler(), and vl::Shader::gocVertexAttrib().