oid.cr
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 TODO
s 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
Repository
oid.cr
Owner
Statistic
- 0
- 0
- 1
- 0
- 7
- about 2 years ago
- January 11, 2021
License
MIT License
Links
Synced at
Wed, 06 Nov 2024 20:45:58 GMT
Languages