Visualization Library 2.0.0-b3

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
vl::ShaderPasses Class Reference

A sequence of Shader objects each of which represent a rendering pass. More...

#include <Effect.hpp>

+ Inheritance diagram for vl::ShaderPasses:

Public Member Functions

 ShaderPasses (Shader *pass1=NULL, Shader *pass2=NULL, Shader *pass3=NULL, Shader *pass4=NULL)
 Constructor. More...
 
- Public Member Functions inherited from vl::Collection< Shader >
 Collection (const std::vector< ref< Shader > > &vector)
 
 Collection ()
 
Collectionoperator= (const std::vector< ref< Shader > > &vector)
 
 operator std::vector< ref< Shader > > () const
 
void push_back (Shader *data)
 
void push_back (const Collection< Shader > &objs)
 
void pop_back ()
 
void resize (int size)
 
int size () const
 
bool empty () const
 
void clear ()
 
const Shaderback () const
 
Shaderback ()
 
void reserve (int capacity)
 
int capacity () const
 
const ref< Shader > & operator[] (int i) const
 
ref< Shader > & operator[] (int i)
 
const Shaderat (int i) const
 
Shaderat (int i)
 
void swap (Collection &other)
 
void sort ()
 
int find (Shader *obj) const
 
void shrink ()
 
void insert (int start, const Collection< Shader > &objs)
 
void insert (int index, Shader *obj)
 
void set (const Collection< Shader > &objs)
 
void set (int index, Shader *obj)
 
void erase (int start, int count)
 
void erase (const Shader *data)
 
void eraseAt (int index)
 
const std::vector< ref< Shader > > & vector () const
 
std::vector< ref< Shader > > & vector ()
 
- Public Member Functions inherited from vl::Object
 Object ()
 Constructor. More...
 
 Object (const Object &other)
 Copy constructor: copies the name, ref count mutex and user data. More...
 
Objectoperator= (const Object &other)
 Copy operator: copies the object's name, ref count mutex and user data. More...
 
const std::string & objectName () const
 The name of the object, by default set to the object's class name. More...
 
void setObjectName (const char *name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setObjectName (const std::string &name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setRefCountMutex (IMutex *mutex)
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () const
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
int referenceCount () const
 Returns the number of references of an object. More...
 
void incReference () const
 Increments the reference count of an object. More...
 
void decReference ()
 Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More...
 
void setAutomaticDelete (bool autodel_on)
 If set to true the Object is deleted when its reference count reaches 0. More...
 
bool automaticDelete () const
 If set to true the Object is deleted when its reference count reaches 0. More...
 
template<class T >
T * as ()
 Casts an Object to the specified class. More...
 
template<class T >
const T * as () const
 Casts an Object to the specified class. More...
 

Additional Inherited Members

- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 
- Static Protected Member Functions inherited from vl::Collection< Shader >
static bool less (const ref< Shader > &a, const ref< Shader > &b)
 
- Protected Attributes inherited from vl::Collection< Shader >
std::vector< ref< Shader > > mVector
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Detailed Description

A sequence of Shader objects each of which represent a rendering pass.

Each LOD (level of detail) in an Effect corresponts a ShaderPasses.

See also
Shader, Effect, Actor

Definition at line 51 of file Effect.hpp.

Constructor & Destructor Documentation

◆ ShaderPasses()

vl::ShaderPasses::ShaderPasses ( Shader pass1 = NULL,
Shader pass2 = NULL,
Shader pass3 = NULL,
Shader pass4 = NULL 
)
inline

Constructor.

Parameters
pass1The Shader (if any) to be used for pass #1
pass2The Shader (if any) to be used for pass #2
pass3The Shader (if any) to be used for pass #3
pass4The Shader (if any) to be used for pass #4

Definition at line 62 of file Effect.hpp.

References vl::Collection< Shader >::push_back().

Referenced by vl::Effect::Effect(), and vl::Effect::setLOD().


The documentation for this class was generated from the following file: