TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::sdlgpu::SDLGPUImageSet Class Referencefinal

The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More...

#include <gui_core/graphics/sdlgpu/sdlgpu_device.h>

Inheritance diagram for tachyon::sdlgpu::SDLGPUImageSet:

Public Member Functions

void SetCapacity (uint32_t capacity)
void Clear () override
 Removes every image, freeing all indices.
ImageIndex Add (Image *image) override
 Adds an image (not owned) and returns its index.
void Remove (ImageIndex index) override
 Frees the index for reuse; the image itself stays.
ImageIndex ReserveIndex ()
 A slot with no image yet, for one that comes later (a text atlas page).
void SetImage (ImageIndex index, SDLGPUImage *image)
 Points the slot at another image.
const SDLGPUImage * At (uint32_t slot) const
 The image in a 0-based slot, or null.
Public Member Functions inherited from tachyon::ImageSet
virtual ~ImageSet ()

Detailed Description

The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less).

Member Function Documentation

◆ SetCapacity()

void tachyon::sdlgpu::SDLGPUImageSet::SetCapacity ( uint32_t capacity)
inline

◆ Clear()

void tachyon::sdlgpu::SDLGPUImageSet::Clear ( )
overridevirtual

Removes every image, freeing all indices.

Implements tachyon::ImageSet.

◆ Add()

ImageIndex tachyon::sdlgpu::SDLGPUImageSet::Add ( Image * image)
overridevirtual

Adds an image (not owned) and returns its index.

Implements tachyon::ImageSet.

◆ Remove()

void tachyon::sdlgpu::SDLGPUImageSet::Remove ( ImageIndex index)
overridevirtual

Frees the index for reuse; the image itself stays.

Implements tachyon::ImageSet.

◆ ReserveIndex()

ImageIndex tachyon::sdlgpu::SDLGPUImageSet::ReserveIndex ( )

A slot with no image yet, for one that comes later (a text atlas page).

◆ SetImage()

void tachyon::sdlgpu::SDLGPUImageSet::SetImage ( ImageIndex index,
SDLGPUImage * image )

Points the slot at another image.

◆ At()

const SDLGPUImage * tachyon::sdlgpu::SDLGPUImageSet::At ( uint32_t slot) const
inline

The image in a 0-based slot, or null.


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