GithubHelp home page GithubHelp logo

sethballantyne / sdl_image-1.2.12-for-d Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

SDL_image 1.2.12 binding for the D progamming language.

D 100.00%
sdl dlang hacktheplanet gamedev dlang2 sdl-image

sdl_image-1.2.12-for-d's Introduction

SDL_image 1.2.12 for D
Created by: Seth Ballantyne  <[email protected]>

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.

sdl_image-1.2.12-for-d's People

Contributors

sethballantyne avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.