Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-07-19 10:38:56 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-08-12 05:10:35 +0400
commitc38e80d6322b942fd2a893f4f294a919ed6e6b99 (patch)
tree67470e7670d5975085a5a211a3c5aab9cef4aa51 /source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h
parenta2a2d4679ae28dbc9f6bed1c8663cea9ccb71176 (diff)
WIP commit just for a record of a working snapshot of code revisions for node-based textured strokes.
Diffstat (limited to 'source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h')
-rw-r--r--source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h b/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h
index ad656fdc3f7..cc92d2274d8 100644
--- a/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h
+++ b/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h
@@ -29,12 +29,11 @@
#include "../system/PythonInterpreter.h"
extern "C" {
-#include "BKE_global.h"
-#include "BKE_library.h"
-#include "BKE_text.h"
-#include "BLI_utildefines.h"
+#include "BLI_utildefines.h" // BLI_assert()
struct FreestyleLineStyle;
+struct Scene;
+struct Text;
}
namespace Freestyle {
@@ -42,11 +41,13 @@ namespace Freestyle {
class BlenderStyleModule : public StyleModule
{
public:
- BlenderStyleModule(struct Text *text, struct FreestyleLineStyle *linestyle, const string &name,
- Interpreter *inter) : StyleModule(name, inter)
+ BlenderStyleModule(const string &name, Interpreter *inter, struct Text *text,
+ struct FreestyleLineStyle *lineStyle, bool useShadingNodes)
+ : StyleModule(name, inter)
{
_text = text;
- _linestyle = linestyle;
+ _lineStyle = lineStyle;
+ _useShadingNodes = useShadingNodes;
}
virtual ~BlenderStyleModule()
@@ -55,9 +56,8 @@ public:
virtual StrokeLayer *execute()
{
-
StrokeLayer *sl = StyleModule::execute();
- sl->setLineStyle(_linestyle);
+ sl->setLineStyle(_lineStyle, _useShadingNodes);
return sl;
}
@@ -71,7 +71,8 @@ protected:
private:
struct Text *_text;
- struct FreestyleLineStyle *_linestyle;
+ struct FreestyleLineStyle *_lineStyle;
+ bool _useShadingNodes;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BlenderStyleModule")