Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Enumerations | Variables
SkTileMode.h File Reference
#include "include/core/SkTypes.h"

Go to the source code of this file.

Enumerations

enum class  SkTileMode {
  kClamp , kRepeat , kMirror , kDecal ,
  kLastTileMode = kDecal
}
 

Variables

static constexpr int kSkTileModeCount = static_cast<int>(SkTileMode::kLastTileMode) + 1
 

Enumeration Type Documentation

◆ SkTileMode

enum class SkTileMode
strong
Enumerator
kClamp 

Replicate the edge color if the shader draws outside of its original bounds.

kRepeat 

Repeat the shader's image horizontally and vertically.

kMirror 

Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.

kDecal 

Only draw within the original domain, return transparent-black everywhere else.

kLastTileMode 

Definition at line 13 of file SkTileMode.h.

13 {
14 /**
15 * Replicate the edge color if the shader draws outside of its
16 * original bounds.
17 */
18 kClamp,
19
20 /**
21 * Repeat the shader's image horizontally and vertically.
22 */
23 kRepeat,
24
25 /**
26 * Repeat the shader's image horizontally and vertically, alternating
27 * mirror images so that adjacent images always seam.
28 */
29 kMirror,
30
31 /**
32 * Only draw within the original domain, return transparent-black everywhere else.
33 */
34 kDecal,
35
37};

Variable Documentation

◆ kSkTileModeCount

constexpr int kSkTileModeCount = static_cast<int>(SkTileMode::kLastTileMode) + 1
staticconstexpr

Definition at line 39 of file SkTileMode.h.