I am writing a hud for a project, and because I want to do some complex drawing I want to use a powerful 2D rendering library (like Java2D). My idea is to draw into the BufferedImage whenever the UI needs to update, then take the pixel data from the bufferedimage and bind it into an OpenGL texture buffer. I can then draw the texture on top of my game every frame.
Am I insane? -> yes. But is it really crazier then drawing 2D stuff in OpenGL?
The part that I need help with specifically is transferring the bufferedimage data into the texture buffer. I am using LWJGL.