diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2009-10-18 21:06:29 +0400 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2009-10-18 21:06:29 +0400 |
commit | becfa7ec89dcf1180d55556b3a7baf274f3e67c6 (patch) | |
tree | b4c99d6706fb0ecbfc2f83212996880caee717e5 /source/blender/freestyle/intern/blender_interface/BlenderTextureManager.cpp | |
parent | 3fa9da938f0d378c36343aabfa135b35d81ee093 (diff) |
forgotten files of last commit
Diffstat (limited to 'source/blender/freestyle/intern/blender_interface/BlenderTextureManager.cpp')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/BlenderTextureManager.cpp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderTextureManager.cpp b/source/blender/freestyle/intern/blender_interface/BlenderTextureManager.cpp new file mode 100644 index 00000000000..d731af42d0e --- /dev/null +++ b/source/blender/freestyle/intern/blender_interface/BlenderTextureManager.cpp @@ -0,0 +1,71 @@ +#include "BlenderTextureManager.h" + + +BlenderTextureManager::BlenderTextureManager () +: TextureManager() +{ + //_brushes_path = Config::getInstance()... +} + +BlenderTextureManager::~BlenderTextureManager () +{ +} + +void BlenderTextureManager::loadStandardBrushes() +{ + // getBrushTextureIndex(TEXTURES_DIR "/brushes/charcoalAlpha.bmp", Stroke::HUMID_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/washbrushAlpha.bmp", Stroke::HUMID_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/oil.bmp", Stroke::HUMID_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/oilnoblend.bmp", Stroke::HUMID_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/charcoalAlpha.bmp", Stroke::DRY_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/washbrushAlpha.bmp", Stroke::DRY_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/opaqueDryBrushAlpha.bmp", Stroke::OPAQUE_MEDIUM); + // getBrushTextureIndex(TEXTURES_DIR "/brushes/opaqueBrushAlpha.bmp", Stroke::OPAQUE_MEDIUM); + //_defaultTextureId = getBrushTextureIndex("smoothAlpha.bmp", Stroke::OPAQUE_MEDIUM); +} + + +unsigned +BlenderTextureManager::loadBrush(string sname, Stroke::MediumType mediumType) +{ +// GLuint texId; +// glGenTextures(1, &texId); +// bool found = false; +// vector<string> pathnames; +// string path; //soc +// StringUtils::getPathName(TextureManager::Options::getBrushesPath(), +// sname, +// pathnames); +// for (vector<string>::const_iterator j = pathnames.begin(); j != pathnames.end(); j++) { +// path = j->c_str(); +// //soc if(QFile::exists(path)){ +// if( BLI_exists( const_cast<char *>(path.c_str()) ) ) { +// found = true; +// break; +// } +// } +// if(!found) +// return 0; +// // Brush texture +// cout << "Loading brush texture..." << endl; +// switch(mediumType){ +// case Stroke::DRY_MEDIUM: +// //soc prepareTextureLuminance((const char*)path.toAscii(), texId); +// prepareTextureLuminance(StringUtils::toAscii(path), texId); +// break; +// case Stroke::HUMID_MEDIUM: +// case Stroke::OPAQUE_MEDIUM: +// default: +// //soc prepareTextureAlpha((const char*)path.toAscii(), texId); +// prepareTextureAlpha(StringUtils::toAscii(path), texId); +// break; +// } +// cout << "Done." << endl << endl; +// +// return texId; +// + return 0; +} + + + |