brson / rust-sdl

SDL bindings for Rust
MIT License
179 stars 52 forks source link

Migrate to SDL2? #84

Closed itdaniher closed 10 years ago

itdaniher commented 11 years ago

http://wiki.libsdl.org/moin.fcg/MigrationGuide

http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html

Better cross-platform support, better accelerated 2d graphics, and improvements to threading:

There's no SDL_main! Well, okay, there is, and it now does what it was always meant to: be a small piece of code that hides the difference between main() and WinMain() on Windows. There's no initialization code in it, and it's completely optional. This means you can use SDL without it taking over your mainline, which is nice for plugins that use SDL, or scripting languages with an SDL module. All the stuff you'd want the 1.2 SDL_main for is now in SDL_Init() where it belongs.

AngryLawyer commented 11 years ago

Sounds like it will finally deal with our problems of getting it to stick to the right thread.

AngryLawyer commented 11 years ago

Things to consider: Should it be a separate repo? Should we support both versions? I'd like to make sure I know everyone else's opinion before we make any drastic steps.

itdaniher commented 11 years ago

Things to consider: Should it be a separate repo? Should we support both versions? I'd like to make sure I know everyone else's opinion before we make any drastic steps.

Separate repo? More than likely.

Support both versions? I'm all for dropping support for V1.2 iff V2.0's bindings are feature complete against the core components of V1.2 - 2d canvases, input events, window control, etc

AngryLawyer commented 11 years ago

Welp, I think I'm going to be bold and make the Rust-SDL2 repo and start on this shortly.

Here we go.

https://github.com/AngryLawyer/rust-sdl2

itdaniher commented 10 years ago

as rust-sdl2 has hit something close to feature complete, content to close the issue.

AngryLawyer commented 10 years ago

Well, it vaguely works :P Still lots of stuff to integrate