| 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 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 }
value
int32_t value
Definition: dl_golden_unittests.cc:459
impeller::GLTextureTraits::InvalidValue
static GLTexture InvalidValue()
Definition: texture.h:27

References InvalidValue(), and value.

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

- impeller/toolkit/gles/texture.h