I'm having some problems, each time i do the maths for each pixel (500x500) the cpu gonna very loaded doing the maths slowing the music...
then i tryied to use gl shader language, but i'm with some dificults because i'm new in shader and pd and GEM.... so i dont know where i can write the codes before render (init() codes)...
i tried write:
shader1 = new Glsl("hello.vert", "hello.frag");
at the construction method, because normaly is writen at main, but then the object in pd is cannot be created...
well maybe is a very confused post but if you can help me to do these render's maths in shader at this external it will be great...
these are the commands i use to compile the project:
gcc -c fractal.cpp -o fractal.o
ld -export-dynamic -shared -o teste.pd_linux fractal.o -lc -lm
and
sudo mv teste.pd_linux /usr/lib/pd-extended/extra/
thx if anyone can help...