mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working on Raspberry Pi (markdown)
@ -9,11 +9,9 @@ Official OS supported is [Raspberry Pi OS](https://www.raspberrypi.org/software/
|
||||
- Raspberry Pi 1 (all models)
|
||||
- Raspberry Pi 2 (all models)
|
||||
- Raspberry Pi 3 (all models)
|
||||
- _Raspberry Pi 4 (PLATFORM_DESKTOP only!)_
|
||||
|
||||
_NOTE: Currently **Raspberry Pi 4** native mode compilation is not supported, for further information just [check this issue](https://github.com/raysan5/raylib/issues/1041)._
|
||||
|
||||
- Raspberry Pi 4 (all models)
|
||||
|
||||
_NOTE: **Raspberry Pi 4** native mode compilation requires `PLATFORM_DRM` compilation flag instead of `PLATFORM_RPI`!_
|
||||
|
||||
### Supported OpenGL backends
|
||||
|
||||
@ -32,9 +30,15 @@ Before you can use raylib in your project you will have to compile it, but this
|
||||
Just navigate to `raylib\src\` directory and run one of the following options depending on your needs:
|
||||
|
||||
1. To use OpenGL ES 2.0 in native mode (no X11):
|
||||
|
||||
On Rapberry Pi 0-3:
|
||||
```
|
||||
make PLATFORM=PLATFORM_RPI
|
||||
```
|
||||
On Rapberry Pi 4:
|
||||
```
|
||||
make PLATFORM=PLATFORM_DRM
|
||||
```
|
||||
2. To use desktop OpenGL 1.1 or 2.1 (X11 window)
|
||||
```
|
||||
make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21
|
||||
@ -55,9 +59,15 @@ sudo apt-get install build-essential
|
||||
Just move to folder `raylib/examples/` and run **ONE of THOSE TWO OPTIONS** (depending on target OpenGL version):
|
||||
|
||||
1. To use OpenGL ES 2.0 in native mode (no X11):
|
||||
|
||||
On Rapberry Pi 0-3:
|
||||
```
|
||||
make PLATFORM=PLATFORM_RPI
|
||||
```
|
||||
On Rapberry Pi 4:
|
||||
```
|
||||
make PLATFORM=PLATFORM_DRM
|
||||
```
|
||||
2. To use desktop OpenGL 1.1 or 2.1 (X11 window)
|
||||
```
|
||||
make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21
|
||||
@ -66,9 +76,16 @@ make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21
|
||||
To compile just one specific example:
|
||||
|
||||
1. To use OpenGL ES 2.0 in native mode (no X11):
|
||||
|
||||
On Rapberry Pi 0-3:
|
||||
```
|
||||
make core/core_basic_window PLATFORM=PLATFORM_RPI
|
||||
```
|
||||
On Rapberry Pi 4:
|
||||
```
|
||||
make core/core_basic_window PLATFORM=PLATFORM_DRM
|
||||
```
|
||||
|
||||
2. To use desktop OpenGL 1.1 or 2.1 (X11 window)
|
||||
```
|
||||
make core/core_basic_window PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21
|
||||
|
||||
Reference in New Issue
Block a user