|
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The SoShaderProgramCache class is used to cache shader programs. More...
#include <caches/SoShaderProgramCache.h>
Public Member Functions | |
| SoShaderProgramCache (SoState *state) | |
| virtual | ~SoShaderProgramCache () |
| void | set (const SbString &program) |
| const SbString & | get (void) const |
Public Member Functions inherited from SoCache | |
| SoCache (SoState *const state) | |
| void | ref (void) |
| void | unref (SoState *state=NULL) |
| void | addElement (const SoElement *const elem) |
| virtual void | addCacheDependency (const SoState *state, SoCache *cache) |
| virtual SbBool | isValid (const SoState *state) const |
| const SoElement * | getInvalidElement (const SoState *const state) const |
| void | invalidate (void) |
Additional Inherited Members | |
Protected Member Functions inherited from SoCache | |
| virtual void | destroy (SoState *state) |
| virtual | ~SoCache () |
The SoShaderProgramCache class is used to cache shader programs.
| SoShaderProgramCache::SoShaderProgramCache | ( | SoState * | state | ) |
Constructor with state being the current state.
|
virtual |
Destructor.
| void SoShaderProgramCache::set | ( | const SbString & | program | ) |
Sets the shader program for this cache.
| const SbString & SoShaderProgramCache::get | ( | void | ) | const |
Returns the shader program for this cache.