diff options
| author | eunhhu <[email protected]> | 2026-09-27 13:45:31 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-27 13:45:31 +0100 |
| commit | 2920e389f624263efe515d9a5f33f6b822efff5e (patch) | |
| tree | 098011662955822230b3baa3141b997092d96153 /src/symbols-gl.h | |
| parent | e650c341704e1b7f4c9d5a05bfa745c54002a599 (diff) | |
| download | vega-2920e389f624263efe515d9a5f33f6b822efff5e.tar.gz vega-2920e389f624263efe515d9a5f33f6b822efff5e.zip | |
Name Vega's parts: lib/, surfaces/ and symbols/
src/ held two parts, the surfaces that show modules to people and the
symbol format with its CPU and GPU drawing. As in Pure (design 009), top
level directories are now the parts, and the README says what each builds.
Diffstat (limited to 'src/symbols-gl.h')
| -rw-r--r-- | src/symbols-gl.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/symbols-gl.h b/src/symbols-gl.h deleted file mode 100644 index 4c6db67..0000000 --- a/src/symbols-gl.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef VEGA_SYMBOLS_GL_H -#define VEGA_SYMBOLS_GL_H -#include "symbols.h" -#include <GLES3/gl31.h> - -/* Symbols drawn by the GPU (OpenGL ES 3.1): the file's point table goes up - * as it is, one storage buffer, and each pixel of a symbol's box sums the - * exact area of the curves crossing its row, as vega_coverage does. Rows - * are cut into bands at upload, each listing its curves, so a pixel reads - * only those. Needs a current context. */ -typedef struct { - GLuint program, points, bands, instances, array; - GLint viewport; -} VegaGl; - -/* A symbol placed: its origin in pixels from the target's top left, and - * pixels per unit. */ -typedef struct { float x, y, scale; uint32_t symbol; } VegaGlyph; - -bool vega_gl_open(VegaGl *, const VegaSymbols *, char *error, size_t error_size); -/* Coverage added into the red channel of the bound framebuffer. */ -void vega_gl_draw(VegaGl *, const VegaSymbols *, const VegaGlyph *, uint32_t count, int width, int height); -void vega_gl_close(VegaGl *); -#endif |
