Thank you for your answers. The suggestion from Aily won't work for me unfortunately, but I will see into getting the OpenGL context and working directly with it. Not the elegant solution I would like to use, but I guess it can't be helped.
Is it possible to get access to the pixelbuffer of a texture using the C(++) API. I looked through the documentation but couldn't find any method to allow me that. I read that it's possible in the Basic API but that isn't an option for me.
Is there a possible workaround? My project really needs the capability to generate textures procedurally and it would really be a pity if I couldn't use the otherwise easy to use Leadwerks Engine for it.
Thank you for your time and excuse my bad english.