Jump to page: 1 2
Thread overview
bindbc-sdl Updates
Apr 08, 2020
Mike Parker
Apr 10, 2020
aberba
Apr 10, 2020
Mike Parker
Apr 14, 2020
aberba
Apr 15, 2020
Luis
Apr 15, 2020
Mike Parker
Apr 16, 2020
Luis
Apr 17, 2020
Mike Parker
Apr 18, 2020
aberba
Apr 18, 2020
JN
Apr 19, 2020
Mike Parker
April 08, 2020
I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following:

SDL 2.0.12
SDL_image 2.0.5
SDL_mixer 2.0.4

This is available in bindbc-sdl 0.16.0:

http://bindbc-sdl.dub.pm/

A few notes:

The SDL maintainers have moved to a system of labeling public releases with even patch levels and development releases with odd patch levels. SDL 2.0.12 is the first release of SDL under that system. The same goes for SDL_mixer 2.0.4. SDL_image 2.0.5 was released before it took effect.

There is no difference in the public API of SDL_image versions 2.0.2, 2.0.3, 2.0.4, and 2.0.5, other than the value of the SDL_IMAGE_PATCHLEVEL constant.

SDL_mixer 2.0.4 added support for OPUS files. The only API changes aside from the patchlevel constant are a couple of new values for the Mix_InitFlags and Mix_MusicType enums.
April 10, 2020
On Wednesday, 8 April 2020 at 06:32:39 UTC, Mike Parker wrote:
> I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following:
>
> [...]

Mike have you considered a binding to a common tool like SFML (https://www.sfml-dev.org/)?
April 10, 2020
On Friday, 10 April 2020 at 14:53:25 UTC, aberba wrote:
> On Wednesday, 8 April 2020 at 06:32:39 UTC, Mike Parker wrote:
>> I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following:
>>
>> [...]
>
> Mike have you considered a binding to a common tool like SFML (https://www.sfml-dev.org/)?

Yes, which is why I have an SFML binding in Derelict. I’ll be porting it over to BindBC soonish.
April 14, 2020
On Friday, 10 April 2020 at 16:10:56 UTC, Mike Parker wrote:
> On Friday, 10 April 2020 at 14:53:25 UTC, aberba wrote:
>> On Wednesday, 8 April 2020 at 06:32:39 UTC, Mike Parker wrote:
>>> I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following:
>>>
>>> [...]
>>
>> Mike have you considered a binding to a common tool like SFML (https://www.sfml-dev.org/)?
>
> Yes, which is why I have an SFML binding in Derelict. I’ll be porting it over to BindBC soonish.

🙏️ Thank you!!
April 15, 2020
On Wednesday, 8 April 2020 at 06:32:39 UTC, Mike Parker wrote:
> I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following:
>
> SDL 2.0.12
> SDL_image 2.0.5
> SDL_mixer 2.0.4
>
> This is available in bindbc-sdl 0.16.0:
>
> http://bindbc-sdl.dub.pm/
>

There isn't a "hello world" example with bindbc-sdl ? Would very usefull
April 15, 2020
On Wednesday, 15 April 2020 at 21:54:16 UTC, Luis wrote:
> 
>
> There isn't a "hello world" example with bindbc-sdl ? Would very usefull

Everything you need to know that's specfic to the binding is in the readme.
April 16, 2020
On Wednesday, 15 April 2020 at 22:19:06 UTC, Mike Parker wrote:
> On Wednesday, 15 April 2020 at 21:54:16 UTC, Luis wrote:
>> 
>>
>> There isn't a "hello world" example with bindbc-sdl ? Would very usefull
>
> Everything you need to know that's specfic to the binding is in the readme.

I was asking something like this : https://github.com/Zardoz89/dlang-bindbc-sdl-example1

Yeah, anybody could do this before reading SDL2 documentation, examining a few SDL2 examples on C/C++ and D (outdated derelict examples that only shows a translucent window). This take me two afternoons and was something very dumb.

This kind of lack of examples or documentation, not helps to make D more popular.
April 17, 2020
On Thursday, 16 April 2020 at 18:55:21 UTC, Luis wrote:
> On Wednesday, 15 April 2020 at 22:19:06 UTC, Mike Parker wrote:
>> On Wednesday, 15 April 2020 at 21:54:16 UTC, Luis wrote:
>>> 
>>>
>>> There isn't a "hello world" example with bindbc-sdl ? Would very usefull
>>
>> Everything you need to know that's specfic to the binding is in the readme.
>
> I was asking something like this : https://github.com/Zardoz89/dlang-bindbc-sdl-example1
>
> Yeah, anybody could do this before reading SDL2 documentation, examining a few SDL2 examples on C/C++ and D (outdated derelict examples that only shows a translucent window). This take me two afternoons and was something very dumb.
>
> This kind of lack of examples or documentation, not helps to make D more popular.

I disagree. There are numerous examples of SDL on the internet. There are sites full of SDL tutorials. bindbc-sdl is a binding. It doesn't change the API. I'm not going to write example programs for every library I create bindings for when plenty of examples exist.
April 18, 2020
On Friday, 17 April 2020 at 03:48:09 UTC, Mike Parker wrote:
> On Thursday, 16 April 2020 at 18:55:21 UTC, Luis wrote:
>> [...]
>
> I disagree. There are numerous examples of SDL on the internet. There are sites full of SDL tutorials. bindbc-sdl is a binding. It doesn't change the API. I'm not going to write example programs for every library I create bindings for when plenty of examples exist.

There's this level of convenience that is triggered when you see a sample demo. It seems some library authors don't get it.
April 18, 2020
On Saturday, 18 April 2020 at 15:31:02 UTC, aberba wrote:
> On Friday, 17 April 2020 at 03:48:09 UTC, Mike Parker wrote:
>> On Thursday, 16 April 2020 at 18:55:21 UTC, Luis wrote:
>>> [...]
>>
>> I disagree. There are numerous examples of SDL on the internet. There are sites full of SDL tutorials. bindbc-sdl is a binding. It doesn't change the API. I'm not going to write example programs for every library I create bindings for when plenty of examples exist.
>
> There's this level of convenience that is triggered when you see a sample demo. It seems some library authors don't get it.

For libraries, absolutely.

For C bindings - no. Just remember the special things like library loading, and for the rest just copy a random C/C++ example.
« First   ‹ Prev
1 2