From: Antonino D. <ad...@po...> - 2002-05-03 01:21:56
|
On Fri, 2002-05-03 at 04:06, James Simmons wrote: > To draw the pengiun using the accel wrapper I need to set the color map > to the what the penguin needs. Then I create fb_image where each piece of > data in char* field are a value that represents where in the struct > fb_cmap that data is. I think this is the best approach to that. Any > suggestions other wise? > I think that will be a good idea. I have heard of graphics cards that will lock-up if a read/write to graphics memory and a hardware operation such as a blit occured simultaneously. Using either pure accel or pure software rendering to draw to the framebuffer will make it easier for the driver to watch out for those. Which refers again to my previous question -- So basically, imageblit has to support functions other than conversion from monochrome -> framebuffer pixelformat. But I don't think not all cards will support other forms of color conversions. In that case, imageblit will be better supported by hardware by restricting it to: 1. copy from monochrome->higher pixel formats (for drawing text); and 2. copy where the src and destination have the same pixelformat (much like copyarea -- for drawing images). Tony |