Logo Search packages:      
Sourcecode: blender version File versions

void IMB_cspace ( struct ImBuf ibuf,
float  mat[][4] 
)

Attention:
Defined in cspace.c

Definition at line 148 of file cspace.c.

References IMB_cspace().

Referenced by IMB_cspace().

{
      short *cont_1,*cont_2,*cont_3,add[3];

      cont_1=(short *)malloc(256*3*sizeof(short));
      cont_2=(short *)malloc(256*3*sizeof(short));
      cont_3=(short *)malloc(256*3*sizeof(short));

      if (cont_1 && cont_2 && cont_3){

            fillmattab(mat[0][0],cont_1);
            fillmattab(mat[0][1],cont_1+1);
            fillmattab(mat[0][2],cont_1+2);

            fillmattab(mat[1][0],cont_2);
            fillmattab(mat[1][1],cont_2+1);
            fillmattab(mat[1][2],cont_2+2);

            fillmattab(mat[2][0],cont_3);
            fillmattab(mat[2][1],cont_3+1);
            fillmattab(mat[2][2],cont_3+2);

            add[0] = (mat[3][0] * 64.0) + .5;
            add[1] = (mat[3][1] * 64.0) + .5;
            add[2] = (mat[3][2] * 64.0) + .5;

            rotcspace(ibuf, cont_1, cont_2, cont_3, add);
      }

      if (cont_1) free(cont_1);
      if (cont_2) free(cont_2);
      if (cont_3) free(cont_3);
}


Generated by  Doxygen 1.6.0   Back to index