macdriver

package
v1.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package macdriver provides an OpenGL-based driver for MacOS platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(f func(oswin.App))

Main is called by the program's main function to run the graphical application.

It calls f on the App, possibly in a separate goroutine, as some OS- specific libraries require being on 'the main thread'. It returns when f returns.

func NewContext

func NewContext() (gl.Context, error)

NewContext creates an OpenGL ES context with a dedicated processing thread.

func SrcDir

func SrcDir(dir string) (absDir string, err error)

SrcDir tries to locate dir in GOPATH/src/ or GOROOT/src/pkg/ and returns its full path. GOPATH may contain a list of paths. From Robin Elkind github.com/mewkiz/pkg

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL