Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Quark! Quark! Beware the quantum duck!


devel / comp.lang.smalltalk.dolphin / Raylib for dolphin

SubjectAuthor
* Raylib for dolphinZenchess
`* Re: Raylib for dolphinZenchess
 `* Re: Raylib for dolphinZenchess
  `* Re: Raylib for dolphinZenchess
   `* Re: Raylib for dolphinJoe Betz
    `- Re: Raylib for dolphinJoe Betz

1
Raylib for dolphin

<18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=9985&group=comp.lang.smalltalk.dolphin#9985

 copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a05:620a:f8b:: with SMTP id b11mr7503211qkn.81.1637697587015;
Tue, 23 Nov 2021 11:59:47 -0800 (PST)
X-Received: by 2002:a05:6808:218b:: with SMTP id be11mr10148oib.80.1637697586676;
Tue, 23 Nov 2021 11:59:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 23 Nov 2021 11:59:46 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=67.3.167.156; posting-account=r2EEkwoAAADz3M0x3Szspui4wqseZF5h
NNTP-Posting-Host: 67.3.167.156
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>
Subject: Raylib for dolphin
From: zench...@gmail.com (Zenchess)
Injection-Date: Tue, 23 Nov 2021 19:59:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 36
 by: Zenchess - Tue, 23 Nov 2021 19:59 UTC

Hi all, I have created raylib bindings to dolphin. Raylib is a graphics/game library that does opengl for 2d and 3d graphics, also handles input and pretty much anything you'd need for a game. It's a very simple c library that is easy to use. It's become pretty popular and has received funding I believe. It works great with dolphin and handles its own window creation.. The only bug I've noticed is if you minimize the window, it crashes. There is a workaround I can post later where you have to modify the source of raylib yourself and compile your own dll.

First off I want to say if you downloaded my previous opengl package, the quality of this package is much higher, I release that one with some bugs in at least my examples. I haven't finished writing the methods for raylib, and in particular the 3d models structure I have had trouble duplicating as an externalStructure so 3d doesn't work properly yet. If someone wants to help that would be great.

These packages were made for dolphin 7.1.20 so if you need a package for an older version of dolphin for some reason I can work on that.
I will release this as MIT license just because that seems to be the one people use, but I'm not even sure a wrapper for another library should even be licensed, anyway.

To use you need the packages supplied in this zip, plus a raylib dll. I would get raylib 4.0 from its github 'releases' page under the visual studio build here: raylib-4.0.0_win32_msvc16.zip and put the dll in the same folder as your dolphin image, but rename it raylib.dll.

You can check out the examples package, in the class method there is a 'startGame' method with code you can use to start the demo "self new run"

The demos are a bunnymark example, a 3d raymarched shapes example (that uses a lot of gpu), a 3d camera example (with no models), an example of using a shader "paintingwithmaths" - use the arrow key to move the line.

link to the packages: http://zenchess.com/dolphin/RaylibDolphin.zip

Re: Raylib for dolphin

<69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=9986&group=comp.lang.smalltalk.dolphin#9986

 copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:ae9:eb10:: with SMTP id b16mr23024qkg.191.1637698126699;
Tue, 23 Nov 2021 12:08:46 -0800 (PST)
X-Received: by 2002:a4a:85cf:: with SMTP id u15mr4913662ooh.45.1637698126430;
Tue, 23 Nov 2021 12:08:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 23 Nov 2021 12:08:46 -0800 (PST)
In-Reply-To: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=67.3.167.156; posting-account=r2EEkwoAAADz3M0x3Szspui4wqseZF5h
NNTP-Posting-Host: 67.3.167.156
References: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com>
Subject: Re: Raylib for dolphin
From: zench...@gmail.com (Zenchess)
Injection-Date: Tue, 23 Nov 2021 20:08:46 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 1
 by: Zenchess - Tue, 23 Nov 2021 20:08 UTC

Oh and I just want to say that quite a lot of the library is not yet wrapped, but if there's a raylib function you want to use it's pretty easy to go here: https://www.raylib.com/cheatsheet/cheatsheet.html
and wrap the methods in the RaylibLibrary class. Check the help files for external interfacing for which data types to use when interfacing (int>sdword ) etc.

Re: Raylib for dolphin

<2736b621-0951-43a0-b39d-ba2f7430c09en@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=9988&group=comp.lang.smalltalk.dolphin#9988

 copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:ac8:5c16:: with SMTP id i22mr20387444qti.313.1637878587329;
Thu, 25 Nov 2021 14:16:27 -0800 (PST)
X-Received: by 2002:a9d:62d9:: with SMTP id z25mr23641571otk.330.1637878587108;
Thu, 25 Nov 2021 14:16:27 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 25 Nov 2021 14:16:26 -0800 (PST)
In-Reply-To: <69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=67.3.167.156; posting-account=r2EEkwoAAADz3M0x3Szspui4wqseZF5h
NNTP-Posting-Host: 67.3.167.156
References: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com> <69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2736b621-0951-43a0-b39d-ba2f7430c09en@googlegroups.com>
Subject: Re: Raylib for dolphin
From: zench...@gmail.com (Zenchess)
Injection-Date: Thu, 25 Nov 2021 22:16:27 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: Zenchess - Thu, 25 Nov 2021 22:16 UTC

I packaged this code with the git version of 7.1.2 branch , I just realized if you have the release installer for 7.1.2 installed you won't be able to load this package...

I've ran into lots of problems lately due to this issue. It seems that you can't even file out classes to be loaded in an earlier version of dolphin (like say 7.057.2)

Re: Raylib for dolphin

<630750cf-a0a1-4397-8ec2-e5fab10c0ed7n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=9989&group=comp.lang.smalltalk.dolphin#9989

 copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a05:6214:13d1:: with SMTP id cg17mr34957758qvb.131.1639305116490;
Sun, 12 Dec 2021 02:31:56 -0800 (PST)
X-Received: by 2002:a9d:62d9:: with SMTP id z25mr18927441otk.330.1639305116177;
Sun, 12 Dec 2021 02:31:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Sun, 12 Dec 2021 02:31:55 -0800 (PST)
In-Reply-To: <2736b621-0951-43a0-b39d-ba2f7430c09en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=67.3.167.156; posting-account=r2EEkwoAAADz3M0x3Szspui4wqseZF5h
NNTP-Posting-Host: 67.3.167.156
References: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>
<69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com> <2736b621-0951-43a0-b39d-ba2f7430c09en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <630750cf-a0a1-4397-8ec2-e5fab10c0ed7n@googlegroups.com>
Subject: Re: Raylib for dolphin
From: zench...@gmail.com (Zenchess)
Injection-Date: Sun, 12 Dec 2021 10:31:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Zenchess - Sun, 12 Dec 2021 10:31 UTC

I have redone the package for the release version of 7.1.2, here it is: http://www.zenchess.com/dolphin/raylibDolphinRelease.zip

Re: Raylib for dolphin

<60e3a5a5-a3c3-4f50-853a-84f242b7ff00n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=10029&group=comp.lang.smalltalk.dolphin#10029

 copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a05:622a:199e:b0:3f8:4f6:f7b0 with SMTP id u30-20020a05622a199e00b003f804f6f7b0mr1750863qtc.8.1685252042006;
Sat, 27 May 2023 22:34:02 -0700 (PDT)
X-Received: by 2002:a81:ad50:0:b0:54f:a35e:e79a with SMTP id
l16-20020a81ad50000000b0054fa35ee79amr3742052ywk.8.1685252041584; Sat, 27 May
2023 22:34:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Sat, 27 May 2023 22:34:01 -0700 (PDT)
In-Reply-To: <630750cf-a0a1-4397-8ec2-e5fab10c0ed7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:861:51c3:bae0:c9e0:174d:8a9e:a0da;
posting-account=P1X3VgoAAADgSty0b3mKYJl_KPjmW842
NNTP-Posting-Host: 2001:861:51c3:bae0:c9e0:174d:8a9e:a0da
References: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>
<69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com> <2736b621-0951-43a0-b39d-ba2f7430c09en@googlegroups.com>
<630750cf-a0a1-4397-8ec2-e5fab10c0ed7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <60e3a5a5-a3c3-4f50-853a-84f242b7ff00n@googlegroups.com>
Subject: Re: Raylib for dolphin
From: joebet...@gmail.com (Joe Betz)
Injection-Date: Sun, 28 May 2023 05:34:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 5
 by: Joe Betz - Sun, 28 May 2023 05:34 UTC

On Sunday, December 12, 2021 at 11:31:57 AM UTC+1, Zenchess wrote:
> I have redone the package for the release version of 7.1.2, here it is: http://www.zenchess.com/dolphin/raylibDolphinRelease.zip

Hi Zenchess, do you still have your Raylib package for Dolphin? I'm interested in using it, but the URL 404s.

Re: Raylib for dolphin

<1ea6b7a3-b6ac-4ea9-89d2-7e3a5013a4b5n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=10030&group=comp.lang.smalltalk.dolphin#10030

 copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a05:620a:1726:b0:75c:b18b:712f with SMTP id az38-20020a05620a172600b0075cb18b712fmr132483qkb.7.1685403762633;
Mon, 29 May 2023 16:42:42 -0700 (PDT)
X-Received: by 2002:a25:8111:0:b0:ba8:3e2d:58f8 with SMTP id
o17-20020a258111000000b00ba83e2d58f8mr401069ybk.5.1685403762357; Mon, 29 May
2023 16:42:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Mon, 29 May 2023 16:42:41 -0700 (PDT)
In-Reply-To: <60e3a5a5-a3c3-4f50-853a-84f242b7ff00n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:861:51c3:bae0:f9e6:4fd:c9c7:53d6;
posting-account=P1X3VgoAAADgSty0b3mKYJl_KPjmW842
NNTP-Posting-Host: 2001:861:51c3:bae0:f9e6:4fd:c9c7:53d6
References: <18cf2ea0-1f87-451c-98f6-addc285edf8an@googlegroups.com>
<69a9e3b2-a79c-453a-a6b8-e87eac4c6c97n@googlegroups.com> <2736b621-0951-43a0-b39d-ba2f7430c09en@googlegroups.com>
<630750cf-a0a1-4397-8ec2-e5fab10c0ed7n@googlegroups.com> <60e3a5a5-a3c3-4f50-853a-84f242b7ff00n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1ea6b7a3-b6ac-4ea9-89d2-7e3a5013a4b5n@googlegroups.com>
Subject: Re: Raylib for dolphin
From: joebet...@gmail.com (Joe Betz)
Injection-Date: Mon, 29 May 2023 23:42:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2969
 by: Joe Betz - Mon, 29 May 2023 23:42 UTC

I played around with Raylib in Dolphin for a few hours yesterday, just adding FFI functions as I needed them since the API is very simple. Really fun, easy to understand, and something I wish I had when I was first learning programming. But not good enough for professional use.

It's simply too patronizing for anyone with serious UI experience. For example, I need explicit frame controls rather than have it render at the target FPS for me, and while the functionality is there, but it's put so far out of reach that you have to recompile the library in order to use it.

I also ran into the issue of it crashing when you minimize a Window, and other critical issues too. Like the WindowShouldClose function immediately returning true without having hit the escape key or pressing the close button on the window. And then not being able to hook into the close button event any other way.

I'm sure it can also be worked around by modifying library code, but then that's two changes already and there's almost certainly more to come. All of which I'd need to document with anything I distribute with it due to the license. The documentation is a minor annoyance but having to debug C code is a real pain.

Raylib is definitely a performance improvement from GDI+, but the artificial ceilings and constraints make it feel about equal overall for making desktop apps. I still need some sort of hardware acceleration, however, so my plan now is to use SDL instead.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor