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, hopefully, made the mouse buttons a little more clear to use. In SDL, the buttons themselves (counted 1, 2, 3, etc) seemingly aren't used (except to generate the button...

During the build of a Docker container build: Dockerfile contents: FROM ubuntu:bionic RUN apt-get update RUN apt-get install -y \ golang \ git \ libsdl2-dev \ libsdl2-image-dev \ libsdl2-mixer-dev \...

Trying to build inside github actions, where the current version of SDL is 2.0.8 ``` | /root/go/src/github.com/veandco/go-sdl2/sdl/render.go:330:14: could not determine kind of name for C.GoString | /root/go/src/github.com/veandco/go-sdl2/sdl/render.go:865:3: could not determine...

Hi i have a problem with go-sdl2 first i create go module next install all package on debian next write some sdl2 code in golang and go mod tidy then...

If I compile a program with "github.com/veandco/go-sdl2/sdl "then everything is ok. The program is compiled. If I insert "github.com/veandco/go-sdl2/ttf " then I get an error C:\GoPrg\sdl2_start>go build main.go # github.com/veandco/go-sdl2/ttf...

When I try to build my Go app to wasm, I get many SDL failures: $ GOOS=js GOARCH=wasm go build -o myapp.wasm .\sdl.go:9:20: undefined: sdl.Surface .\sdl.go:9:43: undefined: sdl.Renderer .\sdl.go:22:46: undefined:...

enhancement

The SDL2 documentation says you can pass in NULL indices. ![image](https://user-images.githubusercontent.com/11500738/162645584-9c8570a8-6b97-4013-9bcb-55d068ae65c0.png) The go-sdl2 function assumes there is at least one indice passed in: ![image](https://user-images.githubusercontent.com/11500738/162645569-f20cb08b-9325-40fe-b9da-2b127f598f4c.png) I presume the fix is probably...

It seems that android arm64 (AKA aarch64 / arm64-v8a) is the standard now (meaning you cant technically use this library for android). I suppose adding support for it is as...

Currently, the signature for `Renderer.RenderGeometryRaw` looks like this: ```go func (renderer *Renderer) RenderGeometryRaw( texture *Texture, xy []float32, xy_stride int, color []Color, color_stride int, uv []float32, uv_stride int, num_vertices int, indices...

I'm using sdl2 2.0.20 and go-sdl2 0.4.12. I believe the bug was introduced by the new sdl2 version, as the code worked fine around 2.0.16 with go-sdl2 0.4.10 a few...