Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zig-community/hello-triangle

Opens a window and draws a nice little triangle
https://github.com/zig-community/hello-triangle

example opengl tutorial zig ziglang

Last synced: about 9 hours ago
JSON representation

Opens a window and draws a nice little triangle

Awesome Lists containing this project

README

        

# Hello Triangle (OpenGL)

Opens a window and draws a nice little triangle with OpenGL 3.3.

![Screenshot](https://mq32.de/public/fa6ae0d95073caec85c3507c37e690ae0a5a0919.png)

## Building

Checkout all submodules, then use `zig` to build the example.
```sh
git clone https://github.com/zig-community/hello-triangle --recursive
cd hello-triangle
zig build run # builds the example and runs it
```

## Dependencies
This project depends on the awesome [Zig Window Library (ZWL)](https://github.com/Aransentin/ZWL/) by @Aransentin.

## Supported Platforms
Right now, ZWL only supports *Linux* and *Windows*. No support for *MacOS* at the moment.