Oh, its possible; for more info - explore this link;
http://www.cfxweb.net/modules.php?name=Forums&file=viewtopic&t=51
you can find the cfxweb JACC (java applet coding contest) pages and some of them have the source code to the applets; there is some amazing stuff in there; including this snippet
// this is from Bloid's code
public MemoryImageSurface( int w, int h, Component parent )
{
this.parent = parent ;
width = w ;
height = h ;
buffer = new int[ w * h ] ;
source= new MemoryImageSource(w, h, model,buffer,0,w);
source.setAnimated(true);
image=parent.createImage(source);
}
public Image getImage() {
source.newPixels();
return image;
}
I have a mode7 applet on my site using something like the above;
www.geocities.com/nonnus29/mode7/mode7.htm
[quote] Some1 must have already rewritten all the Graphics functions so they operate on an int [], and put it in a nice neat pixel [] based API?
[/quote]
I actually started doing this recently using some of the JACC code; Bloids code already had blending and transparent blits and I added rotation, scaling and a mode7 function. I want to add solid filled triangles and perspective correct tri’s (I dont’ care about n-gons). It would all be open source of course; I basically just copy, paste, and modify other peoples code; the scaling, rotating and mode7 was origionally in C.