GL Header
#ifdef __APPLE__ # include# include # include #else # include # include # include #endif
Makefile
# Mac OS alternate cmdline link options UNAME = $(shell echo `uname`) ifeq "$(UNAME)" "Darwin" LDFLAGS = -framework Carbon -framework OpenGL -framework GLUT endif
GtkglArea
install from macport
sudo port install gtkglarea2
makefile (same as Ubuntu)
CPPFLAGS += `pkg-config gtkgl-2.0 --cflags` LIBS += `pkg-config gtkgl-2.0 --libs`
No comments:
Post a Comment