Blender
V3.3
|
#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 36 of file StrokeRenderer.h.
|
protected |
Definition at line 84 of file StrokeRenderer.h.
|
protected |
Definition at line 71 of file StrokeRenderer.h.
Freestyle::TextureManager::TextureManager | ( | ) |
Definition at line 48 of file StrokeRenderer.cpp.
|
virtual |
Definition at line 55 of file StrokeRenderer.cpp.
unsigned Freestyle::TextureManager::getBrushTextureIndex | ( | string | name, |
Stroke::MediumType | iType = Stroke::OPAQUE_MEDIUM |
||
) |
Definition at line 72 of file StrokeRenderer.cpp.
References usdtokens::b().
|
inline |
Definition at line 54 of file StrokeRenderer.h.
References _defaultTextureId.
Referenced by Freestyle::StrokeRep::StrokeRep().
|
inlinestatic |
Definition at line 41 of file StrokeRenderer.h.
References _pInstance.
|
inline |
Definition at line 49 of file StrokeRenderer.h.
References _hasLoadedTextures.
void Freestyle::TextureManager::load | ( | ) |
Definition at line 63 of file StrokeRenderer.cpp.
|
protectedpure virtual |
|
protectedpure virtual |
|
staticprotected |
Definition at line 90 of file StrokeRenderer.h.
|
protected |
Definition at line 88 of file StrokeRenderer.h.
|
protected |
Definition at line 91 of file StrokeRenderer.h.
Referenced by getDefaultTextureId().
|
protected |
Definition at line 87 of file StrokeRenderer.h.
Referenced by hasLoaded().
|
staticprotected |
Definition at line 89 of file StrokeRenderer.h.
|
staticprotected |
Definition at line 86 of file StrokeRenderer.h.
Referenced by getInstance().