Library request thread

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 22 08:11:38 PDT 2014


On Wednesday, 22 October 2014 at 08:13:20 UTC, ponce wrote:
> 1. A windowing library to replace some of SDL usage.

My simpledisplay.d is aimed to do some of this.
https://github.com/adamdruppe/arsd

It also depends on my color.d, but none of the other files. It 
also doesn't depend on Phobos, which is nice for doing quick 
drawing stuff with smaller executables - about 200 KB hello world 
gui on Windows.

The png.d and bmp.d in there can do some interop with those file 
formats too, making an image viewer is pretty easy to do with all 
them.

Uses Win32 GDI and Xlib for the backend. The Cocoa code is 
totally unmaintained and won't work, but you can run X on Mac too.

this example from my book shows how you can do some stuff with 
it: http://arsdnet.net/dcode/book/chapter_12/09/

and open gl 1.1 stuff with it: 
http://arsdnet.net/dcode/book/chapter_12/10/

And the file minigui.d in my repo shows some basic widget 
interaction too, like creating buttons on Windows.


More information about the Digitalmars-d mailing list