I’m working on our GUI and need to create a blank texture of size X, Y with alpha, that we can later draw into manually.
What’s the correct way to…
-
Create this blank texture. I tried TextureLoader.constructTexture, but none of the parameters are documented and I have no idea what they are. I tried just new Texture2D(), but it crashed with a null pointer. I couldn’t find any demos that created textures at runtime.
-
Draw into the texture on a per-pixel level. I’m assuming you somehow get a Graphics2D object for drawing into the texture… but if we gotta poke pixels into an image byte array, that works too.
-
Update the texture back to Xith/OpenGL
Much obliged.
