Skip to content

cc4v/odin-cc

Repository files navigation

odin-cc (creco)

docs/screenshot_logo.png

(code of above: examples/logo_icon)

Warning

Currently at early stage. API design may be changed in the future.
(see docs/coverage.md)

Creative Coding framework in Odin language. Forked from cc4v.

Aiming to provide APIs like openFrameworks or Processing on top of Sokol framework (sokol-odin), with a little essence of Ebitengine. (Please check docs/api_design.md)

Tested with Odin dev-2025-12-nightly

Features

  • Run as fast as C/C++/Rust without GC, and coding style is so much fun just like scripting language. (Thanks to Odin language)
  • Works on Win/Mac/Linux, on D3D11/Metal/GL/WebGL2/WebGPU. (Thanks to Sokol framework)
  • APIs are similar to openFrameworks or Processing.
  • You can use GL-compatible draw call using Sokol GL. (OpenGL 1.x style immediate-mode rendering API on top of sokol_gfx.h)

Naming ("cc" and "creco")

"cc" stands for "Creative Coding".

I know "cc" is usually used for "C language Compoiler" (such as gcc).

So if you need full-name of this library, you can use "creco" or "odin-cc" instead.

Pre-requisites

Install sokol-odin

odin-cc assumes import "shared:sokol" works. So you need:

Note

And more, you may need additional instructions for stb library use.
Instructions are shown if you have error, by Odin language compiler itself while using as normal.

Install odin-cc (as a odin shared module)

$ export ODIN_ROOT="$(odin root)"
$ git clone https://github.com/cc4v/odin-cc $ODIN_ROOT/shared/cc

# NOTE: `$ODIN_ROOT` directory can be found by `odin root`.
#       You don't need first line if you copy it manually for example on Windows.

Examples

see odin-cc-examples and docs/coverage.md.

$ git clone https://github.com/cc4v/odin-cc-examples
$ cd odin-cc-examples
$ odin run hello_world

Contribution

Please check docs/api_design.md, docs/coverage.md, and LICENSE.md.

Fork and create your version as you like. Feel free to create PR. If you have any questions or ideas, please use discussions instead of issues. Issues are only for task tracking.

About

Creative Coding framework in Odin language

Topics

Resources

License

Unknown, MPL-2.0 licenses found

Licenses found

Unknown
LICENSE.md
MPL-2.0
LICENSE_MPL2

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages