An atlas geometry that adapts for drawImageRect. More...
#include <atlas_contents.h>
Public Member Functions | |
| DrawImageRectAtlasGeometry (std::shared_ptr< Texture > texture, const Rect &source, const Rect &destination, const Color &color, BlendMode blend_mode, const SamplerDescriptor &desc) | |
| ~DrawImageRectAtlasGeometry () | |
| bool | ShouldUseBlend () const override |
| bool | ShouldSkip () const override |
| VertexBuffer | CreateSimpleVertexBuffer (HostBuffer &host_buffer) const override |
| VertexBuffer | CreateBlendVertexBuffer (HostBuffer &host_buffer) const override |
| Rect | ComputeBoundingBox () const override |
| const std::shared_ptr< Texture > & | GetAtlas () const override |
| const SamplerDescriptor & | GetSamplerDescriptor () const override |
| BlendMode | GetBlendMode () const override |
| bool | ShouldInvertBlendMode () const override |
An atlas geometry that adapts for drawImageRect.
Definition at line 43 of file atlas_contents.h.
| impeller::DrawImageRectAtlasGeometry::DrawImageRectAtlasGeometry | ( | std::shared_ptr< Texture > | texture, |
| const Rect & | source, | ||
| const Rect & | destination, | ||
| const Color & | color, | ||
| BlendMode | blend_mode, | ||
| const SamplerDescriptor & | desc | ||
| ) |
Definition at line 20 of file atlas_contents.cc.
|
default |
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 105 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 74 of file atlas_contents.cc.
References buffer_view, data, impeller::HostBuffer::Emplace(), impeller::TRect< T >::GetPoints(), impeller::kNone, impeller::TRect< Scalar >::MakeSize(), offset, impeller::Color::Premultiply(), impeller::TRect< T >::Project(), and impeller::VertexBuffer::vertex_buffer.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 44 of file atlas_contents.cc.
References buffer_view, data, impeller::HostBuffer::Emplace(), impeller::TRect< T >::GetPoints(), impeller::kNone, impeller::TRect< Scalar >::MakeSize(), offset, impeller::TRect< T >::Project(), and impeller::VertexBuffer::vertex_buffer.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 109 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 118 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 113 of file atlas_contents.cc.
|
overridevirtual |
Reimplemented from impeller::AtlasGeometry.
Definition at line 122 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 40 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 36 of file atlas_contents.cc.