We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Processing from C/C++/Objective-C
Page Index Toggle Pages: 1
Processing from C/C++/Objective-C (Read 1137 times)
Processing from C/C++/Objective-C
Sep 6th, 2008, 3:53am
 
Hi, I have a few questions regarding the use of Processing from C, C++ or Objective-C.

I have an application that mixes together 2 Quartz Compositions.  They are rendered into OpenGL textures and then mixed.  I would like to add the ability to render processing sketches into my application, and be able to mix them with the Quartz Compositions.  I know that there have been hacks to read OpenGL buffers from on-screen (I think from http://vade.info/), but this isn't really a viable/user-friendly option for me.

I'm fairly new to Java (other than writing processing sketches), but have seen that you can start the Java Virtual Machine, and then use the JNI (I think) to call functions from your Java classes.

I have also seen (in a post on the forum) that it is possible to render your processing sketch into an OpenGL buffer - which would be perfect for my application.

Does anyone know if what I want to achieve is possible?  And if so, has anyone done this before?

Any advice would be greatly appreciated.
Page Index Toggle Pages: 1