Files
harfbuzz/util/gpu/demo-atlas.h
T
Behdad EsfahbodandClaude Opus 4.6 03c2688436 [gpu] Add GPU demo app in util/gpu
Port the glyphy-demo to use the hb-gpu API.  Builds as util/hb-gpu
and requires GLEW, GLFW3, and OpenGL 3.3.  Includes default text
and embedded font for quick testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 18:30:13 -06:00

37 lines
641 B
C

/*
* Copyright 2026 Behdad Esfahbod. All Rights Reserved.
*/
#ifndef DEMO_ATLAS_H
#define DEMO_ATLAS_H
#include "demo-common.h"
typedef struct demo_atlas_t demo_atlas_t;
demo_atlas_t *
demo_atlas_create (unsigned int capacity);
demo_atlas_t *
demo_atlas_reference (demo_atlas_t *at);
void
demo_atlas_destroy (demo_atlas_t *at);
/* Returns the 1D offset (in texels) where the data was placed. */
unsigned int
demo_atlas_alloc (demo_atlas_t *at,
const char *data,
unsigned int len_bytes);
unsigned int
demo_atlas_get_used (demo_atlas_t *at);
void
demo_atlas_set_uniforms (demo_atlas_t *at);
#endif /* DEMO_ATLAS_H */