From 985e1c9b008e5e8b6eac41546266d3abcfa6282a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 24 Apr 2015 07:48:45 +0200 Subject: opengl: add shader helper functions. Helper functions to compile, link and run opengl shader programs. Signed-off-by: Gerd Hoffmann --- ui/Makefile.objs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/Makefile.objs') diff --git a/ui/Makefile.objs b/ui/Makefile.objs index 13b5cfb..7a76df5 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -24,4 +24,11 @@ sdl.mo-objs := sdl2.o sdl2-input.o sdl2-2d.o endif sdl.mo-cflags := $(SDL_CFLAGS) +ifeq ($(CONFIG_OPENGL),y) +common-obj-y += shader.o +endif + gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) +shader.o-cflags += $(OPENGL_CFLAGS) + +shader.o-libs += $(OPENGL_LIBS) -- cgit v1.1