/openGL-RPi-tutorial

an introduction to using openGL on the Raspberry Pi

Primary LanguageC

It's absolutly worth to play with and learn fundamental things! ..about GLES2.0 and up (it uses the proprietary BRCM lib's... may try to use something else like libgles2-mesa-dev libegl1-mesa-dev(missing KHR libs and headers) and GLM, so nearly all work is done by the GPU, awesome! I love it! ...and Suzanne from Blender;)

sudo apt install libglm-dev sudo leafpad /usr/include/glm/gtx/euler_angles.hpp #define GLM_ENABLE_EXPERIMENTAL #include "../glm.hpp"

I had an issue with vcos_types.h ,because COUNTOF is somewhere else declared. // #define countof(x) (sizeof((x)) / sizeof((x)[0]))

============== origilnal description ================

openGLES 2.0 tutorial for Raspberry Pi

Install necessary tools:

sudo apt-get install git cmake libglm-dev

Clone the repository:

git clone https://github.com/peepo/openGL-RPi-tutorial.git

Build one of the examples:

cd openGL-RPi-tutorial/build
cmake ..
cd tutorial01_first_screen/
make
./tutorial01_first_screen

Build all examples (takes a while):

cd openGL-RPi-tutorial/build
cmake ..
make

start with tutorial01 to 08 then encode, and finally encode_OGL please send comments, and report bugs to the current maintainer: Jonathan Chetwynd

jay@peepo.com

created with assistance from rktring/panik and in conjunction with these excellent resources:

openGL tutorials 1-5: http://www.opengl-tutorial.org/

openGLES 2.0 Programmers Guide 2008, Raspberry Pi code port: http://benosteen.wordpress.com/2012/04/27/using-opengl-es-2-0-on-the-raspberry-pi-without-x-windows/

Chris Cummings' My Robot Blog http://robotblogging.blogspot.co.uk/2013/10/pi-eyes-stage-1.html

drhastings' robots: https://github.com/drhastings/balance

and videos: http://www.youtube.com/user/drhastings90

okay so I lifted the code, so blame me not them....

my intention is to further understanding, by using only the minimum necessary code. Unfortunately at this time I failed rather badly

~:"