hello,
Frank Barknecht a écrit :
Hallo, chris clepper hat gesagt: // chris clepper wrote:
C++ - Jamie did a lot of this for his personal use.
I have not used luagl, but I suspect it will not be comparable to C in speed.
luagl is not as fast as C, but it's already much faster than using lots of separators or double gemheads.
Regarding Gem-externals: Does anyone have a simple template project how to write and compile a custom Gem external? This could be very useful, but I'm a bit confused how to do this in a simple way.
use a gem object (like cube). search and replace "cube" by the name of your object in both the ccp and h file. use this makefile (adjust the name of the file / src directory). it should compile.
cyrille
Ciao
PD_DIR = /home/nusmuk/pd/pd/src GEM_DIR = /home/nusmuk/pd/Gem/src
LIBS = -lm
# build flags
INCLUDE = -I$(PD_DIR) -I. -I$(GEM_DIR) -I$(PD_DIR)
CPPFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math
-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -g
all: test.pd_linux rm -f *.o
.SUFFIXES: .pd_linux
clean: rm -f *.o rm -f *.pd_linux
.cpp.o: g++ $(CPPFLAGS) $(INCLUDE) -o $*.o -c $*.cpp
.cpp.pd_linux: g++ $(CPPFLAGS) $(INCLUDE) -o $*.o -c $*.cpp gcc -export_dynamic -shared -o $*.pd_linux $*.o $(LIBS) rm -f *.o