Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 4:27 PM, idsize wrote: On Sunday, 12 March 2023 at 02:24:31 UTC, Richard (Rikki) Andrew Cattermole wrote: If you add the appropriate versions and copy the files to your project directory (including bindbc-loader) that should work however as long as you compile it in. I've never

Re: Using bindbc-sdl with D

2023-03-11 Thread idsize via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:24:31 UTC, Richard (Rikki) Andrew Cattermole wrote: If you add the appropriate versions and copy the files to your project directory (including bindbc-loader) that should work however as long as you compile it in. I've never used a package manager before so the e

Re: Using bindbc-sdl with D

2023-03-11 Thread idsize via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:52:27 UTC, ryuukk_ wrote: On Sunday, 12 March 2023 at 02:12:45 UTC, idsize wrote: [...] Hello, and welcome! Looks like the new version of that library is broken, i am having the same issue [...] Thanks! It compiled and ran your example successfully.

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 4:01 PM, ryuukk_ wrote: So this is a dub issue? Nope, dub is doing everything ok, this is for ImportC. It is able to find the linker, why can't it find the preprocessor? Its probably not installed. We don't ship a C toolchain, it uses the system one (MSVC, which you would nor

Re: Using bindbc-sdl with D

2023-03-11 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:59:20 UTC, Richard (Rikki) Andrew Cattermole wrote: On 12/03/2023 3:24 PM, Richard (Rikki) Andrew Cattermole wrote: But ugh that error looks weird. That would imply its trying to run the C preprocessor for ImportC. That does not sound right at all, I don't see any

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 3:24 PM, Richard (Rikki) Andrew Cattermole wrote: But ugh that error looks weird. That would imply its trying to run the C preprocessor for ImportC. That does not sound right at all, I don't see any C headers/code in bindbc-sdl repo (not that it needs it). Gonna need to see the en

Re: Using bindbc-sdl with D

2023-03-11 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:12:45 UTC, idsize wrote: I started learning D a few weeks ago and am enjoying it so far. I would like to use SDL with D and found bindbc-sdl, but I cannot figure out how to make it work. From my understanding, I'll need to use 'dub fetch bindbc-sdl

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 3:12 PM, idsize wrote: I started learning D a few weeks ago and am enjoying it so far. I would like to use SDL with D and found bindbc-sdl, but I cannot figure out how to make it work. Welcome! From my understanding, I'll need to use 'dub fetch bindbc-sdl' to d

Using bindbc-sdl with D

2023-03-11 Thread idsize via Digitalmars-d-learn
I started learning D a few weeks ago and am enjoying it so far. I would like to use SDL with D and found bindbc-sdl, but I cannot figure out how to make it work. From my understanding, I'll need to use 'dub fetch bindbc-sdl' to download it, and then run 'dub build bin

Re: SDL with D

2011-07-12 Thread Dainius (GreatEmerald)
According to the Derelict page, there already are unofficial bindings. But I guess they wouldn't work with Derelict2 anyway.

Re: SDL with D

2011-07-12 Thread Mike Parker
On 7/12/2011 4:21 PM, Dainius (GreatEmerald) wrote: I see. And what about Lua? I see lots and lots of different libraries for that on dsource, and there is even some support in Derelict as well. I assume that LuaD is the one in active development and most fitting for current D2? Derelict has no

Re: SDL with D

2011-07-12 Thread Dainius (GreatEmerald)
I see. And what about Lua? I see lots and lots of different libraries for that on dsource, and there is even some support in Derelict as well. I assume that LuaD is the one in active development and most fitting for current D2?

Re: SDL with D

2011-07-11 Thread Andrej Mitrovic
Derelict has an SDL binding, you should take a look at that. There's a D2 Derelict branch in svn. I've used Derelict with OpenGL, works ok. I haven't tested SDL though. See http://www.dsource.org/projects/derelict.

SDL with D

2011-07-11 Thread Dainius (GreatEmerald)
Can D interface with SDL directly? Right now the program I'm writing uses C as a sort of a wrapper for D and SDL to communicate, and I guess it would be simpler, cleaner and more reliable if D could call SDL functions directly. If it works, is there anything I should keep in mind about it?