On 6/13/07, Chris Bore <[EMAIL PROTECTED]> wrote: > 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.
There isn't. DFB also has the IDirectFBSurface::TextureTriangles call, but that only works if there's hardware support. Look at the DFB example app df_knuckles for a 3D model being rotated. That's doing its own lighting calculations then calling DrawTriangles. _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users