|
Blender
V2.93
|
#include <StrokeRenderer.h>
Classes | |
| struct | cmpBrushTexture |
| struct | Options |
Public Member Functions | |
| TextureManager () | |
| virtual | ~TextureManager () |
| void | load () |
| unsigned | getBrushTextureIndex (string name, Stroke::MediumType iType=Stroke::OPAQUE_MEDIUM) |
| bool | hasLoaded () const |
| unsigned int | getDefaultTextureId () const |
Static Public Member Functions | |
| static TextureManager * | getInstance () |
Protected Types | |
| typedef std::pair< string, Stroke::MediumType > | BrushTexture |
| typedef std::map< BrushTexture, unsigned, cmpBrushTexture > | brushesMap |
Protected Member Functions | |
| virtual void | loadStandardBrushes ()=0 |
| virtual unsigned | loadBrush (string fileName, Stroke::MediumType=Stroke::OPAQUE_MEDIUM)=0 |
Protected Attributes | |
| bool | _hasLoadedTextures |
| brushesMap | _brushesMap |
| unsigned int | _defaultTextureId |
Static Protected Attributes | |
| static TextureManager * | _pInstance = nullptr |
| static string | _patterns_path |
| static string | _brushes_path |
Class to load textures
Definition at line 50 of file StrokeRenderer.h.
|
protected |
Definition at line 98 of file StrokeRenderer.h.
|
protected |
Definition at line 85 of file StrokeRenderer.h.
| Freestyle::TextureManager::TextureManager | ( | ) |
Definition at line 62 of file StrokeRenderer.cpp.
|
virtual |
Definition at line 69 of file StrokeRenderer.cpp.
| unsigned Freestyle::TextureManager::getBrushTextureIndex | ( | string | name, |
| Stroke::MediumType | iType = Stroke::OPAQUE_MEDIUM |
||
| ) |
Definition at line 86 of file StrokeRenderer.cpp.
|
inline |
Definition at line 68 of file StrokeRenderer.h.
References _defaultTextureId.
Referenced by Freestyle::StrokeRep::StrokeRep().
|
inlinestatic |
Definition at line 55 of file StrokeRenderer.h.
References _pInstance.
|
inline |
Definition at line 63 of file StrokeRenderer.h.
References _hasLoadedTextures.
| void Freestyle::TextureManager::load | ( | ) |
Definition at line 77 of file StrokeRenderer.cpp.
|
protectedpure virtual |
|
protectedpure virtual |
|
staticprotected |
Definition at line 104 of file StrokeRenderer.h.
|
protected |
Definition at line 102 of file StrokeRenderer.h.
|
protected |
Definition at line 105 of file StrokeRenderer.h.
Referenced by getDefaultTextureId().
|
protected |
Definition at line 101 of file StrokeRenderer.h.
Referenced by hasLoaded().
|
staticprotected |
Definition at line 103 of file StrokeRenderer.h.
|
staticprotected |
Definition at line 100 of file StrokeRenderer.h.
Referenced by getInstance().