Flutter Engine
 
Loading...
Searching...
No Matches
FlutterOpenGLTexture Struct Reference

#include <embedder.h>

Public Attributes

uint32_t target
 
uint32_t name
 The name of the texture.
 
uint32_t format
 The texture format (example GL_RGBA8).
 
void * user_data
 User data to be returned on the invocation of the destruction callback.
 
VoidCallback destruction_callback
 
size_t width
 
size_t height
 Height of the texture.
 

Detailed Description

Definition at line 509 of file embedder.h.

Member Data Documentation

◆ destruction_callback

VoidCallback FlutterOpenGLTexture::destruction_callback

Callback invoked (on an engine managed thread) that asks the embedder to collect the texture.

Definition at line 521 of file embedder.h.

Referenced by fl_pixel_buffer_texture_populate(), fl_texture_gl_populate(), operator<<(), operator==(), flutter::ExternalTextureD3d::PopulateTexture(), and flutter::ExternalTexturePixelBuffer::PopulateTexture().

◆ format

uint32_t FlutterOpenGLTexture::format

◆ height

◆ name

◆ target

uint32_t FlutterOpenGLTexture::target

◆ user_data

void* FlutterOpenGLTexture::user_data

User data to be returned on the invocation of the destruction callback.

Definition at line 518 of file embedder.h.

Referenced by fl_pixel_buffer_texture_populate(), fl_texture_gl_populate(), operator<<(), operator==(), flutter::ExternalTextureD3d::PopulateTexture(), and flutter::ExternalTexturePixelBuffer::PopulateTexture().

◆ width

size_t FlutterOpenGLTexture::width

Optional parameters for texture height/width, default is 0, non-zero means the texture has the specified width/height. Usually, when the texture type is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to tell the embedder to scale when rendering. Width of the texture.

Definition at line 527 of file embedder.h.

Referenced by fl_pixel_buffer_texture_populate(), fl_texture_gl_populate(), flutter::ExternalTextureD3d::PopulateTexture(), flutter::ExternalTexturePixelBuffer::PopulateTexture(), TEST(), TEST(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::testing::TEST().


The documentation for this struct was generated from the following file: