go-sdl2 icon indicating copy to clipboard operation
go-sdl2 copied to clipboard

SDL2 binding for Go

Results 85 go-sdl2 issues
Sort by recently updated
recently updated
newest added

I noticed that Go-SDL2 seems to deal with structs by defining Go structs that have the same field layout as SDL2 structs. However, this is unsafe because if SDL2 updates...

Hello is there any guidance for cross-compiling from Windows to Mac? I get the following error: ``` $ CGO_ENABLED=1 GOOS=darwin CC="gcc" GOARCH=amd64 go build -o output # runtime/cgo gcc: error:...

In trying to install on an M1 machine I am getting a very, very long list of linker errors, ending with: ``` ... "_SDL_free", referenced from: __cgo_cd82acf4e3d9_Cfunc_SDL_free in _x004.o (maybe...

For whatever reason, SDL chooses to ship a vulkan loader itself, which means that if SDL gets a little out of date, so does vulkan. At this time, the SDL2...

Do you have any interest in or plans to add support for [sdl-gpu](https://github.com/grimfang4/sdl-gpu)? I've started prototyping support for it and thought it might be nice to integrate here if there's...

enhancement

So im writing a program just rendering screen a BMP there is all of my code and Exeptıons as err. i making this like in renderer example. ``` package main...

``` $ CGO_ENABLED=1 CC=gcc GOOS=linux GOARCH=amd64 go build -tags static -ldflags '-s -w' foo.go $ ldd foo linux-vdso.so.1 (0x00007ffea0d18000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007effa257a000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007effa2376000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0...

build

The gfx documentation at https://godoc.org/github.com/veandco/go-sdl2/gfx links to SDL1.2 version of gfx. Outdated links: https://www.ferzkopp.net/Software/SDL_gfx-2.0/Docs/html/index.html Correct link: https://www.ferzkopp.net/Software/SDL2_gfx/Docs/html/index.html

This is my code: ``` package main import ( "fmt" "os" "github.com/veandco/go-sdl2/sdl" ) func main() { //==============CREATE WINDOW============== window, err := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED, 500, 500, sdl.WINDOW_SHOWN) if err !=...