Flutter Engine
The Flutter Engine
|
#include <texture_gles.h>
Public Types | |
enum class | Type { kTexture , kTextureMultisampled , kRenderBuffer , kRenderBufferMultisampled } |
enum class | IsWrapped { kWrapped } |
enum class | AttachmentType { kColor0 , kDepth , kStencil } |
Public Member Functions | |
TextureGLES (ReactorGLES::Ref reactor, TextureDescriptor desc) | |
TextureGLES (ReactorGLES::Ref reactor, TextureDescriptor desc, IsWrapped wrapped) | |
~TextureGLES () override | |
std::optional< GLuint > | GetGLHandle () const |
bool | Bind () const |
bool | GenerateMipmap () |
bool | SetAsFramebufferAttachment (GLenum target, AttachmentType attachment_type) const |
Type | GetType () const |
bool | IsWrapped () const |
std::optional< GLuint > | GetFBO () const |
void | MarkSliceInitialized (size_t slice) const |
bool | IsSliceInitialized (size_t slice) const |
Public Member Functions inherited from impeller::Texture | |
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 |
Static Public Member Functions | |
static std::shared_ptr< TextureGLES > | WrapFBO (ReactorGLES::Ref reactor, TextureDescriptor desc, GLuint fbo) |
Static Public Member Functions inherited from impeller::BackendCast< TextureGLES, Texture > | |
static TextureGLES & | Cast (Texture &base) |
static const TextureGLES & | Cast (const Texture &base) |
static TextureGLES * | Cast (Texture *base) |
static const TextureGLES * | Cast (const Texture *base) |
Additional Inherited Members | |
Protected Member Functions inherited from impeller::Texture | |
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 inherited from impeller::Texture | |
bool | mipmap_generated_ = false |
Definition at line 17 of file texture_gles.h.
|
strong |
Enumerator | |
---|---|
kColor0 | |
kDepth | |
kStencil |
Definition at line 50 of file texture_gles.h.
|
strong |
Enumerator | |
---|---|
kWrapped |
Definition at line 27 of file texture_gles.h.
|
strong |
Enumerator | |
---|---|
kTexture | |
kTextureMultisampled | |
kRenderBuffer | |
kRenderBufferMultisampled |
Definition at line 20 of file texture_gles.h.
impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
TextureDescriptor | desc | ||
) |
Definition at line 142 of file texture_gles.cc.
impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
TextureDescriptor | desc, | ||
IsWrapped | wrapped | ||
) |
Definition at line 145 of file texture_gles.cc.
|
override |
Definition at line 186 of file texture_gles.cc.
bool impeller::TextureGLES::Bind | ( | ) | const |
Definition at line 431 of file texture_gles.cc.
bool impeller::TextureGLES::GenerateMipmap | ( | ) |
Definition at line 464 of file texture_gles.cc.
|
inline |
Definition at line 63 of file texture_gles.h.
std::optional< GLuint > impeller::TextureGLES::GetGLHandle | ( | ) | const |
Definition at line 424 of file texture_gles.cc.
TextureGLES::Type impeller::TextureGLES::GetType | ( | ) | const |
Definition at line 498 of file texture_gles.cc.
bool impeller::TextureGLES::IsSliceInitialized | ( | size_t | slice | ) | const |
Definition at line 460 of file texture_gles.cc.
|
inline |
Definition at line 61 of file texture_gles.h.
void impeller::TextureGLES::MarkSliceInitialized | ( | size_t | slice | ) | const |
Definition at line 456 of file texture_gles.cc.
bool impeller::TextureGLES::SetAsFramebufferAttachment | ( | GLenum | target, |
AttachmentType | attachment_type | ||
) | const |
Definition at line 513 of file texture_gles.cc.
|
static |
Definition at line 150 of file texture_gles.cc.