Flutter Engine
The Flutter Engine
Public Attributes | List of all members
FlutterOpenGLTexture Struct Reference

#include <embedder.h>

Public Attributes

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

Detailed Description

Definition at line 366 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 378 of file embedder.h.

◆ format

uint32_t FlutterOpenGLTexture::format

The texture format (example GL_RGBA8).

Definition at line 373 of file embedder.h.

◆ height

size_t FlutterOpenGLTexture::height

Height of the texture.

Definition at line 386 of file embedder.h.

◆ name

uint32_t FlutterOpenGLTexture::name

The name of the texture.

Definition at line 371 of file embedder.h.

◆ target

uint32_t FlutterOpenGLTexture::target

Target texture of the active texture unit (example GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE).

Definition at line 369 of file embedder.h.

◆ user_data

void* FlutterOpenGLTexture::user_data

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

Definition at line 375 of file embedder.h.

◆ 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 384 of file embedder.h.


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