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 :
when creating the client (in the OpenGL thread), if I don't pass a "context", the client is never valid.
I have then to pass a context, but this context is of type CGLContextObj, not NSOpenGLContext. My JUCE app uses OpenGL but the raw context I can access is NSOpenGLContext, not CGLContextObj
So I can only pass CGLGetCurrentContext(), which then works and I'm able to go all the way, but when getting the texture from the client, I guess the "textureName" identifier is dependant of the CGLContextObj, not JUCE's OpenGLContext. I would have guessed they would be linked somehow, but they are not.
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..
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
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 !