Skip to content

sethballantyne/SDL_image-1.2.12-for-D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL_image 1.2.12 for D
Created by: Seth Ballantyne  <seth.ballantyne@gmail.com>

This is a D binding to SDL_image I've created for my own use. 
I've made it publicly available on the off-chance someone else 
might find it useful. This has only been tested on Windows. You'll 
also need the SDL binding at https://github.com/sethballantyne/SDL-1.2.15-for-D,
along with SDL_image.lib; grab it at /lib/x86/SDL.lib. 32-bit only at 
this time. If you want to convert your own for any reason, see below.

to use the SDL_image binding in your project:
dmd <your source files> SDL.d SDL_image.d -c
link <your object files> SDL.obj SDL_image.obj SDL.lib SDL_image.lib

to avoid the command prompt window appearing when the resulting binary is 
executed, add /subsystem:windows to the link command line:

link <your object files> SDL.obj SDL_image.obj SDL.lib SDL_image.lib /subsystem:windows

the 32-bit VC++ .lib file was converted to OMF format using comf2omf
that comes with the free version of the Borland compiler. You can find it on 
the Embarcadero website or easier yet, search archive.org; you'll want 
version 5.5. Digital Mars has their own but I've never used it. 

coff2omf SDL_image.lib SDL_image_converted.lib

it'll spit out a converted library as SDL_image_converted.lib.

you can find a converted version of the 32-bit lib for your use at 
/lib/x86/SDL_image.lib.

The code is released under the MIT license; have fun.

About

SDL_image 1.2.12 binding for the D progamming language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages