diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-07-19 10:38:56 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-08-12 05:10:35 +0400 |
commit | c38e80d6322b942fd2a893f4f294a919ed6e6b99 (patch) | |
tree | 67470e7670d5975085a5a211a3c5aab9cef4aa51 /source/blender/freestyle/intern/stroke/Stroke.h | |
parent | a2a2d4679ae28dbc9f6bed1c8663cea9ccb71176 (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/stroke/Stroke.h')
-rw-r--r-- | source/blender/freestyle/intern/stroke/Stroke.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.h b/source/blender/freestyle/intern/stroke/Stroke.h index d68a5938e98..391fbc47e34 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.h +++ b/source/blender/freestyle/intern/stroke/Stroke.h @@ -545,8 +545,8 @@ private: MTex *_mtex[MAX_MTEX]; bool _tips; Vec2r _extremityOrientations[2]; // the orientations of the first and last extermity - StrokeRep *_rep; FreestyleLineStyle *_lineStyle; + bool _useShadingNodes; public: /*! default constructor */ @@ -651,6 +651,12 @@ public: return _lineStyle; } + /*! Return true if the new shading nodes are used. */ + inline bool useShadingNodes() + { + return _useShadingNodes; + } + /*! Returns the id of the texture used to simulate th marks system for this Stroke */ inline unsigned int getTextureId() {return _textureId;} @@ -663,10 +669,7 @@ public: } /*! Returns true if this Stroke has textures assigned, false otherwise. */ - inline bool hasTex() const - { - return _mtex[0] != NULL; - } + bool hasTex() const; /*! Returns true if this Stroke uses a texture with tips, false otherwise. */ inline bool hasTips() const @@ -747,9 +750,10 @@ public: void setLength(float iLength); /*! sets the line style of the Stroke. */ - void setLineStyle(struct FreestyleLineStyle *iLineStyle) + void setLineStyle(struct FreestyleLineStyle *iLineStyle, bool iUseShadingNodes) { _lineStyle = iLineStyle; + _useShadingNodes = iUseShadingNodes; } /*! sets the medium type that must be used for this Stroke. */ |