Hello Victor,

On 2016-10-19 02:41, Victor Haefner wrote:
> I have a tool, an editor, where users can write GLSL shader,
> but I am still missing warning and error output in the gui.
>
> How could I get the error logs of the shader compilation and linkage
> from OpenSG?

I don't think that is exposed at the moment. When a shader is compiled 
it is checked for success and any errors are logged (through the usual 
OpenSG log).
IIRC there are ways to intercept the log streams - but you would likely 
get other messages as well, not just those from the shader compiles. I 
guess the other option could be to get the real GL id of the shader 
object (Window::getGLObjectId, I think) and make the necessary GL calls 
directly - ensuring that the correct GL context corresponding to the 
Window is active at the time.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to