View previous topic :: View next topic |
Author |
Message |
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sat Feb 18, 2012 9:39 pm Post subject: DerelictSDL2Image |
|
|
Looking at the SDL mercurial repository, it appears that the satellite libraries have been modified to compile with SDL2, but the interfaces have not changed. So porting the Derelict bindings for them over to Derelict3 should be painless.
To that end, I've ported DerelictSDLImage over, primarily since a request for it was made. Here's how to use it:
1) When you compile and run derelict.d, DerelictSDL2Image will be compiled as part of the DerelictSDL2 library. It is not a separate lib, and there is no command line argument for it supported in the build script.
2) import derelict.sdl2.image;
3) DerelictSDL2Image.load();
In order for this to work, you will need to check out and build a fresh copy of SDL_image (the repo is not named SDL2_image) from the SDL Mercurial repository and compile it against the SDL2 source. There is a snapshot of SDL2 available for download, but not of SDL2_Image.
I've built SDL2 on both Windows (with MingW/MSYS) and Linux (which I booted into last night for the first time in... a very, very long while). I haven't attempted SDL2_image yet. So I can tell you that the new binding compiles, but I don't know for sure if it works. I see no reason why it shouldn't, since the interface hasn't changed. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sun Feb 19, 2012 4:40 am Post subject: |
|
|
I found no image.d file in the last repo. Or did i get you wrong? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sun Feb 19, 2012 7:21 am Post subject: |
|
|
Thanks for doing that so fast. ![Smile](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|