fuzzybinary / fuzzybinary/godot_dart

Reimplement certain Builtin types in Dart

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Dart
Stars
203
Forks
10
PR merge metrics
No merged PRs in 30d

Description

godot-cpp doesn't generate a lot of the builtin types, especially the math heavy ones, as going back and forth through the Godot calling system would be cumbersome. Instead, they re-implement them in C++

We should take a similar approach in Dart, only copying values out to opaque memory when needed. The classes that should get this treatment are:

  • aabb
  • basis
  • color
  • plane
  • projection
  • quaternion
  • rect2
  • rect2i
  • transform2d
  • transform3d
  • vector2
  • vector2i
  • vector3
  • vector3i
  • vector4
  • vector4i

This will also allow us to simplify their interfaces, including allowing default parameters for constructors instead of using named constructors for everything but the default.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the Dart implementations of the listed builtin types and compare their intended approach with godot-cpp; define the opaque-memory boundary and interface changes before editing. Done means all listed types use the new treatment and their constructors support the intended default parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, dart
Domain
game-dev
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.