mirror of
https://github.com/Kapendev/parin.git
synced 2025-04-26 04:59:54 +03:00
Readme has some linux info now.
This commit is contained in:
parent
ec4e7d2eb0
commit
0c67a8d832
2 changed files with 26 additions and 4 deletions
28
README.md
28
README.md
|
@ -48,7 +48,7 @@ Parin has the following dependencies:
|
|||
|
||||
Create a new folder and run inside the following commands:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
dub init -n
|
||||
dub run parin:setup
|
||||
```
|
||||
|
@ -60,12 +60,34 @@ The final line modifies the default app.d and dub.json files, downloads raylib,
|
|||
|
||||
Once the installation is complete, run the following command:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
dub run
|
||||
```
|
||||
|
||||
If everything is set up correctly, a window will appear showing the message "Hello world!".
|
||||
|
||||
### Required Libraries on Linux
|
||||
|
||||
Some libraries for sound, graphics, and input handling are required before using Parin on Linux. Below are installation commands for some Linux distributions.
|
||||
|
||||
**Ubuntu:**
|
||||
|
||||
```sh
|
||||
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
|
||||
```
|
||||
|
||||
**Fedora:**
|
||||
|
||||
```sh
|
||||
sudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic
|
||||
```
|
||||
|
||||
**Arch:**
|
||||
|
||||
```sh
|
||||
sudo pacman -S alsa-lib mesa libx11 libxrandr libxi libxcursor libxinerama
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
For an initial understanding, the [examples](examples) folder can be a good starting point.
|
||||
|
@ -83,7 +105,7 @@ The [web](web) folder contains a helper script to assist with the web export pro
|
|||
|
||||
It can be used with DUB by running the following command:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
dub run parin:web
|
||||
```
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ bool update(float dt) {
|
|||
viewport.detach();
|
||||
// Draw the viewport and other things inside the window.
|
||||
drawViewport(viewport, resolution * Vec2(0.5), DrawOptions(Hook.center));
|
||||
drawDebugText("Move the mouse inside the black box.", Vec2(8), DrawOptions(Vec2(2)));
|
||||
drawDebugText("Move the mouse inside the box and resize the window.", Vec2(12), DrawOptions(Vec2(2)));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue