I try to use the great particle emitter which Michael Daley build for his Particle Designer to be working inside a GLKView. I see two ways to get there:
I tried 1. the whole day but ended alone and lost in the wide lands of openGL. I don't know how or what is important to initialize from the GL-stuff.
I ported the classes Image, Texture2D, Common and ParticleEmitter and instantiated them inside a GLKViewController, ending with an EXC_BAD_ACCESS in line 341 of ParticleEmitter.m:
// Now that all of the VBOs have been used to configure the vertices, pointer size and color
// use glDrawArrays to draw the points
glDrawArrays(GL_POINTS, 0, particleIndex);
and I don't know why or what....
Now I think about buying the Particle Designer and try to implement it inside the GLKViewController and its GLKView.
Is there any body who could help me with 1./2. to solve my problem, adding an openGL particle emitter to a view based application?
thanx!
edit: removed some stupid code