Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
impeller::GLTextureTraits Struct Reference

#include <texture.h>

Static Public Member Functions

static GLTexture InvalidValue ()
 
static bool IsValid (const GLTexture &value)
 
static void Free (GLTexture image)
 

Detailed Description

Definition at line 26 of file texture.h.

Member Function Documentation

◆ Free()

static void impeller::GLTextureTraits::Free ( GLTexture  image)
inlinestatic

Definition at line 33 of file texture.h.

33 {
34 glDeleteTextures(1, &image.texture_name);
35 }
sk_sp< SkImage > image
Definition examples.cpp:29

◆ InvalidValue()

static GLTexture impeller::GLTextureTraits::InvalidValue ( )
inlinestatic

Definition at line 27 of file texture.h.

27{ return {0}; }

◆ IsValid()

static bool impeller::GLTextureTraits::IsValid ( const GLTexture value)
inlinestatic

Definition at line 29 of file texture.h.

29 {
30 return value != InvalidValue();
31 }
uint8_t value
static GLTexture InvalidValue()
Definition texture.h:27

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