Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - krzat

Pages: 1 ... 6 7 [8]
106
D / Re: OO Wrapper
« on: October 13, 2012, 10:59:55 am »
I have:
1. used gcc to generate processed C header
2. cleaned that file, so htod could work
3. used htod to convert C header to D file
4. used my own program to:
 a. fix compiler errors of D file(htod is a bit outdated)
 b. remove comments and empty lines
 c. remove sf prefix from struct names
 d. collect every opaque struct
 e. collect every function with name like someOpaqueStruct_someFunc(T* ptr, ...);
 f. in another file: generate class and methods in it for every collected struct
5. added some manual fixes

I have updated the wrapper: added network classes, and proper return types for functions (becouse auto breaks Mono-D autocompletion).

107
D / OO Wrapper
« on: October 12, 2012, 10:09:05 am »
Github site: https://github.com/krzat/SFML-D
Ready to use package(windows): https://github.com/downloads/krzat/SFML-D/working_sample.7z

I have tested it on Windows(DMD and GDC), but it may also work on other platforms. To see how it works, check  the test.d file. I have also attached .bat scripts for easy compilation (GDC or DMD required).

Most of this code is autogenerated, so expect some bugs.

EDIT: new version, added network and removed auto functions
EDIT2: uploaded to git, and separated modules

Pages: 1 ... 6 7 [8]