Merging sysmem & vram
I have a situation where I want to do a hybrid of volatile image blits & sysmem image blits. The software image blits are just pixel arrays that get drawn into an bufferedimage representing the screen (framebuffer). I use this for images I'd like to do certain operations on only doable in software. Next to those images I also want to draw volatile images from vram directly (using hw accelerated operations like scaling/rotation etc); because for these images it would be nice to use that gpu power otherwise doing nothing (and freeing a bit of cpu time otherwise needed for these operations).
Now is there a way to mix this? As my framebuffer is blitted as one image, overlaps dont mix well with the vram images (i have to blit or the vram images, or the framebuffer first, and they will overlap in that order).
But ideally i'd like to have them overlap in the way they are called, i know the order that they're called in my program, so is there a way i could set certain masks to pixels in my framebuffer or something?
Message was edited by: bitshit