Horde3D http://horde3d.org/forums/ |
|
Bindings for D http://horde3d.org/forums/viewtopic.php?f=1&t=180 |
Page 1 of 2 |
Author: | Dima-san [ 21.10.2007, 19:29 ] |
Post subject: | Bindings for D |
Hi! First of all, thanks for the engine. It's neat and sweet . Recently, I've made bindings for the D programming language. D isn't capable of interfacing C++ directly, but interfacing C is simple. So the only thing bindings lack is NodeAttachment class. Of course, I could write glue that would expose C interface instead of C++ class, but maybe there's a better solution? I wonder where should I submit my work? PS: If you're curious what the heck D is, please check this out. |
Author: | marciano [ 22.10.2007, 18:04 ] |
Post subject: | |
Hi Dima-san, thanks, great to see that there is a port for another language! I have for the first time heard of D some time ago and must say that it looks quite interesting. But of course it will still take some time to evolve and get popular. The small NodeAttachment class is something that breaks the interface a bit. I have some ideas to make this functionality also available with the pure C interface so I think it is better to wait until I have the new functions or someone really needs it. Until now people have usually hosted their projects themselves. If that's not possible in your case you could send me the files and I will upload them to my server. An attachment function for the forums would probably be a nice solution for the future. This should be included in the hopefully soon to be released phpbb 3. |
Author: | marciano [ 29.10.2007, 01:57 ] |
Post subject: | |
The D bindings are available from this link: http://www.nextgen-engine.net/community/D_bindings.zip Thanks again for contributing this! |
Author: | Codepoet [ 14.04.2008, 16:28 ] |
Post subject: | Re: Bindings for D |
Hi, I've updated / rewritten the D bindings for Horde3D 1.0.0 Beta1. You can download them under https://server1.noeding.net/d/horde3d-D_1.0.0_Beta1.zip In the zip archive are:
I have tested it under Linux (64bit) using rebuild and gdc. I hope that it just works under Windows. For Linux you have to make three small changes to Horde3D: Code: --- Source/Shared/utPlatform.h.old 2008-04-14 17:13:25.000000000 +0200 +++ Source/Shared/utPlatform.h 2008-04-14 17:12:29.000000000 +0200 @@ -43,7 +43,7 @@ # ifdef PLATFORM_WIN # define DLLEXP extern "C" __declspec( dllexport ) # else -# define DLLEXP +# define DLLEXP extern "C" # endif #endif Code: --- Bindings/C++/Horde3D.h.old 2008-04-14 17:15:39.000000000 +0200 +++ Bindings/C++/Horde3D.h 2008-04-14 01:16:58.000000000 +0200 @@ -30,7 +30,7 @@ # if defined( WIN32 ) || defined( _WINDOWS ) # define DLL extern "C" __declspec( dllimport ) # else -# define DLL +# define DLL extern "C" # endif #endif Code: --- Bindings/C++/Horde3DUtils.h.old 2008-04-14 17:15:44.000000000 +0200 +++ Bindings/C++/Horde3DUtils.h 2008-04-14 17:15:17.000000000 +0200 @@ -32,7 +32,7 @@ # if defined( WIN32 ) || defined( _WINDOWS ) # define DLL extern "C" __declspec( dllimport ) # else -# define DLL +# define DLL extern "C" # endif #endif These patches just enable extern "C" linking under Linux. |
Author: | swiftcoder [ 14.04.2008, 16:36 ] |
Post subject: | Re: Bindings for D |
Codepoet wrote: These patches just enable extern "C" linking under Linux. Were there no troubles with that? We had some C++ only enum declarations a while ago.Good to see the D support being maintained, I have always been fond of D. |
Author: | Codepoet [ 14.04.2008, 17:53 ] |
Post subject: | Re: Bindings for D |
swiftcoder wrote: Codepoet wrote: These patches just enable extern "C" linking under Linux. Were there no troubles with that? We had some C++ only enum declarations a while ago.Good to see the D support being maintained, I have always been fond of D. No problems anywhere, under Windows it's extern "C" __declpsec(dllexport). That's in regard to mangling equivalent to only extern "C" on Linux. |
Author: | xho5 [ 06.10.2008, 19:09 ] |
Post subject: | Re: Bindings for D |
Hello, how do I compile the knight sample with Horde3D 1.0 Beta 2? Sorry, but I don't get it :s Cheers, Fred |
Author: | Codepoet [ 06.10.2008, 20:06 ] |
Post subject: | Re: Bindings for D |
I have not yet updated the D bindings for the Beta 2 release. Have you done this yourself? There is a python script to create the new bindings. There were some changes which broke the API in the beta 2 release. You would have to fix those, too. Just use the C++ version as a reference. I'm quite busy with other issues, so I don't know when I'll have time to do the updates myself... But if you have more concrete questions I might be able to help you. |
Author: | Volker [ 22.10.2008, 10:44 ] |
Post subject: | Re: Bindings for D |
Maybe we can add the D bindings to the community branch as well. If the bindings are maintained and tested by someone we can also offer them on the SourceForge page. But to do this we should ensure that they work without problems. |
Author: | Codepoet [ 22.10.2008, 12:17 ] |
Post subject: | Re: Bindings for D |
Hmm, probably it would be better if we look for another maintainer since I don't use D anymore: Primary reasons include that I just can't get half the code online to compile due to TWO incompatible "standard" libraries and some compiler problems. Until D 2.0 is stable and has ONE std lib I'll stop updating this binding. If anyone wants to take over maintenance and has questions just ask me. Here are updated bindings for the Beta 2, but I didn't try them: http://odefu.googlecode.com/svn/trunk/DerelictHorde3D/ Maybe just use Python As long as you don't do any large processing it should be just as fast as the D (or C/C++) version. |
Author: | Codepoet [ 25.10.2008, 22:26 ] |
Post subject: | Re: Bindings for D |
Changed my mind... Bindings + D sample are now included in community svn and tested using the knight sample. |
Author: | Volker [ 26.10.2008, 09:12 ] |
Post subject: | Re: Bindings for D |
Thanks a lot! |
Author: | HaikuBot [ 04.06.2009, 06:43 ] | ||
Post subject: | Re: Bindings for D | ||
Here chicago sample
|
Author: | HaikuBot [ 01.09.2009, 12:10 ] | ||
Post subject: | Re: Bindings for D | ||
Hello fellows, Here updated bindings for Horde3D Beta 4.
|
Author: | shd [ 15.09.2010, 18:35 ] |
Post subject: | Re: Bindings for D |
1. I've updated bindings to Horde3D 1.0.0 Beta4 for D2.0 Phobos and Derelict 2. To use it you need throw in `DerelictH3D` directory to Derelict2 source folder and compile with 'make -fwin32.mak'. Yes, I've done it only for Windows. Still might be helpful, not much work to update Makefile for Linux. Attachment: 2. I've updated someones port of `Chicago` H3D1.0.0Beta 4 example to D2 as well, so if You're interested. I'm not sure if it's proper version, had some mess so I won't give you a guarantee - You need to check it on Your own but still less work (if any) than updating. Hint: I can't remember what's about Code: Horde3DUtils.h3dutLoadResourcesFromDisk(cast(char*)("../Content")); in crowd.d. I wont make it myself anymore since I'll probably try to interface crystalspace with D.Attachment: Everything was working properly so, cheers. |
Page 1 of 2 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |