All Classes |Grouped Classes |Index

Function texture

Draw a textured rectangle.

	static void CL_Draw::texture(
		CL_GraphicContext & gc,
		const CL_Rectf & rect,
		const CL_Colorf & color = CL_Colorf::white ,
		const CL_Rectf & texture_unit1_coords = CL_Rectf (0.0, 0.0, 1.0, 1.0));

	static void CL_Draw::texture(
		CL_GraphicContext & gc,
		const CL_Texture & texture,
		const CL_Quadf & quad,
		const CL_Colorf & color = CL_Colorf::white ,
		const CL_Rectf & texture_unit1_coords = CL_Rectf (0.0, 0.0, 1.0, 1.0));

Detailed description:

This is a convenience function. If using repeatedly, it is a lot faster to use CL_PrimitivesArray with gc.draw_primitives instead