A graphics library that is designed from the ground up to use Entity based architecture (entitas.cr). Still a work in progress.
- Add the dependency to your
shard.yml
:
dependencies:
oid:
github: spoved/oid.cr
- Run
shards install
To generate an app shell, use the oid-cli
to generate the base system and controllers.
From the root of your project:
cd ./lib/oid
./bin/oid-cli gen <project_name> ../../src
Then simply require the generated main.cr
into your entrypoint. Check the TODO
s in each of the generated files for
places to add your code and examples.
Required tools/libs:
- llvm >= 8
- cmake >= 3.14
- raylib ~> 3.4.0
brew install llvm cmake raylib
Build raylib bindings:
git submodule update --init --recursive
export CLANG_BINARY=/usr/local/opt/llvm/bin/clang++
cmake .
make bindings
or run ./build.sh
Will add instructions in the future
Not supported at this time
- Fork it (https://github.com/spoved/oid/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Vector logic/code:
https://github.com/ajselvig/crystal_vector_math https://github.com/garnet-engine/math https://github.com/unn4m3d/crystaledge
- Holden Omans - creator and maintainer