Flutter Engine
The Flutter Engine
|
#include <texture.h>
Public Member Functions | |
virtual | ~Texture () |
virtual void | SetLabel (std::string_view label)=0 |
bool | SetContents (const uint8_t *contents, size_t length, size_t slice=0, bool is_opaque=false) |
bool | SetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice=0, bool is_opaque=false) |
virtual bool | IsValid () const =0 |
virtual ISize | GetSize () const =0 |
bool | IsOpaque () const |
size_t | GetMipCount () const |
const TextureDescriptor & | GetTextureDescriptor () const |
void | SetCoordinateSystem (TextureCoordinateSystem coordinate_system) |
TextureCoordinateSystem | GetCoordinateSystem () const |
virtual Scalar | GetYCoordScale () const |
bool | NeedsMipmapGeneration () const |
Protected Member Functions | |
Texture (TextureDescriptor desc) | |
virtual bool | OnSetContents (const uint8_t *contents, size_t length, size_t slice)=0 |
virtual bool | OnSetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice)=0 |
Protected Attributes | |
bool | mipmap_generated_ = false |
|
virtualdefault |
|
explicitprotected |
Definition at line 11 of file texture.cc.
TextureCoordinateSystem impeller::Texture::GetCoordinateSystem | ( | ) | const |
Definition at line 77 of file texture.cc.
size_t impeller::Texture::GetMipCount | ( | ) | const |
Definition at line 53 of file texture.cc.
|
pure virtual |
Implemented in impeller::TestImpellerTexture, impeller::TextureGLES, impeller::TextureMTL, and impeller::TextureVK.
const TextureDescriptor & impeller::Texture::GetTextureDescriptor | ( | ) | const |
Definition at line 57 of file texture.cc.
|
virtual |
Reimplemented in impeller::TextureGLES.
Definition at line 81 of file texture.cc.
bool impeller::Texture::IsOpaque | ( | ) | const |
Definition at line 49 of file texture.cc.
|
pure virtual |
Implemented in impeller::TextureGLES, impeller::TextureMTL, impeller::TextureVK, and impeller::TestImpellerTexture.
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.
|
protectedpure virtual |
Implemented in impeller::TestImpellerTexture, impeller::TextureGLES, impeller::TextureMTL, and impeller::TextureVK.
|
protectedpure virtual |
Implemented in impeller::TestImpellerTexture, impeller::TextureGLES, impeller::TextureMTL, and impeller::TextureVK.
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.
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.
void impeller::Texture::SetCoordinateSystem | ( | TextureCoordinateSystem | coordinate_system | ) |
Definition at line 73 of file texture.cc.
|
pure virtual |
Implemented in impeller::TextureGLES, impeller::TextureMTL, impeller::TextureVK, and impeller::TestImpellerTexture.
|
protected |