www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - A tutorial teaching the basics about multimedia with the arsd library

reply Murilo <murilomiranda92 hotmail.com> writes:
Hi everyone, I am writing a tutorial teaching the basics about 
multimedia programming using the arsd library. This is a library 
all D programmers should have since it is very useful and easy. 
In this tutorial I will teach in a fun and easy way how to use it 
for GUIs, image displays, games, etc...

Here is the GitHub link: 
https://github.com/MuriloMir/arsd_multimedia_tutorial
And please join the official facebook Dlang group: 
https://www.facebook.com/groups/ProgrammingInD/
Jun 30 2019
next sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Sunday, 30 June 2019 at 23:46:27 UTC, Murilo wrote:
 Hi everyone, I am writing a tutorial teaching the basics about 
 multimedia programming using the arsd library. This is a 
 library all D programmers should have since it is very useful 
 and easy. In this tutorial I will teach in a fun and easy way 
 how to use it for GUIs, image displays, games, etc...

 Here is the GitHub link: 
 https://github.com/MuriloMir/arsd_multimedia_tutorial
 And please join the official facebook Dlang group: 
 https://www.facebook.com/groups/ProgrammingInD/
Hi, please consider using Dub, this will reduce a lot of complexity of the tutorial. Everything you need to run this arsd based application is just use 1 command: dub app.d ``` /+ dub.sdl: name "application" dependency "arsd-official:cgi" version="3.0.1" subConfiguration "arsd-official:cgi" "embedded_httpd" +/ import arsd.cgi; void main() { cgiMainImpl!(handle, Cgi, defaultMaxContentLength)(["--port", "5000"]); } void handle(Cgi cgi) { cgi.setResponseStatus("204 No Content"); } ``` Kind regards André
Jun 30 2019
parent Murilo <murilomiranda92 hotmail.com> writes:
 please consider using Dub, this will reduce a lot of complexity 
 of the tutorial.
 Everything you need to run this arsd based application is just 
 use 1 command: dub app.d

 ```
 /+ dub.sdl:
     name "application"
     dependency "arsd-official:cgi" version="3.0.1"
     subConfiguration "arsd-official:cgi" "embedded_httpd"
 +/
Thanks for the feedback André(are you Brazilian too?) but the primary reason I chose this library is because it does NOT require a package manager at all and I think that makes it simpler.
Jul 01 2019
prev sibling next sibling parent reply Cym13 <cpicard openmailbox.org> writes:
On Sunday, 30 June 2019 at 23:46:27 UTC, Murilo wrote:
 Hi everyone, I am writing a tutorial teaching the basics about 
 multimedia programming using the arsd library. This is a 
 library all D programmers should have since it is very useful 
 and easy. In this tutorial I will teach in a fun and easy way 
 how to use it for GUIs, image displays, games, etc...

 Here is the GitHub link: 
 https://github.com/MuriloMir/arsd_multimedia_tutorial
 And please join the official facebook Dlang group: 
 https://www.facebook.com/groups/ProgrammingInD/
I really dislike that you use screenshots of code, it makes copy-pasting impossible. There are ways to produce pdfs with colored, copyable source code (like using RST for redaction then rst2pdf for production, but I'm not sure it'll be the easiest for you).
Jun 30 2019
next sibling parent Murilo <murilomiranda92 hotmail.com> writes:
 I really dislike that you use screenshots of code, it makes 
 copy-pasting impossible. There are ways to produce pdfs with 
 colored, copyable source code (like using RST for redaction 
 then rst2pdf for production, but I'm not sure it'll be the 
 easiest for you).
I will change that now. Thanks for the advice, it did not occur to me that copy-pasting was important because I always prefer typing the whole code in order to practice and learn better.
Jul 01 2019
prev sibling parent Murilo <murilomiranda92 hotmail.com> writes:
On Monday, 1 July 2019 at 05:34:06 UTC, Cym13 wrote:
 I really dislike that you use screenshots of code, it makes 
 copy-pasting impossible. There are ways to produce pdfs with 
 colored, copyable source code (like using RST for redaction 
 then rst2pdf for production, but I'm not sure it'll be the 
 easiest for you).
Hi Guys. I am nearly done with the tutorial and it is now very complete, it now teaches how to use the arsd library to draw all sorts of stuff and to receive mouse and keyboard input. I think you will like it. If you use it and like it please let me know because I would be very happy to see my work being spread. Cheers. Here is the GitHub page: https://github.com/MuriloMir/arsd_multimedia_tutorial And here is the official Dlang facebook page, please join: https://www.facebook.com/groups/ProgrammingInD/
Jul 31 2019
prev sibling parent reply angel <andrey.gelman gmail.com> writes:
On Sunday, 30 June 2019 at 23:46:27 UTC, Murilo wrote:
 Hi everyone, I am writing a tutorial teaching the basics about 
 multimedia programming using the arsd library. This is a 
 library all D programmers should have since it is very useful 
 and easy. In this tutorial I will teach in a fun and easy way 
 how to use it for GUIs, image displays, games, etc...

 Here is the GitHub link: 
 https://github.com/MuriloMir/arsd_multimedia_tutorial
 And please join the official facebook Dlang group: 
 https://www.facebook.com/groups/ProgrammingInD/
Very nice, thank you ! As has been pointed out by others, it would be great if code snippets could've been copyable.
Jun 30 2019
parent Murilo <murilomiranda92 hotmail.com> writes:
Guys, go check how it is now, I think it is now very good, it has 
several pages and several code examples(no screenshots).

https://github.com/MuriloMir/arsd_multimedia_tutorial
Jul 08 2019