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-05-07 18:14:36 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-07 18:16:23 +0400
commitfe0236be78bf1ab79037fb238db353d2c6820e98 (patch)
tree566367a110845925434bddf68130d1f760850cdc /source/blender/freestyle/intern/stroke/StrokeRep.h
parentdfe800b4a80a39e95013b3695db87b5abe587d5f (diff)
Freestyle: time/space optimization in stroke rendering without textures.
When strokes do not have textures assigned, UV coordinates are not computed now. This will save a bit of time and space in stroke rendering.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/StrokeRep.h')
-rw-r--r--source/blender/freestyle/intern/stroke/StrokeRep.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.h b/source/blender/freestyle/intern/stroke/StrokeRep.h
index 8bbbd9240cb..61a456cdf42 100644
--- a/source/blender/freestyle/intern/stroke/StrokeRep.h
+++ b/source/blender/freestyle/intern/stroke/StrokeRep.h
@@ -148,7 +148,7 @@ protected:
float _averageThickness;
public:
- Strip(const std::vector<StrokeVertex*>& iStrokeVertices, bool hasTips = false,
+ Strip(const std::vector<StrokeVertex*>& iStrokeVertices, bool hasTex = false,
bool tipBegin = false, bool tipEnd = false, float texStep = 1.0);
Strip(const Strip& iBrother);
virtual ~Strip();
@@ -156,6 +156,7 @@ public:
protected:
void createStrip(const std::vector<StrokeVertex*>& iStrokeVertices);
void cleanUpSingularities(const std::vector<StrokeVertex*>& iStrokeVertices);
+ void setVertexColor (const std::vector<StrokeVertex*>& iStrokeVertices);
void computeTexCoord (const std::vector<StrokeVertex*>& iStrokeVertices, float texStep);
void computeTexCoordWithTips (const std::vector<StrokeVertex*>& iStrokeVertices, bool tipBegin, bool tipEnd, float texStep);