~eliasnaur/gio-example

opengl: don't switch rendering threads

Chris' Linux port of the opengl example fails in mysterious ways after
rendering a few frames; eglSwapBuffers may fail with EGL_BAD_SURFACE, or
eglMakeCurrent may fail with EGL_BAD_ACCESS.

Adding a LockOSThread seems to fix the issue, indicating that Linux
OpenGL drivers don't like making a context current on many different
threads.

This change locks the OS thread and only makes the context current once,
at creation time.

Add a missing error handling case while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: use the correct framebuffer for screenshot rendering

Add go:build tags while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
all: update gio, go fmt for go:build constraints, go mod tidy

Signed-off-by: Elias Naur <mail@eliasnaur.com>
x/notify: fix macOS example build process

The go generate command that creates an application bundle was
missing some of the scaffolding required to make well-formed
application. This ensured that the resulting app always failed
to send notifications.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
opengl,glfw: update to latest Gio version

Remove depth buffers since they're no longer needed by any Gio
renderer.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
deps,example/kitchen: update to latest gio

This commit adapts the kitchen example's use of icons to
their new API.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
kitchen: fix nil check

Signed-off-by: Elias Naur <mail@eliasnaur.com>
go.*: upgrade to latest Gio

Updates gio#245

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gophers: add scrollbars

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
kitchen: add scrollbar

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
x/scroll: remove scroll example

The scrollbar is now part of core, and thus used throughout
the other examples. It no longer needs a dedicated one.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
x/component: add scrollbars to pages

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: add scrollbar to letters window

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: add scrollbar to log

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps: update to latest gioui.org{,/x}

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
x/scroll: smooth scrolling heuristic

This change takes advantage of newer fields in list.Position
to render a much smoother scrollbar.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
kitchen: add ProgressCircle example

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: add screenshot function to demonstrate headless rendering

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: fix build error on Windows

The pointer-ness of EGLDisplay vary by platform.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: release current context after use

For this example it doesn't matter, but for larger programs that may
have multiple contexts, ANGLE seem to behave better when release the
current context before using another.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
Next