mirror of
https://github.com/lloeki/ld48-29.git
synced 2025-12-06 02:54:40 +01:00
basic skel
This commit is contained in:
parent
90b2569259
commit
9ae738448d
3 changed files with 30 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/src
|
||||||
|
/pkg
|
||||||
0
.gopath
Normal file
0
.gopath
Normal file
28
ld48-29.go
Normal file
28
ld48-29.go
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime"
|
||||||
|
"log"
|
||||||
|
gl "github.com/go-gl/gl"
|
||||||
|
glfw "github.com/go-gl/glfw3"
|
||||||
|
pa "code.google.com/p/portaudio-go/portaudio"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ = gl.Begin // TODO: remove later
|
||||||
|
var _ = glfw.Init // TODO: remove later
|
||||||
|
var _ = pa.Initialize // TODO: remove later
|
||||||
|
|
||||||
|
func errorCallback(err glfw.ErrorCode, desc string) {
|
||||||
|
log.Printf("%v: %v\n", err, desc)
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
|
||||||
|
glfw.SetErrorCallback(errorCallback)
|
||||||
|
|
||||||
|
if !glfw.Init() {
|
||||||
|
panic("Can't init glfw!")
|
||||||
|
}
|
||||||
|
defer glfw.Terminate()
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue