Re: Implement AWT in JOGL
Posted by elect on Feb 17, 2016; 11:14am
URL: https://forum.jogamp.org/Implement-AWT-in-JOGL-tp4036268p4036280.html
Ok, but what it is meant to be exactly bi? How are you going to use it?
Anyway, supposing you need to load as a texture, you could create a byteBuffer as big as d*h and then in you switch you just set the given pixel, supposing h is the width and d the height, you set byteBuffer.put(i*d+j, color)