Dispmanx is the lowest level of programming for the RPi’s GPU. I don’t go very deeply into it in this chapter, but you’ll learn enough to get a native window for use by other toolkits.
The following is a Makefile to build the program in this chapter:
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/linux
INCLUDES = $(DMX_INC)
CFLAGS = $(INCLUDES)
CPPFLAGS = -march=armv7-a -mtune=cortex-a7
DMX_LIBS = -L/opt/vc/lib/ -lbcm_host -lvcos -lvchiq_arm -lpthread