oid
Version, currently master branch1 version
- master branchlatestSep 14, 2022
github.com/spoved/oid.cr
No description declared in shard.yml.
Installation
# Add this to your shard.yml
dependencies:
oid:
github: spoved/oid.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.4.0, < 2.0.0- License
- MIT
- Author
- Holden Omans
- Targets
oid-clifrom src/bin/oid.crexample_01from examples/01/main.crexample_02from examples/02/main.crexample_03from examples/03/main.crexample_04from examples/04/main.crexample_05from examples/05/main.cr
Dependencies
Runtime Dependencies
- crinja*github: straight-shoota/crinja
- spoved~> 0.6.0github: spoved/spoved.cr
- admiral*github: jwaldrip/admiral.cr
- entitas~> 1.4.5github: spoved/entitas.cr
- entitas-web~> 0.1.2github: kalinon/entitas-web
- baked_file_system*github: schovi/baked_file_system, branch: master
Development Dependencies
- sentry*github: samueleaton/sentry, branch: masterdev
README
OID
A graphics library that is designed from the ground up to use Entity based architecture (entitas.cr). Still a work in progress.
Installation
- Add the dependency to your
shard.yml:
dependencies:
oid:
github: spoved/oid.cr
- Run
shards install
Usage
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 TODOs in each of the generated files for
places to add your code and examples.
Development
Required tools/libs:
- llvm >= 8
- cmake >= 3.14
- raylib ~> 3.4.0
Mac OSX
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
Linux
Will add instructions in the future
Windows
Not supported at this time
Contributing
- 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
Credit
Vector logic/code:
https://github.com/ajselvig/crystal_vector_math https://github.com/garnet-engine/math https://github.com/unn4m3d/crystaledge
Contributors
- Holden Omans - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 14, 2022
- Crystal
>= 1.4.0, < 2.0.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/spoved/oid.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1