#include <texture.h>
Definition at line 17 of file texture.h.
◆ ~Texture()
impeller::Texture::~Texture |
( |
| ) |
|
|
virtualdefault |
◆ Texture()
◆ GetCoordinateSystem()
Definition at line 77 of file texture.cc.
77 {
78 return coordinate_system_;
79}
◆ GetMipCount()
size_t impeller::Texture::GetMipCount |
( |
| ) |
const |
Definition at line 53 of file texture.cc.
53 {
55}
const TextureDescriptor & GetTextureDescriptor() const
◆ GetSize()
virtual ISize impeller::Texture::GetSize |
( |
| ) |
const |
|
pure virtual |
◆ GetTextureDescriptor()
Definition at line 57 of file texture.cc.
57 {
58 return desc_;
59}
◆ GetYCoordScale()
Scalar impeller::Texture::GetYCoordScale |
( |
| ) |
const |
|
virtual |
◆ IsOpaque()
bool impeller::Texture::IsOpaque |
( |
| ) |
const |
Definition at line 49 of file texture.cc.
49 {
50 return is_opaque_;
51}
◆ IsValid()
virtual bool impeller::Texture::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ NeedsMipmapGeneration()
bool impeller::Texture::NeedsMipmapGeneration |
( |
| ) |
const |
Returns true if mipmaps have never been generated. The contents of the mipmap may be out of date if the root texture has been modified and the mipmaps hasn't been regenerated.
Definition at line 85 of file texture.cc.
◆ OnSetContents() [1/2]
virtual bool impeller::Texture::OnSetContents |
( |
const uint8_t * |
contents, |
|
|
size_t |
length, |
|
|
size_t |
slice |
|
) |
| |
|
protectedpure virtual |
◆ OnSetContents() [2/2]
virtual bool impeller::Texture::OnSetContents |
( |
std::shared_ptr< const fml::Mapping > |
mapping, |
|
|
size_t |
slice |
|
) |
| |
|
protectedpure virtual |
◆ SetContents() [1/2]
bool impeller::Texture::SetContents |
( |
const uint8_t * |
contents, |
|
|
size_t |
length, |
|
|
size_t |
slice = 0 , |
|
|
bool |
is_opaque = false |
|
) |
| |
Definition at line 15 of file texture.cc.
18 {
19 if (!IsSliceValid(slice)) {
21 return false;
22 }
24 return false;
25 }
27 is_opaque_ = is_opaque;
28 return true;
29}
virtual bool OnSetContents(const uint8_t *contents, size_t length, size_t slice)=0
◆ SetContents() [2/2]
bool impeller::Texture::SetContents |
( |
std::shared_ptr< const fml::Mapping > |
mapping, |
|
|
size_t |
slice = 0 , |
|
|
bool |
is_opaque = false |
|
) |
| |
Definition at line 31 of file texture.cc.
33 {
34 if (!IsSliceValid(slice)) {
36 return false;
37 }
38 if (!mapping) {
39 return false;
40 }
42 return false;
43 }
45 is_opaque_ = is_opaque;
46 return true;
47}
◆ SetCoordinateSystem()
Update the coordinate system used by the texture.
The setting is used to conditionally invert the coordinates to account for the different origin of GLES textures.
Definition at line 73 of file texture.cc.
73 {
74 coordinate_system_ = coordinate_system;
75}
◆ SetLabel()
virtual void impeller::Texture::SetLabel |
( |
std::string_view |
label | ) |
|
|
pure virtual |
◆ mipmap_generated_
bool impeller::Texture::mipmap_generated_ = false |
|
protected |
The documentation for this class was generated from the following files: