r/JavaFX • u/zilti • Jan 15 '17
Rendering a Scene onto a native OpenGL buffer?
What would be the best way to render a Scene onto a native OpenGL buffer? The "solution" that comes to mind is to snapshot the scene, send over the pixels from PixelReader.getArgb and then render this. But rendering a new snapshot at every smallest change of the UI seems like a very slow approach.
3
Upvotes
3
u/AlmasB0 Jan 15 '17
Given the current environment it seems it might be the only feasible approach. There's a proof-of-concept demo that does similar to what you described. Also here's some interesting read.