| Flutter Impeller |

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 20 of file texture.h.

## Member Function Documentation

## ◆ Free()

static void impeller::GLTextureTraits::Free | ( | GLTexture | image | ) |
| inline static

Definition at line 27 of file texture.h.

27 {
28 glDeleteTextures(1, &image.texture_name);
29 }

References impeller::GLTexture::texture_name.

## ◆ InvalidValue()

static GLTexture impeller::GLTextureTraits::InvalidValue | ( |  | ) |
| inline static

Definition at line 21 of file texture.h.

21 { return {0}; }

Referenced by IsValid().

## ◆ IsValid()

static bool impeller::GLTextureTraits::IsValid | ( | const GLTexture & | value | ) |
| inline static

Definition at line 23 of file texture.h.

23 {
24 return value != InvalidValue();
25 }
value
int32_t value
Definition: dl_golden_unittests.cc:459
impeller::GLTextureTraits::InvalidValue
static GLTexture InvalidValue()
Definition: texture.h:21

References InvalidValue(), and value.

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

- impeller/toolkit/gles/texture.h