Window management with OpenGL context for the Go programming language.
  • Go 95%
  • C 3.8%
  • Glyph 1.2%
Find a file
Pierre Curto eb667f19c0 slug: fix glyph rendering corruption when band data crosses texture row boundary
The shader accesses band headers and curve lists as glyphLoc.x + offset
without row wrapping. When a glyph's band data block straddled a texture
row boundary, out-of-bounds texel fetches returned garbage, corrupting
all subsequent glyphs. Fix by ensuring each glyph's entire band block
fits in a single row, with proper padding to maintain 2D alignment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 09:56:16 +01:00
cmd WIP add initial Slug package 2026-03-18 14:10:05 +01:00
geom geom: add Rect.Inset 2025-12-26 20:31:30 +01:00
glui shape2d: merge slug font rendering into shape2d shader 2026-03-18 21:16:00 +01:00
internal slug: fix glyph rendering corruption when band data crosses texture row boundary 2026-03-19 09:56:16 +01:00
shape2d shape2d: merge slug font rendering into shape2d shader 2026-03-18 21:16:00 +01:00
clipboard.go macos: support clipboard operations 2026-01-24 21:51:39 +01:00
clipboard_darwin.c macos: support clipboard operations 2026-01-24 21:51:39 +01:00
clipboard_darwin.go macos: support clipboard operations 2026-01-24 21:51:39 +01:00
clipboard_darwin.h macos: support clipboard operations 2026-01-24 21:51:39 +01:00
clipboard_linux.c linux, windows: support clipboard operations 2026-01-24 22:11:58 +01:00
clipboard_linux.go linux, windows: support clipboard operations 2026-01-24 22:11:58 +01:00
clipboard_linux.h linux, windows: support clipboard operations 2026-01-24 22:11:58 +01:00
clipboard_windows.go linux, windows: support clipboard operations 2026-01-24 22:11:58 +01:00
cursor.go add support to hide the cursor on macos and windows 2025-01-28 20:54:42 +01:00
cursor_darwin.go glui/themes: show split cursor 2026-01-14 09:53:50 +01:00
cursor_js.go add initial support for wasm (tested) 2025-02-02 16:51:05 +01:00
cursor_linux.go glui/themes: show split cursor 2026-01-14 09:53:50 +01:00
cursor_windows.go glui/themes: show split cursor 2026-01-14 09:53:50 +01:00
gl.go shape2d: WIP PathRenderer 2025-08-29 21:42:37 +02:00
gl_darwin.go remove UB detected by the race detector 2026-01-23 10:41:57 +01:00
gl_js.go support Vec3 in ShaderInst.SetUniform 2025-08-17 09:13:07 +02:00
gl_linux.go remove UB detected by the race detector 2026-01-23 10:41:57 +01:00
gl_windows.go small fixes for Windows 2026-01-09 14:24:31 +01:00
glen.go Integrate Slug font rendering into shape2d renderer 2026-03-18 15:51:04 +01:00
go.mod glui/themes: use *FontStyle 2026-02-28 13:52:17 +01:00
go.sum WIP msdf support 2026-02-05 09:47:23 +01:00
keys.go rename Window to WindowIfc and window to Window 2025-08-11 11:44:34 +02:00
keys_darwin.go macos: move from purego to cgo 2026-01-13 14:29:00 +01:00
keys_js.go rename Window to WindowIfc and window to Window 2025-08-11 11:44:34 +02:00
keys_linux.go linux: working version 2026-01-13 16:22:45 +01:00
keys_windows.go rename Window to WindowIfc and window to Window 2025-08-11 11:44:34 +02:00
LICENSE add LICENSE 2025-05-11 15:39:07 +02:00
shader.go glen: remove purego dependency 2026-01-17 14:11:46 +01:00
shaderT.go avoid using unsafe.Pointer when not required 2026-01-01 21:26:55 +01:00
slug.glf shape2d: merge slug font rendering into shape2d shader 2026-03-18 21:16:00 +01:00
slug.glv WIP add initial Slug package 2026-03-18 14:10:05 +01:00
slug.go shape2d: merge slug font rendering into shape2d shader 2026-03-18 21:16:00 +01:00
texture.go shape2d: merge slug font rendering into shape2d shader 2026-03-18 21:16:00 +01:00
window.go glui: support clipboard pasting in Input 2026-01-25 18:00:15 +01:00
window_darwin.c macos: implement Window.Resize() 2026-02-02 21:44:50 +01:00
window_darwin.go macos: implement Window.Resize() 2026-02-02 21:44:50 +01:00
window_darwin.h macos: implement Window.Resize() 2026-02-02 21:44:50 +01:00
window_js.go fix Window.Close() on macos and windows 2026-01-25 20:06:05 +01:00
window_linux.c linux, windows: support clipboard operations 2026-01-24 22:11:58 +01:00
window_linux.go fix Window.Close() on macos and windows 2026-01-25 20:06:05 +01:00
window_linux.h linux: working version 2026-01-13 16:22:45 +01:00
window_windows.go fix Window.Close() on macos and windows 2026-01-25 20:06:05 +01:00