Syphon / Syphon-Framework

Syphon is a Mac OS X technology to allow applications to share video and still images with one another in realtime, instantly.
Other
460 stars 81 forks source link

Can't manage to integrate in JUCE : Blank texture #98

Closed benkuper closed 4 months ago

benkuper commented 4 months ago

Hello, I finally managed to include Syphon in JUCE, not in the most elegant way but it compiles and I'm able to use the functions, detect textures, etc.

The only problem is that the retrieved texture is blank. My guess is that :

So my question is : is it possible to pass on an NSOpenGLContext* to a SyphonOpenGLClient, or have it work without passing anything and it would find it itself ? Or is it on JUCE's side that it should be possible to get a CGLContextObj from the current OpenGL context ?

I'm mainly a windows developer and I'm kinda over my head with all this objc/cpp/mac-specific graphics stuff, especially since I'm not making it for myself but for the users of my free and open source app..

thank you !

benkuper commented 4 months ago

Ok I managed to get the CGLContext using NSOpenGLContext.CGLContextObj... my bad :) closing and leaving here for other people who might be blocked like me