mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
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>
37 lines
641 B
C
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 */
|