Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/stroke/StrokeRenderer.cpp
| Show All 35 Lines | |||||
| /* */ | /* */ | ||||
| /* TextureManager */ | /* TextureManager */ | ||||
| /* */ | /* */ | ||||
| /* */ | /* */ | ||||
| /**********************************/ | /**********************************/ | ||||
| TextureManager *TextureManager::_pInstance = nullptr; | TextureManager *TextureManager::_pInstance = nullptr; | ||||
| string TextureManager::_patterns_path; | |||||
| string TextureManager::_brushes_path; | |||||
| TextureManager::TextureManager() | TextureManager::TextureManager() | ||||
| { | { | ||||
| _hasLoadedTextures = false; | _hasLoadedTextures = false; | ||||
| _pInstance = this; | _pInstance = this; | ||||
| _defaultTextureId = 0; | _defaultTextureId = 0; | ||||
| } | } | ||||
| TextureManager::~TextureManager() | TextureManager::~TextureManager() | ||||
| Show All 24 Lines | if (b == _brushesMap.end()) { | ||||
| // XXX! | // XXX! | ||||
| cerr << "brush file " << name << " not found" << endl; | cerr << "brush file " << name << " not found" << endl; | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| return _brushesMap[bt]; | return _brushesMap[bt]; | ||||
| } | } | ||||
| void TextureManager::Options::setPatternsPath(const string &path) | |||||
| { | |||||
| _patterns_path = path; | |||||
| } | |||||
| string TextureManager::Options::getPatternsPath() | |||||
| { | |||||
| return _patterns_path; | |||||
| } | |||||
| void TextureManager::Options::setBrushesPath(const string &path) | |||||
| { | |||||
| _brushes_path = path; | |||||
| } | |||||
| string TextureManager::Options::getBrushesPath() | |||||
| { | |||||
| return _brushes_path; | |||||
| } | |||||
| } /* namespace Freestyle */ | } /* namespace Freestyle */ | ||||