© Jan Newmarch 2017

Jan Newmarch, Raspberry Pi GPU Audio Video Programming , 10.1007/978-1-4842-2472-4_5

5. EGL on the Raspberry Pi

Jan Newmarch

(1)Oakleigh, Victoria, Australia

EGL provides a base for graphics programming, common to many systems such as OpenCL, OpenGL, OpenGL ES, and OpenVG. It is system neutral and for the RPi is the layer above Dispmanx.

Building Programs

The following is a Makefileto build these programs:

DMX_INC =  -I/opt/vc/include/ -I /opt/vc/include/interface/vmcs_host/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linuxEGL_INC =INCLUDES = $(DMX_INC) $(EGL_INC)CFLAGS = $(INCLUDES)CPPFLAGS = -march=armv7-a -mtune=cortex-a7DMX_LIBS =  -L/opt/vc/lib/ -lbcm_host -lvcos -lvchiq_arm -lpthreadEGL_LIBS ...

Get Raspberry Pi GPU Audio Video Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.