diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-07-26 05:23:27 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-07-26 05:23:27 +0400 |
commit | 25ce805a58fa833cf9c4e818f34d9664de1f3636 (patch) | |
tree | ddbb6464d836dd7437dd5b161cf3f8c6d8070eb9 /source/blender/freestyle/intern/application/Controller.cpp | |
parent | 2ef33845046b978b9a86c1ec90184af96d5bb943 (diff) |
* Implemented the basic stroke rendering functionality for the new
Parameter Editor mode. This is a WIP commit. Only the base line
color, base alpha transparency, and base line thickness are respected.
More additions are anticipated to account for other parameters.
* Added FRS_finish_stroke_rendering() to clean Freestyle-related
temporary resources after stroke rendering.
* Some functions in FRS_freestyle.cpp are now declared as static
functions, so as not to mess up the program-wide name space.
* Made the StyleModule class inheritable, and defined new subclass
BlenderStyleModule that takes a Text object instead of a file name.
Diffstat (limited to 'source/blender/freestyle/intern/application/Controller.cpp')
-rwxr-xr-x | source/blender/freestyle/intern/application/Controller.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index 5cf1b40a344..7835bb832b6 100755 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -58,6 +58,7 @@ #include "../blender_interface/BlenderFileLoader.h" #include "../blender_interface/BlenderStrokeRenderer.h" +#include "../blender_interface/BlenderStyleModule.h" #ifdef __cplusplus extern "C" { @@ -717,6 +718,12 @@ void Controller::InsertStyleModule(unsigned index, const char *iFileName) } +void Controller::InsertStyleModule(unsigned index, const char *iName, struct Text *iText) +{ + StyleModule* sm = new BlenderStyleModule(iText, iName, _inter); + _Canvas->InsertStyleModule(index, sm); +} + void Controller::AddStyleModule(const char *iFileName) { //_pStyleWindow->Add(iFileName); |