Piotr Praszmo

Results 9 comments of Piotr Praszmo

Are you running it on amd64 ? If so, you probably need to regenerate sdl_defs.go (touch sdl.c ; make). But after that (probably due to bug in godefs) you need...

Cgo adds extra algnment before nested structs. I corrected Keysym by hand and everything except Scancode should work now (for amd64). I will try to find better solution.

I'm not getting any errors, can you share your source?

you are missing sdl.OPENGL flag [http://gist.github.com/414478](http://gist.github.com/414478)

Update your Go compiler.

This is when the change was introduced in Go: http://code.google.com/p/go/source/detail?spec=svn7ec969250bfc8948d53ea3d6a9bceb6cbbc7b859&r=b1c079c01a0a3ccd68410347370a66fb14c82ed0 And in Go-SDL: https://github.com/banthar/Go-SDL/commit/cc10a4621647f88b2ca7d6b741a42c9efa507b36 You need either older Go-SDL or newer go. Try `hg update weekly`. I will try to...

I assume this is on Mac? On Mac only x11 driver is working see here: https://github.com/banthar/Go-SDL/issues/19

http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars Try using x11 driver (SDL_VIDEODRIVER=x11). If you want to use the default driver (Quartz), you need to run your program through SDLmain. In Go it's not easy.

To use GUI on Mac (and Windows), you need to initialize some stuff before your program starts. In SDL It's done through SDLmain module. It contains entry point for GUI...