Getting started
Tetrodotoxin is developed across several repositories. TTX is the library for composing interfaces and semantic graphs. Tetrodotoxin is the source toolchain built on those interfaces. You can work on either one without checking out the whole project.
The source lives under the tetrodotoxin-dev organization on GitHub. Each repository has its own dependencies, build and releases.
Finding the right repository
| Repository | What it covers |
|---|---|
| TTX | Canonical data forms, interface negotiation and the composable Abstract graph. Start here to work on the shared interface model. |
| Tetrodotoxin | Source handling, language dialects, semantic models, terminals and Puffer tooling. |
| Perimortem | Native runtime facilities, containers, memory, serialization and image data. |
| Photophore | Windowing, input and Vulkan rendering. Image storage and codecs belong to Perimortem. |
| Toolchain | Shared Bazel rules, compiler and SDK acquisition, packaging and the native test harness. |
| Compute | Shared compute contracts with independent CPU and CUDA execution engines. |
| Godot | The reusable Godot extension and an image lab demonstrating native and script providers. |
Getting the source
Install Git, then clone the repositories you want to work on. These commands use short local folder names:
git clone https://github.com/tetrodotoxin-dev/TTX.git ttx
git clone https://github.com/tetrodotoxin-dev/Tetrodotoxin.git tetrodotoxin
git clone https://github.com/tetrodotoxin-dev/Perimortem.git perimortem
git clone https://github.com/tetrodotoxin-dev/Photophore.git photophore
git clone https://github.com/tetrodotoxin-dev/Toolchain.git toolchain
git clone https://github.com/tetrodotoxin-dev/Compute.git compute
git clone https://github.com/tetrodotoxin-dev/Godot.git godot
Choose the commands you need. Keeping checkouts beside each other is convenient
for browsing, but their location does not connect their builds. A repository's
MODULE.bazel selects its dependency versions, including published SDKs and
source archives. Editing a neighboring checkout therefore leaves those selected
dependencies unchanged.
For an application that consumes an existing library, start with that library's release downloads and SDK instructions. Clone its source when you want to read, modify or build the implementation.
Choosing a setup guide
| What you want to do | Guide |
|---|---|
| Set up C++ development, builds and VS Code | Development setup |
| Run the Godot lab or build its extension | Godot setup |
| Add the TTX extension to your own Godot project | Using the Godot extension |
The core concepts introduce the interface model. Once you have a checkout and can build it, development and review covers how to approach changes to that model.