app: implement CustomRenderer option

CustomRenderer disables the construction and binding of a GPU
context to the Window. Combined with ViewEvent and gpu.New, a Gio
client can mix Gio UI and custom rendering.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-05-16 14:33:25 +02:00
parent d1f2f61ebf
commit 413bff8766
2 changed files with 23 additions and 4 deletions
+1
View File
@@ -29,6 +29,7 @@ type Options struct {
StatusColor *color.NRGBA
NavigationColor *color.NRGBA
Orientation *Orientation
CustomRenderer bool
}
type WindowMode uint8