gpu: expose the rendering implementation

The rendering implementation is needed for using Gio UI with external
window libraries such as GLFW. Expose it in the new package gpu.

Updates #26

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-07 21:16:03 +01:00
parent 34c6a2f735
commit 3b6646933d
25 changed files with 42 additions and 35 deletions
+3 -3
View File
@@ -16,8 +16,8 @@ import (
"errors"
"fmt"
"gioui.org/app/internal/gl"
"gioui.org/app/internal/gl/impl"
"gioui.org/gpu/gl"
"gioui.org/app/internal/glimpl"
)
type context struct {
@@ -45,7 +45,7 @@ func newContext(w *window) (*context, error) {
ctx: ctx,
owner: w,
layer: C.CFTypeRef(w.contextLayer()),
c: new(impl.Functions),
c: new(glimpl.Functions),
}
return c, nil
}