|
Blender V4.3
|
#include <StrokeRenderer.h>
Classes | |
| struct | cmpBrushTexture |
| struct | Options |
Public Member Functions | |
| TextureManager () | |
| virtual | ~TextureManager () |
| void | load () |
| uint | getBrushTextureIndex (string name, Stroke::MediumType iType=Stroke::OPAQUE_MEDIUM) |
| bool | hasLoaded () const |
| uint | getDefaultTextureId () const |
Static Public Member Functions | |
| static TextureManager * | getInstance () |
Protected Types | |
| typedef std::pair< string, Stroke::MediumType > | BrushTexture |
| typedef std::map< BrushTexture, uint, cmpBrushTexture > | brushesMap |
Protected Member Functions | |
| virtual void | loadStandardBrushes ()=0 |
| virtual uint | loadBrush (string fileName, Stroke::MediumType=Stroke::OPAQUE_MEDIUM)=0 |
Protected Attributes | |
| bool | _hasLoadedTextures |
| brushesMap | _brushesMap |
| uint | _defaultTextureId |
Static Protected Attributes | |
| static TextureManager * | _pInstance = nullptr |
| static string | _patterns_path |
| static string | _brushes_path |
Class to load textures
Definition at line 38 of file StrokeRenderer.h.
|
protected |
Definition at line 86 of file StrokeRenderer.h.
|
protected |
Definition at line 73 of file StrokeRenderer.h.
| Freestyle::TextureManager::TextureManager | ( | ) |
Definition at line 52 of file StrokeRenderer.cpp.
References _defaultTextureId, _hasLoadedTextures, and _pInstance.
|
virtual |
Definition at line 59 of file StrokeRenderer.cpp.
References _brushesMap, and _pInstance.
| uint Freestyle::TextureManager::getBrushTextureIndex | ( | string | name, |
| Stroke::MediumType | iType = Stroke::OPAQUE_MEDIUM ) |
Definition at line 76 of file StrokeRenderer.cpp.
References _brushesMap, b, and loadBrush().
|
inline |
Definition at line 56 of file StrokeRenderer.h.
References _defaultTextureId.
Referenced by Freestyle::StrokeRep::StrokeRep(), and Freestyle::StrokeRep::StrokeRep().
|
inlinestatic |
Definition at line 43 of file StrokeRenderer.h.
References _pInstance.
Referenced by Freestyle::StrokeRep::StrokeRep(), and Freestyle::StrokeRep::StrokeRep().
|
inline |
Definition at line 51 of file StrokeRenderer.h.
References _hasLoadedTextures.
| void Freestyle::TextureManager::load | ( | ) |
Definition at line 67 of file StrokeRenderer.cpp.
References _hasLoadedTextures, and loadStandardBrushes().
Referenced by Freestyle::StrokeRenderer::loadTextures().
|
protectedpure virtual |
Referenced by getBrushTextureIndex().
|
protectedpure virtual |
Referenced by load().
|
staticprotected |
Definition at line 92 of file StrokeRenderer.h.
Referenced by Freestyle::TextureManager::Options::getBrushesPath(), and Freestyle::TextureManager::Options::setBrushesPath().
|
protected |
Definition at line 90 of file StrokeRenderer.h.
Referenced by getBrushTextureIndex(), and ~TextureManager().
|
protected |
Definition at line 93 of file StrokeRenderer.h.
Referenced by getDefaultTextureId(), and TextureManager().
|
protected |
Definition at line 89 of file StrokeRenderer.h.
Referenced by hasLoaded(), load(), and TextureManager().
|
staticprotected |
Definition at line 91 of file StrokeRenderer.h.
Referenced by Freestyle::TextureManager::Options::getPatternsPath(), and Freestyle::TextureManager::Options::setPatternsPath().
|
staticprotected |
Definition at line 88 of file StrokeRenderer.h.
Referenced by getInstance(), TextureManager(), and ~TextureManager().