Juce on fbdirect?


#1

I found a topic regarding Juce on fbdirect, but it’s several years old. Has there been any progress? Is it a matter of creating a new derived low level renderer class and overriding the necessary functions with calls to say cairo (assuming cairo is used in fbdirect!).

Cheers


#2

Sorry - I’ve not looked at that at all recently…


#3

No worries - thanks for reading. Is it a matter of creating a new derived low level renderer class and overriding the necessary functions?


#4

yeah, and use the new LowLevelGraphicsContext inside each specific platform windowing code instead of the LowLevelGraphicsSoftwareRenderer.

you will only find that you can partially do that, mainly because the LowLevelGraphicsContext doesn’t let you specify how to draw fonts in the context. So you will end up drawing shapes and images only… unless Julian think a way to have also those kind of virtual functions.


#5

There are two slightly simpler approaches you could take:

  • use the current low level renderer, drawing onto a juce image, then turn it into a texture and blam it onto the GL context

  • or do it completely the other way round, and render your openGL to an off-screen bitmap, turn it into a juce image, and just use it inside a normal juce component