Provide an API of similar non-complexity as raylib for 2D and 3D graphics #866

Open
opened 2023-07-22 16:11:31 +00:00 by emidoots · 0 comments
emidoots commented 2023-07-22 16:11:31 +00:00 (Migrated from github.com)

Not a 1:1 copy or anything.

I really like raylib's API design and would like to use it as inspiration for offering a similar 'introductory' API to people coming to Mach with little-no graphics experience, just wanting to make a simple 2D/3D game for example.

the trick is not to look at raylib's API and think "how can I copy this 1:1" but rather to look at the complexity of their API and think 'how can we do something similar with Mach, in a way that makes sense for Mach'

start from: we use an ECS, we use webgpu, we use Zig -> how can we achieve a simple graphics API on the level of raylib for users with similar goals, but still allow them to 'graduate' to 'I'm a real graphics programmer' once they run into limitations of that style of API

that's what it'll look like

lots of ways to do it

some look closer and further away than raylib's API

Not a 1:1 copy or anything. I really like raylib's API design and would like to use it as inspiration for offering a similar 'introductory' API to people coming to Mach with little-no graphics experience, just wanting to make a simple 2D/3D game for example. the trick is not to look at raylib's API and think "how can I copy this 1:1" but rather to look at the complexity of their API and think 'how can we do something similar with Mach, in a way that makes sense for Mach' start from: we use an ECS, we use webgpu, we use Zig -> how can we achieve a simple graphics API on the level of raylib for users with similar goals, but still allow them to 'graduate' to 'I'm a real graphics programmer' once they run into limitations of that style of API that's what it'll look like lots of ways to do it some look closer and further away than raylib's API
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#866
No description provided.