3.9. s3d_push_materials_a

#include <s3d.h>

int s3d_push_materials_a( int object, float *mbuf, unsigned short n );

Pushes a buffer of Materials. Those Materials are in the format float[n*12], with

of each entry. n is the number of materials pushed. The values are in the order r,g,b,a. If you only want to push one material, use the more easy s3d_push_material_a() function.


/* each line has r,g,b,a value */
float bla[24]=
	{1,0,0,1,
	 1,0,0,1,
	 1,0,0,1,
	 0,1,1,1,
	 0,1,1,1,
	 0,1,1,1};

s3d_push_materials_a(object,mbuf,2); /* push a red and a cyan material */