|
Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
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 () | |
| Collection & | operator= (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 (size_t size) |
| size_t | size () const |
| bool | empty () const |
| void | clear () |
| const Shader * | back () const |
| Shader * | back () |
| void | reserve (size_t capacity) |
| size_t | capacity () const |
| const ref< Shader > & | operator[] (size_t i) const |
| ref< Shader > & | operator[] (size_t i) |
| const Shader * | at (size_t i) const |
| Shader * | at (size_t i) |
| void | swap (Collection &other) |
| void | sort () |
| size_t | find (Shader *obj) const |
| void | shrink () |
| void | insert (size_t start, const Collection< Shader > &objs) |
| void | insert (size_t index, Shader *obj) |
| void | set (const Collection< Shader > &objs) |
| void | set (size_t index, Shader *obj) |
| void | erase (size_t start, size_t count) |
| void | erase (const Shader *data) |
| void | eraseAt (size_t 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... | |
| Object & | operator= (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... | |
| IMutex * | refCountMutex () |
| The mutex used to protect the reference counting of an Object across multiple threads. More... | |
| const IMutex * | refCountMutex () 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 | |
Static Public Attributes inherited from vl::Collection< Shader > | |
| static const size_t | not_found |
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 |
| IMutex * | mRefCountMutex |
| int | mReferenceCount |
| bool | mAutomaticDelete |
A sequence of Shader objects each of which represent a rendering pass.
Each LOD (level of detail) in an Effect corresponts a ShaderPasses.
Definition at line 51 of file Effect.hpp.
|
inline |
Constructor.
| pass1 | The Shader (if any) to be used for pass #1 |
| pass2 | The Shader (if any) to be used for pass #2 |
| pass3 | The Shader (if any) to be used for pass #3 |
| pass4 | The 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().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:54.
© Copyright Michele Bosi. All rights reserved.