From 16791359fa742b9aab9daf3675ac0826e0227311 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 7 Nov 2017 19:13:08 +0100 Subject: [PATCH] Updated Compile for Raspberry Pi (markdown) --- Compile-for-Raspberry-Pi.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Compile-for-Raspberry-Pi.md b/Compile-for-Raspberry-Pi.md index 15fb7fd..2c91c40 100644 --- a/Compile-for-Raspberry-Pi.md +++ b/Compile-for-Raspberry-Pi.md @@ -16,7 +16,7 @@ raylib only requires one additional library dependency to the ones that already sudo apt-get install libopenal1 libopenal-dev -If using raylib on desktop mode, another additional dependency is required: +**If using raylib on desktop mode**, another additional dependency is required: sudo apt-get install libglfw3 @@ -35,10 +35,16 @@ make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21 ### Compiling raylib examples -Just move to folder `raylib/examples/` and run one of those options (depending on target OpenGL version): +Just move to folder `raylib/examples/` and run **one of those two options** (depending on target OpenGL version): - make PLATFORM=PLATFORM_RPI - make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21 +1. To use OpenGL ES 2.0 in native mode (no X11): +``` +make PLATFORM=PLATFORM_RPI +``` +2. To use desktop OpenGL 1.1 or 2.1 (X11 window) +``` +make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21 +``` To compile just one specific example: