mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working on Raspberry Pi (markdown)
@ -16,9 +16,6 @@ raylib supports the platforms/OSs, **desktop and native modes**:
|
||||
|
||||
- `PLATFORM_DESKTOP`: [Raspberry Pi OS Bullseye](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit) desktop mode
|
||||
- `PLATFORM_DRM`: [Raspberry Pi OS Bullseye](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit) native mode
|
||||
- `PLATFORM_RPI`: [Rasberryy Pi OS (Legacy)](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-legacy) (deprecated - based on Raspbian Buster) native mode
|
||||
|
||||
_NOTE: RPI OS Bullseye is currently supported by **all** RPI models while RPI OS Legacy is only supported by RPI 0-3 models._
|
||||
|
||||
### Supported OpenGL backends
|
||||
|
||||
@ -46,7 +43,7 @@ Raylib examples use GLSL 3.3 shaders. Older Raspberry Pi's 0-3 only support upto
|
||||
```
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
#define GLSL_VERSION 120 // Change this back to 330 if compiling for a platform that supports GLSL3.3
|
||||
#else // PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
|
||||
#else // PLATFORM_ANDROID, PLATFORM_WEB
|
||||
#define GLSL_VERSION 100
|
||||
#endif
|
||||
```
|
||||
@ -61,10 +58,6 @@ sudo apt-get install libx11-dev libxcursor-dev libxinerama-dev libxrandr-dev lib
|
||||
|
||||
**2. To compile in native mode (no X11)**
|
||||
|
||||
On Raspberry Pi models 0-3 using RPI OS Legacy:
|
||||
```
|
||||
make PLATFORM=PLATFORM_RPI
|
||||
```
|
||||
On Rapsberry Pi 0-4 using RPI OS Bullseye or newer:
|
||||
```
|
||||
make PLATFORM=PLATFORM_DRM
|
||||
|
||||
Reference in New Issue
Block a user