Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Defines

D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/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.

Defines

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

Define Documentation

#define GET_OR_CREATE (   RS )
#define GET_OR_CREATE_IDX (   RS,
  index 
)
Value:
RS* rs = dynamic_cast<RS*>( gocRenderStateSet()->renderState( (ERenderState)(RS_##RS##0 + index) ) ); \
  if ( rs == NULL ) \
  { \
    rs = new RS(index); \
    gocRenderStateSet()->setRenderState( rs ); \
  } \
  return rs;

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(), and vl::Shader::gocTextureUnit().


Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:28.
Permission is granted to use this page to write and publish articles regarding Visualization Library.