mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +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>
34 lines
559 B
C
34 lines
559 B
C
/*
|
|
* Copyright 2026 Behdad Esfahbod. All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef DEMO_GLSTATE_H
|
|
#define DEMO_GLSTATE_H
|
|
|
|
#include "demo-common.h"
|
|
#include "demo-buffer.h"
|
|
|
|
#include "demo-atlas.h"
|
|
#include "demo-shader.h"
|
|
|
|
typedef struct demo_glstate_t demo_glstate_t;
|
|
|
|
demo_glstate_t *
|
|
demo_glstate_create (void);
|
|
|
|
void
|
|
demo_glstate_destroy (demo_glstate_t *st);
|
|
|
|
|
|
void
|
|
demo_glstate_setup (demo_glstate_t *st);
|
|
|
|
demo_atlas_t *
|
|
demo_glstate_get_atlas (demo_glstate_t *st);
|
|
|
|
void
|
|
demo_glstate_set_matrix (demo_glstate_t *st, float mat[16]);
|
|
|
|
|
|
#endif /* DEMO_GLSTATE_H */
|