Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/veandco/go-sdl2

SDL2 binding for Go
https://github.com/veandco/go-sdl2

Update example code in README to note the difference of event type switch case between `master` and `v0.4.x`

Signed-off-by: Lilis Iskandar <[email protected]>

40fbe49ff9c62a19970ec4499243c02dbbad8ac2 authored 11 months ago
Update README.md

Signed-off-by: Lilis Iskandar <[email protected]>

9e722e46bcd4b7e0a4f743956d8145460af95f34 authored 11 months ago
sdl: updated TODO markings (#590)

388934e43c791878f96d765bbb1a798a03ea5983 authored 11 months ago
sdl: add missing HINT_VIDEODRIVER hint (#588)

62457e668e20e75132ffc259709e2e6e380c7768 authored about 1 year ago
sdl/audio: fix AudioStream.Available() returning error instead of int

Signed-off-by: Lilis Iskandar <[email protected]>

3e3204db57d437c7d2541dcf24f9e4bbf2c9f200 authored about 1 year ago
Update test-build github workflow to use SDL2 2.28.0

Signed-off-by: Lilis Iskandar <[email protected]>

299f42467a5acf0deb11ead688f18f4389133904 authored about 1 year ago
sdl: add bindings up to SDL2 2.0.28 and some previously missing ones as well

Signed-off-by: Lilis Iskandar <[email protected]>

a46f527e7c24dead962414a7c5a6d168cbdd0787 authored about 1 year ago
sdl/timer: add stub function for SDL_GetTicks64() when running on SDL2 version older than 2.0.18

Signed-off-by: Lilis Iskandar <[email protected]>

413c8988428a181ea93eb38ed68965433d0af5c8 authored about 1 year ago
Review a calls to C.CString and pair them with C.free where necessary. (#583)

* Pair C.malloc with C.free instead of C.SDL_free.

AudioCVT.buf was allocated with C.malloc s...

2d3a0a97f3876a320d690fd634022538cd562372 authored about 1 year ago
sdl: replace SDL_free() with free() for variables that were created using C.CString()

Signed-off-by: Lilis Iskandar <[email protected]>

7ed18a04f4a7606c8d666c7d6ae48b57c0202726 authored about 1 year ago
Update .go-sdl2-examples submodule

Signed-off-by: Lilis Iskandar <[email protected]>

51ffa7e0b19005932064817f4e6c555056c30c52 authored about 1 year ago
Update README.md

Signed-off-by: Lilis Iskandar <[email protected]>

d7e090824116d9649b0002586f7c202d2fadb418 authored about 1 year ago
Align colors in SDL package to Go specification (#581)

* sdl/surface: handle colors correctly in Surface.Set method

* sdl/pixels: fix color models
...

0880ba863a9db7487ea10e3573ad5c130fdd1ee9 authored about 1 year ago
sdl/timer: add GetTicks64() and deprecated GetTicks()

Signed-off-by: Lilis Iskandar <[email protected]>

9405dd390eb0a6e9076b629debd80f7f4332b47c authored over 1 year ago
BREAKING: sdl/render: change Texture.Update() to accept unsafe.Pointer instead of []byte for flexibility of input data type and it also matches native API

Signed-off-by: Lilis Iskandar <[email protected]>

3ee1d2ea8afed862756ae87d6c8d902a36aea612 authored over 1 year ago
sdl: handle adaptive vsync (-1) in GLGetSwapInterval (#568)

625a1e3aa4c02e8bd719b872df040bab9d11ec10 authored over 1 year ago
mix: avoid segfault race condition on HookMusicFinished (#567)

f5c830354cfc7a254b1cca41ac51ac74351f87ad authored over 1 year ago
sdl: Bugfix the button rework (#564)

* sdl: fixed type of MouseButtonEvent

* sdl: added Button.Mask() and ButtonMask.Has(Button)

ca807a94d8b3ecd7b8cf607adbc54f30aed62ce8 authored almost 2 years ago
sdl/pixels: add comments to warn users against using sdl.Color.Uint32() for rendering purposes

Signed-off-by: Lilis Iskandar <[email protected]>

f2721d8c70adeca1211ba1b135e031d3d4705a73 authored almost 2 years ago
Update example in README.md to have colour correctly generated for different environments

Signed-off-by: Lilis Iskandar <[email protected]>

d156a8d76253c8a8e1c2350e9a0d42c734716e6f authored almost 2 years ago
ttf: Added missing rpcrt4 dependency for static linking on windows (#560)

45a104a675bc3a3d4a872f8f93e4c4f059f1c7d5 authored almost 2 years ago
Update Windows installation process in README.md

Signed-off-by: Lilis Iskandar <[email protected]>

99cc44abdaf4a8b3c9ed097bbc38205b2f3cb674 authored almost 2 years ago
Fix `go get -u` failing when GONOPROXY or GONOSUMDB is set

This is done by renaming .go-sdl2-libs to _libs.

Signed-off-by: Lilis Iskandar <[email protected]>

691b9ac8edabe571109a5e14faf517ac922fe424 authored almost 2 years ago
sdl: fix build error caused by dummy static library packages not being blank

Signed-off-by: Lilis Iskandar <[email protected]>

a8580f5a99af7cf68326babd6c5be475157813ea authored almost 2 years ago
Add workaround for including static libraries when running go mod vendor

Signed-off-by: Lilis Iskandar <[email protected]>

9515279986a1fc8d043e301522c565a0b8b56480 authored almost 2 years ago
sdl: added binds to SDL_shape.h (#554)

56f802bbc90a63d8a3853a68913b6a7e60e544ec authored almost 2 years ago
ttf: binded TTF_FontFaceStyleName in sdl_ttf.go (#553)

Binded TTF_FontFaceStyleName to FaceStyleName() on the Font struct.
Note: TTF_FontFaceStyleName...

d92a98e6f58de86cd0a09742f1d6a32403cca0fe authored almost 2 years ago
DequeueAudio and AudioStream.Get should return (n int, err error) (#550)

* sdl: fixed DequeueAudio return values

* sdl/audio: fixed AudioStream.Get return values

*...

e9259e78f9a317bd856280fef716d91011933f1f authored about 2 years ago
refactor: RenderGeometryRaw to use exactly same API (#546)

301cbcaab986809842e2761ddf8bf0e56418a7f3 authored about 2 years ago
add missing static libraries for linux_mipsle and update its link commands

Signed-off-by: Lilis Iskandar <[email protected]>

d093ebe4e7cd4258582fc69bb041cedf269a175d authored about 2 years ago
add initial support for linux_mipsle static compilation

Signed-off-by: Lilis Iskandar <[email protected]>

bd57d9a010cdcc3cfbfd2df9b1f0c5a8958847e5 authored about 2 years ago
Update issue templates

408ac46089e41cf5467aa59b0c3b0657e2c837b6 authored about 2 years ago
Update README.md

Signed-off-by: Lilis Iskandar <[email protected]>

1cc5f3cf35451b753c5838cb3760d2126b3d315e authored over 2 years ago
Rework buttons (#532)

* Updating functions to take the enum type

* Reworking mouse buttons and button masks

Co-a...

f9adad4192b0c820e5723196f581fca217059c07 authored over 2 years ago
Updating static libraries to match version in build script (20.0.20) (#538)

Co-authored-by: Allen Ray <[email protected]>

3686d24ef7b457afa656e14b2d90d2b0c6920f01 authored over 2 years ago
sdl/hints: fix a couple of backward-compatibility hints defined for SDL2 version

Signed-off-by: Lilis Iskandar <[email protected]>

3c4862273074f2dacd8c2ca4fee6f171c4af914a authored over 2 years ago
sdl/guid: use C.size_t for SDL_malloc for cross-platform compatibility

Signed-off-by: Lilis Iskandar <[email protected]>

0186475fe4897efda2922769f629cdf7ded7f677 authored over 2 years ago
sdl/events: add GetText() method back for TextEditingEvent and TextInputEvent

Signed-off-by: Lilis Iskandar <[email protected]>

0696db96700f2b88e38b50c7976482bf7aacc0d8 authored over 2 years ago
sdl/events: fix SDL_JoystickPowerLevel backup definition

Signed-off-by: Lilis Iskandar <[email protected]>

a5014232b68f282a5a73f3b0e1a11f93aaec37de authored over 2 years ago
sdl/guid: fix SDL_GUID not defined when using SDL2 older than 2.24.0

Signed-off-by: Lilis Iskandar <[email protected]>

3624de6c831db3f27b8fad7e0a77dec9ae5c5f8b authored over 2 years ago
sdl/events: fix SDL_JoyBatteryEvent not defined when using SDL2 older than 2.24.0

Signed-off-by: Lilis Iskandar <[email protected]>

28145e5fd9536f603083ab18931f091b20c2a594 authored over 2 years ago
sdl: initial support for SDL2 2.24.0

Signed-off-by: Lilis Iskandar <[email protected]>

253cca45719b63a5ac6d95716f3dd9649fb07876 authored over 2 years ago
sdl: provide backward-compatiblity to some structs and function when not using latest SDL2

Signed-off-by: Lilis Iskandar <[email protected]>

7625d405adcfeb30b37c1d0628481dfdd95bd27b authored over 2 years ago
.github/workflows: update test-build.yml to run on pull requests too

Signed-off-by: Lilis Iskandar <[email protected]>

494603bc5b772e84af53fea214efbb17c920b50d authored over 2 years ago
sdl/log: add typedef for SDL_LogCategory when using SDL2 <= 2.0.10

Signed-off-by: Lilis Iskandar <[email protected]>

8545478f891a116af584d54ee44d7949bad3ada9 authored over 2 years ago
Remove c-wrapping of Events (#531)

* Updating functions to take the enum type

* Remove c-wrapping of Events
Start of addressing...

1aaca478b312bea92192d243d7f2c19a1369fc14 authored over 2 years ago
.github/workflows: remove SDL2_gfx test build as the download link has expired certificate

Signed-off-by: Lilis Iskandar <[email protected]>

e839227e7b90fbd9b0d1da3e3cfa967e891c5370 authored over 2 years ago
Update requirements in README

Signed-off-by: Lilis Iskandar <[email protected]>

25e76c38fddd1e3da59f88e6ecafd0b193eea95e authored over 2 years ago
Updating functions to take the enum type (#528)

Co-authored-by: Allen Ray <[email protected]>

0fb7f6aec71824dcb999144b48c3c585c052f0c7 authored over 2 years ago
Add Renderer.IsClipEnabled for SDL_RenderIsClipEnabled (#529)

Co-authored-by: Allen Ray <[email protected]>

294e3cd9e6d16079cc816406cfcabcbff78972a8 authored over 2 years ago
Update README.md

Signed-off-by: Lilis Iskandar <[email protected]>

d3e85586f0cd27f0db0dc3db1a2a708570d13ccb authored over 2 years ago
sdl/gamecontroller: fix duplicate declaration of SDL_SensorType

Signed-off-by: Lilis Iskandar <[email protected]>

0a1c48d0d435c4152d73a8e3f5e6cbdcd007115c authored over 2 years ago
sdl/keyboard: fix build failing on SDL older than 2.0.22

Signed-off-by: Lilis Iskandar <[email protected]>

92f9fba990483fac0924f54a1bd63613b8b466e9 authored over 2 years ago
sdl/events: fix typo of SDL_TEXTEDITING_EXT

Signed-off-by: Lilis Iskandar <[email protected]>

90f9bdf6d90f53caa745ff5647726582be87e8cc authored over 2 years ago
sdl/hints: add missing hint constants for SDL 2.0.22

Signed-off-by: Lilis Iskandar <[email protected]>

ca0f994b21359a38080bc53d86790090ac3445d1 authored over 2 years ago
sdl/gamecontroller: define SDL_SensorType enum to fix build on older SDL2 such as version 2.0.8

Signed-off-by: Lilis Iskandar <[email protected]>

030c171f2f6950f54aae8c3415392697cc1891a9 authored over 2 years ago
sdl: fix SensorType constants (#524)

This commit fixes the sdl.SensorType constants. Previously, they we're
all equal to -1.

7b30548622fdca9d00dcc19d88a0689a0483627b authored over 2 years ago
Set up Github Actions matrix for older SDL2 versions

Signed-off-by: Lilis Iskandar <[email protected]>

249556cae32db3dc07681fc7bbae4bb5530ea366 authored over 2 years ago
Update status badge link from Travis CI to Github Actions

Signed-off-by: Lilis Iskandar <[email protected]>

db23f462d25f9bb813171eff82a4da30e1a6c819 authored over 2 years ago
Remove .travis.yml

Signed-off-by: Lilis Iskandar <[email protected]>

508ff3a71e7cb70c5b17fa2c6d82e3e99441fdcd authored over 2 years ago
Update status badge in README.md

Signed-off-by: Lilis Iskandar <[email protected]>

58a23e79e040605133f320b729f6fbdc18b25b55 authored over 2 years ago
Set up Github Actions as alternative to Travis CI

Signed-off-by: Lilis Iskandar <[email protected]>

989e6a2d4acb5c5a288879a0bb860140c78a2a60 authored over 2 years ago
sdl: add support for SDL2 2.0.22

Signed-off-by: Lilis Iskandar <[email protected]>

8876723d62c5cb28733b08a9443b45a9ea0956be authored over 2 years ago
sdl/events: tidy up #ifdef checks

Signed-off-by: Lilis Iskandar <[email protected]>

d1a5d44135e37bf2ed3e94f7a6d49a697066092b authored over 2 years ago
render: group #pragma message warnings

Signed-off-by: Lilis Iskandar <[email protected]>

52789e38227cccfc054e4d5650059160720502f1 authored over 2 years ago
fix surface.Set() for pixel formats that have 8-bit channels

Signed-off-by: Lilis Iskandar <[email protected]>

dbebcb7e32a9262ab291160eed8bb359d4554550 authored over 2 years ago
enable printing of PixelFormat constants by creating their String() method using go generate

Signed-off-by: Lilis Iskandar <[email protected]>

fc95e973befecb18ad03f81b05d52d60ad8c75df authored over 2 years ago
run go generate in Travis CI

Signed-off-by: Lilis Iskandar <[email protected]>

d7a02b96dafc1bbc10e28c0539871feec9901fdc authored over 2 years ago
Fix my panic on (*Surface).Set() (#520)

Your color models return the color.Color implementation of type they are converting to. This con...

1002ad773acadca60d61a7228fbb9fbe85cba963 authored over 2 years ago
update README.md

Signed-off-by: Lilis Iskandar <[email protected]>

cc2213f00e0a17dd86a80e83e9e393b5af1de0d3 authored over 2 years ago
sdl/render: allow nil indices parameter in Renderer.RenderGeometry()

Signed-off-by: Lilis Iskandar <[email protected]>

e2d8a19aa6da95b1bc9e9befc7762e1966fafc70 authored almost 3 years ago
sdl/surface.go: Fix incorrect pixel color reading for RGB888 in Surface.At (#515)

* sdl: fixed incorrect color when getting at surface coord

* Replace switch statement with Ge...

d887ff1d65283d4d2a49fa83e31f5d0b7494d62d authored almost 3 years ago
Prevent system_linux.go from compiling for android (#512)

* Prevent system_linux.go from compiling for android

The problem is described here https://gr...

352c481b896426ea597f2e263c32e53f5abc2bbf authored almost 3 years ago
Added missing #endif to system_android.go (#511)

Since it does not compile currently:

../../../../go/pkg/mod/github.com/veandco/[email protected]/...

588e25a37664aa16823ffc459162d35c847ac0bb authored almost 3 years ago
sdl/render: Fix naked return value assignments in `RenderWindowToLogical` and `RenderLogicalToWindow` (#508)

* sdl/render: fix the return assignments in `RenderWindowToLogical`

* sdl/render: fix the ret...

f3096ef31f925f9bde6e8ed9d17760dacb222e4f authored almost 3 years ago
Update Travis CI to use SDL2_ttf 2.0.18

Signed-off-by: Lilis Iskandar <[email protected]>

cbd8277c0645376846d671cac790eede53137210 authored about 3 years ago
ttf: fix ByteSwappedUNICODE() build error on SDL2_ttf 2.0.18

This adds compatibility function so the build works on SDL2_ttf 2.0.18 and
older SDL2_ttf.

Sign...

5855a0952928a5c793ad813ef2f4128ba9d93234 authored about 3 years ago
Update Travis CI configuration to use SDL2 2.0.20

Signed-off-by: Lilis Iskandar <[email protected]>

930812967d04560f4ee4d9b0af2eb8aebd4c9f38 authored about 3 years ago
sdl/hints: add SDL_HINT_RENDER_LINE_METHOD introduced in SDL2 2.0.20

Signed-off-by: Lilis Iskandar <[email protected]>

0c9de431dc5f88c4806de5c9703c17ef685cb61d authored about 3 years ago
sdl/video: fix build failure on Windows 10 due to mismatching type casting inside GetICCProfile()

Signed-off-by: Lilis Iskandar <[email protected]>

3715c509bacd9f0f0a3c71fe2549428f8114db97 authored about 3 years ago
sdl/render: fix RenderGeometryRaw() to work on SDL2 2.0.18 and other versions such as SDL2 2.0.20

Because the API for SDL_RenderGeometryRaw() changed after it was first introduced in SDL2 2.0.18...

d2b1a704627c80776f3621e6dafa41382389112c authored about 3 years ago
Fix build failure on Linux when using slightly older SDL2 like 2.0.16

Signed-off-by: Lilis Iskandar <[email protected]>

ed2a24577baa779c680e9e427bc4bc6f25567efa authored about 3 years ago
Update Travis CI link in README.md

Signed-off-by: Lilis Iskandar <[email protected]>

1a9f5da2daeea0e77e63491abe188d9bd1189266 authored about 3 years ago
Add SDL2 2.0.18 support

Signed-off-by: Lilis Iskandar <[email protected]>

c3f2b0ca6e01a8f0b59a7136175c4d1e20aba3a4 authored about 3 years ago
sdl/render: fix broken build on older SDL2

Signed-off-by: Lilis Iskandar <[email protected]>

93229da6a7050d45afda7b7d7068a4c5eaa00f40 authored over 3 years ago
sdl/video: Add placeholder SDL_FlashOperation enum when using SDL2 older than 2.0.16

Signed-off-by: Lilis Iskandar <[email protected]>

0abc017f41d3daacca87cef4f36cbab8a95e1b14 authored over 3 years ago
sdl/system: Fix Windows-specific bindings to SDL2 2.0.16

Signed-off-by: Lilis Iskandar <[email protected]>

f79ceec3454b67566bc898909f529fa576cf8cd8 authored over 3 years ago
Update bindings to support SDL2 2.0.16 thought platform-specific bindings may need more work and testing

Signed-off-by: Lilis Iskandar <[email protected]>

bc2029833344dd2a2039f773ebb71bfb72c5ff89 authored over 3 years ago
Add HDC & hInstance to windows SysWMinfo struct (#494)

https://github.com/libsdl-org/SDL/blob/main/include/SDL_syswm.h#L231 SDL
includes HWND, HDC, an...

b91317170ac26c513403bdb9c34375ad0eb8f52b authored over 3 years ago
Update Travis CI to use Go 1.13.15 and latest SDL2 packages

Signed-off-by: Lilis Iskandar <[email protected]>

44caa4352678f167f12a491e2647c017de0893ae authored over 3 years ago
Update README with correct -ldflags value when building on Windows without Command Prompt window

Signed-off-by: Lilis Iskandar <[email protected]>

325aa09d085e23bf841b762635c31b708fe37b88 authored over 3 years ago
Update Travis CI to use Ubuntu 20.04 LTS

Signed-off-by: Lilis Iskandar <[email protected]>

799f4fb5d85db9cf91b505061d99358174c246c8 authored over 3 years ago
Update README.md with information on how to hide Command Prompt window when running statically-compiled program on Windows

Signed-off-by: Lilis Iskandar <[email protected]>

1e937c73fd1a7d6a65171788a1e04416be3ae301 authored over 3 years ago
Don't use -mwindows flag when using static linking on Windows (#491)

* static: remove -Wl,--no-undefined from ldflags. Go 1.17 will have support for linking with LLV...

e39ee60cd1ba5433f29875642fec4b417b66411e authored over 3 years ago
sdl/version: update GetRevisionNumber() to show deprecation warning on staticcheck only when users use it

Signed-off-by: Lilis Iskandar <[email protected]>

15d46601d1b771041f993357a3d308649d1cf575 authored over 3 years ago
sdl/hints: update SDL_HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT to be compatible with SDL2 2.0.16

Signed-off-by: Lilis Iskandar <[email protected]>

c3f299f628ff7a47b271241de1e2a4b091673471 authored over 3 years ago
ttf: add Font.RenderGlyph* methods

Signed-off-by: Lilis Iskandar <[email protected]>

0f56bbcebb54c89e3d06321eb77c6d566b4f7cf7 authored over 3 years ago
static: remove -Wl,--no-undefined from ldflags. Go 1.17 will have support for linking with LLVM lld, but LLD its self doesn't accept --no-undefined (#481)

98538b5f27e1ae69b393a09b80d95a37e64a6013 authored over 3 years ago
sdl/surface: fix []byte length calculation in Pixels() to use pitch multiplied by height

Signed-off-by: Lilis Iskandar <[email protected]>

7af0886c9ef14053e852e05b2b198d6a2ae2600f authored over 3 years ago
.go-sdl2-libs: Update libSDL2_darwin_amd64.a with macOS 10.10 SDK

Signed-off-by: Lilis Iskandar <[email protected]>

c3fc9cecf2388316154a48fc041cf054f92fa5de authored almost 4 years ago