37 lines
537 B
Markdown
37 lines
537 B
Markdown
|
|
# wlgol
|
||
|
|
|
||
|
|
Simple implementation of Conway's Game of Life for Wayland.
|
||
|
|
|
||
|
|
It directly uses C interfaces of Wayland.
|
||
|
|
|
||
|
|
Uses pure C language in C11 standard.
|
||
|
|
|
||
|
|
Draws directly into the buffer in a shared memory pool. Doesn't use interfaces like OpenGL, Vulkan etc.
|
||
|
|
|
||
|
|
Build definition is in `CMakeFiles.txt`.
|
||
|
|
|
||
|
|
Uses `cmake` an `ninja` to build the program.
|
||
|
|
|
||
|
|
## Useful commands:
|
||
|
|
|
||
|
|
Init build environment:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
mkdir build
|
||
|
|
cd build
|
||
|
|
cmake -G Ninja ..
|
||
|
|
```
|
||
|
|
|
||
|
|
Build programs:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cmake --build ./build
|
||
|
|
```
|
||
|
|
|
||
|
|
Run program:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
./build/wlgol
|
||
|
|
```
|
||
|
|
|