 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
6 #define FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
12 #include "flutter/fml/macros.h"
20 #if IMPELLER_ENABLE_3D
22 #endif // IMPELLER_ENABLE_3D
42 std::function<std::shared_ptr<ColorSourceContents>(
const Paint& paint)>;
54 Entity::TileMode tile_mode,
63 Entity::TileMode tile_mode,
70 Entity::TileMode tile_mode,
78 Entity::TileMode tile_mode,
82 Entity::TileMode x_tile_mode,
83 Entity::TileMode y_tile_mode,
89 std::shared_ptr<
std::vector<uint8_t>> uniform_data,
92 #if IMPELLER_ENABLE_3D
93 static ColorSource MakeScene(std::shared_ptr<scene::Node> scene_node,
95 #endif // IMPELLER_ENABLE_3D
108 #endif // FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
std::shared_ptr< ColorSourceContents > GetContents(const Paint &paint) const
static ColorSource MakeLinearGradient(Point start_point, Point end_point, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform)
static ColorSource MakeSweepGradient(Point center, Degrees start_angle, Degrees end_angle, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform)
static ColorSource MakeColor()
static ColorSource MakeImage(std::shared_ptr< Texture > texture, Entity::TileMode x_tile_mode, Entity::TileMode y_tile_mode, SamplerDescriptor sampler_descriptor, Matrix effect_transform)
std::function< std::shared_ptr< ColorSourceContents >(const Paint &paint)> ColorSourceProc
static ColorSource MakeConicalGradient(Point center, Scalar radius, std::vector< Color > colors, std::vector< Scalar > stops, Point focus_center, Scalar focus_radius, Entity::TileMode tile_mode, Matrix effect_transform)
static ColorSource MakeRadialGradient(Point center, Scalar radius, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform)
static ColorSource MakeRuntimeEffect(std::shared_ptr< RuntimeStage > runtime_stage, std::shared_ptr< std::vector< uint8_t >> uniform_data, std::vector< RuntimeEffectContents::TextureInput > texture_inputs)
A 4x4 matrix using column-major storage.