Files
harfbuzz/util/gpu/demo-view.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

58 lines
1.1 KiB
C

/*
* Copyright 2012 Google, Inc. All Rights Reserved.
*
* Google Author(s): Behdad Esfahbod
*/
#ifndef DEMO_VIEW_H
#define DEMO_VIEW_H
#include "demo-common.h"
#include "demo-buffer.h"
#include "demo-glstate.h"
typedef struct demo_view_t demo_view_t;
demo_view_t *
demo_view_create (demo_glstate_t *st, GLFWwindow *window);
void
demo_view_destroy (demo_view_t *vu);
void
demo_view_reset (demo_view_t *vu);
void
demo_view_reshape_func (demo_view_t *vu, int width, int height);
void
demo_view_key_func (demo_view_t *vu, int key, int scancode, int action, int mods);
void
demo_view_char_func (demo_view_t *vu, unsigned int codepoint);
void
demo_view_mouse_func (demo_view_t *vu, int button, int action, int mods);
void
demo_view_scroll_func (demo_view_t *vu, double xoffset, double yoffset);
void
demo_view_motion_func (demo_view_t *vu, double x, double y);
void
demo_view_print_help (demo_view_t *vu);
void
demo_view_display (demo_view_t *vu, demo_buffer_t *buffer);
void
demo_view_setup (demo_view_t *vu);
bool
demo_view_should_redraw (demo_view_t *vu);
#endif /* DEMO_VIEW_H */