veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

SdlSetTextureScaleMode #597

Closed clseibold closed 2 months ago

clseibold commented 2 months ago

SdlSetTextureScaleMode seems to be missing.

veeableful commented 2 months ago

Hi @clseibold, it should be available under sdl.Texture.SetScaleMode().

clseibold commented 2 months ago

Oh, ok. Thanks. I didn't check that. Sorry, I must have missed that. I guess I expected it as a method on the texture itself, or at sdl.SetTextureScaleMode().

clseibold commented 2 months ago

@veeableful I'm using the latest release of the library (0.4.38) and I am not getting any method for SetScaleMode().

clseibold commented 2 months ago

Looks like it's only in the 0.5 alpha versions. I'm getting other problems with the alpha versions so I'll just wait until 0.5 is officially released.

veeableful commented 2 months ago

Sorry about that @clseibold, would you be able to report the problems in v0.5.x?

clseibold commented 2 months ago

@veeableful Thanks.

It was mostly breaking API changes, some of which were a little unexpected. I think there was a problem with the Keyboard Events types that got fixed in the main branch, but it handn't been included in an alpha version yet. I don't mind changing my code for the new changes, I just didn't want to bother with it yet.

veeableful commented 2 months ago

Hi @clseibold, I see. I have tagged the latest commit with v0.5.0-alpha.5 in case you would like to try it out!