Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
dub run raylib-d:install solved the problem. Thanks

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 30 November 2024 at 02:16:35 UTC, Alain De Vos wrote: After installing raylib library on Debian , https://github.com/raysan5/raylib/releases Running "dub run" i get now the error : ``` dub run Fetching raylib-d 5.5.1 (getting selected version)... Performing "debug" build using /us

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 30 November 2024 at 01:28:44 UTC, Alain De Vos wrote: vscode no longer complains. But "dub run" gives, ``` dub run Starting Performing "debug" build using /usr/bin/dmd for x86_64. Up-to-date raylib-d 5.5.1: target for configuration [library] is up to date. Building my

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
After installing raylib library on Debian , https://github.com/raysan5/raylib/releases Running "dub run" i get now the error : ``` dub run Fetching raylib-d 5.5.1 (getting selected version)... Performing "debug" build using /usr/bin/gdc for x86_64. raylib-d 5.5.1: building configuration "librar

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
I see i don't have the raylib library installed. And there is none available on redcore-linux(a gentoo derivative). Gone try debian now.

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
vscode no longer complains. But "dub run" gives, ``` dub run Starting Performing "debug" build using /usr/bin/dmd for x86_64. Up-to-date raylib-d 5.5.1: target for configuration [library] is up to date. Building myprogram ~master: building configuration [application] Linking

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
On Friday, 29 November 2024 at 22:35:14 UTC, Steven Schveighoffer wrote: On Friday, 29 November 2024 at 22:02:23 UTC, Alain De Vos wrote: On Friday, 29 November 2024 at 21:37:48 UTC, Alain De Vos wrote: I can do "dub add raylib-d" but i have no clue to program a simple moving circle. Followin

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On Friday, 29 November 2024 at 22:02:23 UTC, Alain De Vos wrote: On Friday, 29 November 2024 at 21:37:48 UTC, Alain De Vos wrote: I can do "dub add raylib-d" but i have no clue to program a simple moving circle. Following program has an import error ```d import std.stdio: writeln; import ra

Re: raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
On Friday, 29 November 2024 at 21:37:48 UTC, Alain De Vos wrote: I can do "dub add raylib-d" but i have no clue to program a simple moving circle. Following program has an import error ``` import std.stdio: writeln; import raylib; //Error void main() { validateRaylibBinding();

raylib-d how to program a simple moving circle.

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
I can do "dub add raylib-d" but i have no clue to program a simple moving circle.

Re: Plot one pixel in blue on a canvas

2024-11-29 Thread Alain De Vos via Digitalmars-d-learn
On Friday, 29 November 2024 at 15:01:12 UTC, Sergey wrote: On Friday, 29 November 2024 at 14:02:38 UTC, Alain De Vos wrote: I want to plot a pixel in blue at coordinates (100,100) on a canvas of size (200,200) Check this lib from p0nce maybe https://code.dlang.org/packages/canvasity. So step

Re: Plot one pixel in blue on a canvas

2024-11-29 Thread Sergey via Digitalmars-d-learn
On Friday, 29 November 2024 at 14:02:38 UTC, Alain De Vos wrote: I want to plot a pixel in blue at coordinates (100,100) on a canvas of size (200,200) Check this lib from p0nce maybe https://code.dlang.org/packages/canvasity. So steps should be like: ```bash dub init dub add canvasity ``` Co

Re: Using a tuple as a function parameter

2024-11-29 Thread Harry Parker via Digitalmars-d-learn
Using a tuple as a function parameter allows you to pass multiple values as a single argument while maintaining their immutability. For example: python def example_function(data_tuple): for item in data_tuple: print(item) example_function((1, 2, 3)) This ensures effic

Re: Using a tuple as a function parameter

2024-11-29 Thread Harry Parker via Digitalmars-d-learn
Hello

Re: Is there a way to Deferred binding symbol from dynamic library?

2024-11-29 Thread IchorDev via Digitalmars-d-learn
On Tuesday, 26 November 2024 at 10:34:07 UTC, Dakota wrote: On Saturday, 23 November 2024 at 12:09:22 UTC, IchorDev wrote: Why not load the libraries at runtime and look the pointers up with symbol names? Or do you really need the compiler to do it for you? Because I need link some part sta