Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zig-community/hello-triangle
- Owner: zig-community
- Created: 2020-12-13T10:33:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-13T11:52:00.000Z (almost 4 years ago)
- Last Synced: 2024-08-02T22:27:34.537Z (3 months ago)
- Topics: example, opengl, tutorial, zig, ziglang
- Language: Zig
- Homepage:
- Size: 31.3 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zig - hello-triangle🗒️Opens a window and draws a nice little triangle
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.