crystal-cube

Version, currently master branch1 version
  • master branchlatestJul 23, 2017

github.com/doughsay/crystal-cube

A rotating colorful cube in Crystal + OpenGL using GLFW for windowing

9 stars
0 dependents
License: not declared

Installation

# Add this to your shard.yml
dependencies:
  crystal-cube:
    github: doughsay/crystal-cube
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared

Dependencies

Runtime Dependencies

  • gl*github: doughsay/crystal-gl
  • glfw*github: doughsay/crystal-glfw

README

Crystal OpenGL Rotating Cube
============================

A rotating colorful cube in Crystal.

Dependencies
------------

1. A working Crystal instalation (`brew install crystal-lang`)
2. GLFW3 (`brew install glfw3`)

How To Run
----------

```
# install dependencies
shards

# run
crystal src/main.cr

# or build
crystal build src/main.cr -o cube
./cube
```

`esc` in the window, or `ctrl-c` in the terminal to quit.

Screenshot
----------

![screenshot](screenshot.png "Screenshot")