http://www.directfb.org
index.html
DirectFB Reference Manual
IDirectFBSurface.html
IDirectFBSurface
TextureTriangles
Preliminary texture mapping support.
TextureTriangles (
IDirectFBSurface.html
IDirectFBSurface
*
thiz,
IDirectFBSurface.html
IDirectFBSurface
*
texture,
const
types.html#DFBVertex
DFBVertex
*
vertices,
const int
*
indices,
int
num,
types.html#DFBTriangleFormation
DFBTriangleFormation
formation
);
Maps a
texture
onto triangles being built from
vertices
according to the chosen
formation
.
Optional
indices
can be used to avoid rearrangement of vertex lists, otherwise the vertex list is processed consecutively, i.e. as if
indices
are ascending numbers starting at zero.
Either the number of
indices
(if non NULL) or the number of
vertices
is specified by
num
and has to be three at least. If the chosen
formation
is DTTF_LIST it also has to be a multiple of three.
