www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - bindbc-sdl Updates

reply Mike Parker <aldacron gmail.com> writes:
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.
Apr 07 2020
next sibling parent reply aberba <karabutaworld gmail.com> writes:
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/)?
Apr 10 2020
parent reply Mike Parker <aldacron gmail.com> writes:
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.
Apr 10 2020
parent aberba <karabutaworld gmail.com> writes:
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!!
Apr 14 2020
prev sibling parent reply Luis <luis.panadero gmail.com> writes:
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
Apr 15 2020
parent reply Mike Parker <aldacron gmail.com> writes:
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.
Apr 15 2020
parent reply Luis <luis.panadero gmail.com> writes:
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.
Apr 16 2020
parent reply Mike Parker <aldacron gmail.com> writes:
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.
Apr 16 2020
parent reply aberba <karabutaworld gmail.com> writes:
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.
Apr 18 2020
next sibling parent JN <666total wp.pl> writes:
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.
Apr 18 2020
prev sibling parent Mike Parker <aldacron gmail.com> writes:
On Saturday, 18 April 2020 at 15:31:02 UTC, aberba wrote:

 There's this level of convenience that is triggered when you 
 see a sample demo. It seems some library authors don't get it.
loadSDL(); That's it. It's in the readme.
Apr 18 2020