diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-16 14:38:06 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-16 14:38:06 +0000 |
commit | 0beaba5b34888001c3811c26be6954696a2cdbdf (patch) | |
tree | 91556c141c19d51209404c4a199c7e1eca5d53bf /include | |
parent | f4a9c82918767865ebb265f82b0201ecc2b1511b (diff) |
decal mode babystep
git-svn-id: http://skia.googlecode.com/svn/trunk@3413 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkShader.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h index 7c5be065e8..331799a187 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -49,9 +49,23 @@ public: void resetLocalMatrix(); enum TileMode { - kClamp_TileMode, //!< replicate the edge color if the shader draws outside of its original bounds - kRepeat_TileMode, //!< repeat the shader's image horizontally and vertically - kMirror_TileMode, //!< repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam + /** replicate the edge color if the shader draws outside of its + * original bounds + */ + kClamp_TileMode, + + /** repeat the shader's image horizontally and vertically */ + kRepeat_TileMode, + + /** repeat the shader's image horizontally and vertically, alternating + * mirror images so that adjacent images always seam + */ + kMirror_TileMode, + +#if 0 + /** only draw within the original domain, return 0 everywhere else */ + kDecal_TileMode, +#endif kTileModeCount }; |