Quoting Sarfraz Nawaz ([EMAIL PROTECTED]): > Hi, > > I am a bit new to DirectFB. I've an Intel P4 with matrox G450 card > running Redhat 9.0 . I've recompiled the kernel to include the matrox fb > driver and installed DirectFB. The directfb examples work fine. > > Now I want to write an application that creates three surfaces, sets > individual pixels on all three surfaces using rgb values and then blit > them onto another surface and make that surface visible. I haven't been > able to find something that can allow me to draw individual pixels. SDL > has functions for drawing individual pixels, can I use them for drawing > pixels and using other functions like blit etc from directfb to take > advantage of hardware acceleration? Can anyone guide me or point me to > some code and/or documentation that might help me.
There's no method for drawing a single pixel, because developers shouldn't use such a method. Drawing several pixels with one call for each pixel is very much overhead. Instead you should lock the surface data via Lock() and write all pixels yourself. If you like you can use FillRectangle() with size 1x1. It has the same overhead as a DrawPixel() method would have. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
