Thanks, but FillTriangle seems just to fill a triangle.

Flat shading, I think, requires a lighting model and a calculation based on
the angle of incidence of the illumination, and its and the surface's color.
I can't see a way to specify these with FillTriangle.

Chris

-----Original Message-----
From: Claudio Ciccani [mailto:[EMAIL PROTECTED] 
Sent: 13 June 2007 12:53
To: [EMAIL PROTECTED]
Cc: directfb-users@directfb.org
Subject: Re: [directfb-users] Flat shaded triangles?

Chris Bore wrote:
> The 'What is DirectFB?' says that flat shaded triangles are supported.
> 
> But I could not find the function to do this.
> 
> I'd be grateful for advice.
> 
> Thanks,
> 

See FillTriangle().
http://directfb.org/docs/DirectFB_Reference/IDirectFBSurface_FillTriangle.ht
ml

--
Regards,
     Claudio Ciccani

[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb


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

Reply via email to