You can lock the Surface and draw a single pixel directly to it, but
personally I think that is wrong. You should use the DrawLine function with
a line length of 1. This is slow but it uses the API as it is intended and
avoids the risk of your assumed knowledge of the storage of the Surface
being incorrect in some situations.

By asking what algorithms are used for these drawing functions, I assume you
are asking how the drawing is implemented and not just the functions to do
it (like DrawRectangle, DrawLine)? This will depend on the platform, and on
whether hardware acceleration is used. For instance on one platform I know,
the DrawLine when using hardware is slower than when using a software
implementation: but the hardware does antialiasing while the software does
not. these issues of particular platforms, and even of different choices on
the same platform, can be very subtle but should always be assumed to be
platform-dependent - that is, you should never assume a particular
implementation unless you want to be stuck to one platform for ever.

Chris
=====================
Chris Bore
BORES Signal Processing
www.bores.com

-----Original Message-----
From: directfb-users-boun...@directfb.org
[mailto:directfb-users-boun...@directfb.org] On Behalf Of
tomaszdro...@interia.eu
Sent: 21 October 2009 17:43
To: directfb-users@directfb.org
Subject: [directfb-users] Method for drawing single pixel. Line, rectangle,
triangle drawing algorithms implemented in directFB

I would like to know what algorithms are used to draw
- line
- rectangle
- triangle
in directFB.

I wont to have possibility to draw single pixel.
I think of use DrawLine(), but
- is there a better way, eg some method to get into one pixel/ to get into
frame buffer?

I need function to draw one pixel, for further shapes drawing - eg ellipse.


----------------------------------------------------------------------
Zobacz najwiekszy samolot na swiecie!  
Kliknij >>> http://link.interia.pl/f238f

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to