bwiggs / go-3d Goto Github PK
View Code? Open in Web Editor NEWFun with Go and OpenGL
Fun with Go and OpenGL
i tested the program on archlinux x86_64
after changing the gl and glfw version and few statements for new version
"github.com/go-gl/gl/v3.3-core/gl"
glfw "github.com/go-gl/glfw/v3.1/glfw"
I received this error when running it
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x0 pc=0x0]
runtime stack:
runtime.throw(0x57f560, 0x2a)
/usr/lib/go/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
/usr/lib/go/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.asmcgocall(0x418d1a, 0xc820051e00)
/usr/lib/go/src/runtime/asm_amd64.s:586 +0x70
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4db810, 0xc820051e70, 0xc800000000)
/usr/lib/go/src/runtime/cgocall.go:123 +0x11b fp=0xc820051e20 sp=0xc820051df0
github.com/go-gl/gl/v3.3-core/gl._Cfunc_glowClearColor(0x0, 0x3f000000, 0x3e4ccccd00000000)
github.com/go-gl/gl/v3.3-core/gl/_obj/_cgo_gotypes.go:2409 +0x3a fp=0xc820051e70 sp=0xc820051e20
github.com/go-gl/gl/v3.3-core/gl.ClearColor(0x3f000000, 0x3e4ccccd00000000)
/home/beenotung/goroot/src/github.com/go-gl/gl/v3.3-core/gl/package.go:5368 +0x53 fp=0xc820051e90 sp=0xc820051e70
main.main()
/home/beenotung/goroot/src/github.com/bwiggs/go-3d/triangle.go:46 +0x2a3 fp=0xc820051f50 sp=0xc820051e90
runtime.main()
/usr/lib/go/src/runtime/proc.go:188 +0x2b0 fp=0xc820051fa0 sp=0xc820051f50
runtime.goexit()
/usr/lib/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc820051fa8 sp=0xc820051fa0
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/go/src/runtime/asm_amd64.s:1998 +0x1
exit status 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.