Home | All Classes | Grouped Classes | Index | Search

CL_GraphicContext::draw_trianglesd

Draw triangle array with color array (optionally textured). Draw triangles with single color (optionally textured).

	void draw_trianglesd(
		unsigned int count, bool fill, double* vertices, const CL_Color& color, double* uv=0, CL_Surface* texture=0);

	void draw_trianglesd(
		unsigned int count, bool fill, double* vertices, double* color, double* uv=0, CL_Surface* texture=0);

Parameters:

unsigned int count
number of triangles to draw
bool fill
draw filled/outline
double *vertices
pointer to array of triangle vertices (x y z x y z x...)
double *color
pointer to array of triangle vertice colors (r b g a r g b a r...)
int *uv
(optional) pointer to array of triangle vertice texture coordinates (u v u v u...)
CL_Surface *texture
(optional) texture to use
unsigned int count
number of triangles to draw
bool fill
draw filled/outline
double *vertices
pointer to array of triangle vertices (x y z x y z x...)
CL_Color &color
triangle color
double *uv
(optional) pointer to array of triangle vertice texture coordinates (u v u v u...)
CL_Surface *texture
(optional) texture to use

Detailed description:

double color array, range: 0-1 double (0-1) texture coordinates

single color double (0-1) texture coordinates

See also:

CL_Color | CL_GraphicContext | CL_Surface



Questions or comments, write to the ClanLib mailing list.