Documentation
¶
Index ¶
- Variables
- func BindAPI(api Api) error
- type Api
- type Config
- type Context
- type Display
- func (d Display) ChooseConfig() (Config, error)
- func (d Display) CreateContext(config Config) (Context, error)
- func (d Display) CreateWindowSurface(config Config, window NativeWindow) (Surface, error)
- func (d Display) Initialize() (string, error)
- func (d Display) MakeCurrent(surface Surface, ctx Context) error
- func (d Display) SwapBuffers(surface Surface) error
- func (d Display) Terminate() error
- type NativeDisplayType
- type NativeWindow
- type NativeWindowHandle
- type Surface
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultDisplay = NativeDisplayType(C.EGLNativeDisplayType(C.EGL_DEFAULT_DISPLAY))
)
Functions ¶
Types ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func GetDisplay ¶
func GetDisplay(display NativeDisplayType) (Display, error)
func (Display) ChooseConfig ¶
func (Display) CreateWindowSurface ¶
func (d Display) CreateWindowSurface(config Config, window NativeWindow) (Surface, error)
func (Display) Initialize ¶
func (Display) SwapBuffers ¶
type NativeDisplayType ¶
type NativeDisplayType C.EGLNativeDisplayType
type NativeWindow ¶
type NativeWindow interface {
Handle() NativeWindowHandle
}
type NativeWindowHandle ¶
type NativeWindowHandle C.EGLNativeWindowType
Click to show internal directories.
Click to hide internal directories.