Flutter Impeller
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  }

References impeller::GLTexture::texture_name.

◆ InvalidValue()

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

Definition at line 27 of file texture.h.

27 { return {0}; }

Referenced by IsValid().

◆ IsValid()

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

Definition at line 29 of file texture.h.

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

References InvalidValue(), and value.


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