| /xsrc/external/mit/mesa-demos/dist/src/redbook/ |
| H A D | fog.c | 112 float mat[4]; local in function:renderRedTeapot 116 mat[0] = 0.1745; 117 mat[1] = 0.01175; 118 mat[2] = 0.01175; 119 mat[3] = 1.0; 120 glMaterialfv(GL_FRONT, GL_AMBIENT, mat); 121 mat[0] = 0.61424; 122 mat[1] = 0.04136; 123 mat[2] = 0.04136; 124 glMaterialfv(GL_FRONT, GL_DIFFUSE, mat); [all...] |
| H A D | teapots.c | 92 float mat[4]; local in function:renderTeapot 96 mat[0] = ambr; 97 mat[1] = ambg; 98 mat[2] = ambb; 99 mat[3] = 1.0; 100 glMaterialfv(GL_FRONT, GL_AMBIENT, mat); 101 mat[0] = difr; 102 mat[1] = difg; 103 mat[2] = difb; 104 glMaterialfv(GL_FRONT, GL_DIFFUSE, mat); [all...] |
| H A D | dof.c | 163 float mat[4]; local in function:renderTeapot 167 mat[0] = ambr; mat[1] = ambg; mat[2] = ambb; mat[3] = 1.0; 168 glMaterialfv (GL_FRONT, GL_AMBIENT, mat); 169 mat[0] = difr; mat[1] = difg; mat[2] = difb; 170 glMaterialfv (GL_FRONT, GL_DIFFUSE, mat); [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/objviewer/ |
| H A D | glmdraw.c | 245 _glmLoadTexture(GLMmaterial *mat) argument 247 if (mat->map_kd) { 252 glGenTextures(1, &mat->texture_kd); 254 image = LoadRGBImage( mat->map_kd, &imgWidth, &imgHeight, &imgFormat ); 256 /*fprintf(stderr, "Couldn't open texture %s\n", mat->map_kd);*/ 257 free(mat->map_kd); 258 mat->map_kd = NULL; 259 mat->texture_kd = 0; 263 printf("load texture %s %d x %d\n", mat->map_kd, imgWidth, imgHeight); 265 glBindTexture(GL_TEXTURE_2D, mat 283 GLMmaterial *mat = &model->materials[i]; local in function:glmLoadTextures 420 glmShaderMaterial(GLMmaterial * mat) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/math/ |
| H A D | m_matrix.c | 111 * \param mat a pointer to a GLmatrix structure. 117 #define TEST_MAT_FLAGS(mat, a) \ 118 ((MAT_FLAGS_GEOMETRY & (~(a)) & ((mat)->flags) ) == 0) 212 * \param mat pointer to a GLmatrix structure containing the left multiplication 220 static void matrix_multf( GLmatrix *mat, const GLfloat *m, GLuint flags ) argument 222 mat->flags |= (flags | MAT_DIRTY_TYPE | MAT_DIRTY_INVERSE); 224 if (TEST_MAT_FLAGS(mat, MAT_FLAGS_3D)) 225 matmul34( mat->m, mat->m, m ); 227 matmul4( mat 351 invert_matrix_general(GLmatrix * mat) argument 371 invert_matrix_3d_general(GLmatrix * mat) argument 443 invert_matrix_3d(GLmatrix * mat) argument 523 invert_matrix_identity(GLmatrix * mat) argument 539 invert_matrix_3d_no_rot(GLmatrix * mat) argument 572 invert_matrix_2d_no_rot(GLmatrix * mat) argument 657 matrix_invert(GLmatrix * mat) argument 685 _math_matrix_rotate(GLmatrix * mat,GLfloat angle,GLfloat x,GLfloat y,GLfloat z) argument 869 _math_matrix_frustum(GLmatrix * mat,GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat nearval,GLfloat farval) argument 952 _math_matrix_ortho(GLmatrix * mat,GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat nearval,GLfloat farval) argument 977 _math_matrix_scale(GLmatrix * mat,GLfloat x,GLfloat y,GLfloat z) argument 1007 _math_matrix_translate(GLmatrix * mat,GLfloat x,GLfloat y,GLfloat z) argument 1049 _math_matrix_set_identity(GLmatrix * mat) argument 1117 analyse_from_scratch(GLmatrix * mat) argument 1230 analyse_from_flags(GLmatrix * mat) argument 1279 _math_matrix_analyse(GLmatrix * mat) argument 1391 _math_matrix_loadf(GLmatrix * mat,const GLfloat * m) argument [all...] |
| H A D | m_xform.h | 114 typedef void (*normal_func)(const GLmatrix *mat, 155 #define TransformRaw( to, mat, from ) \ 156 ( _mesa_transform_tab[(from)->size][(mat)->type]( to, (mat)->m, from ), \
|
| H A D | m_debug_norm.c | 123 static void ref_norm_transform_rescale( const GLmatrix *mat, argument 131 const GLfloat *m = mat->inv; 146 static void ref_norm_transform_normalize( const GLmatrix *mat, argument 154 const GLfloat *m = mat->inv; 199 GLmatrix mat[1]; local in function:test_norm_function 211 mat->m = align_malloc( 16 * sizeof(GLfloat), 16 ); 212 mat->inv = m = mat->m; 278 ref_norm_transform_rescale( mat, scale, source, NULL, ref ); 280 ref_norm_transform_normalize( mat, scal [all...] |
| H A D | m_matrix.h | 97 _math_matrix_loadf( GLmatrix *mat, const GLfloat *m ); 100 _math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z ); 107 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z ); 116 _math_matrix_ortho( GLmatrix *mat, 122 _math_matrix_frustum( GLmatrix *mat, 141 _math_matrix_analyse( GLmatrix *mat );
|
| H A D | m_norm_tmp.h | 35 * mat - the 4x4 transformation matrix 43 TAG(transform_normalize_normals)( const GLmatrix *mat, 53 const GLfloat *m = mat->inv; 110 TAG(transform_normalize_normals_no_rot)( const GLmatrix *mat, 120 const GLfloat *m = mat->inv; 175 TAG(transform_rescale_normals_no_rot)( const GLmatrix *mat, 185 const GLfloat *m = mat->inv; 204 TAG(transform_rescale_normals)( const GLmatrix *mat, 217 const GLfloat *m = mat->inv; 236 TAG(transform_normals_no_rot)( const GLmatrix *mat, [all...] |
| H A D | m_debug_xform.c | 136 const GLmatrix *mat, 142 const GLfloat *m = mat->m; 171 GLmatrix mat[1]; local in function:test_transform_function 185 mat->m = align_malloc( 16 * sizeof(GLfloat), 16 ); 186 mat->type = mtypes[mtype]; 188 m = mat->m; 242 ref_transform( ref, mat, source ); 246 func( dest, mat->m, source ); 250 func( dest, mat->m, source ); 275 align_free( mat 135 ref_transform(GLvector4f * dst,const GLmatrix * mat,const GLvector4f * src) argument [all...] |
| /xsrc/external/mit/xedit/dist/lisp/re/ |
| H A D | tests.c | 44 re_mat mat[10]; local in function:main 123 ecode = reexec(&cod, str, 10, &mat[0], 0); 183 else if (so != mat[group].rm_so || eo != mat[group].rm_eo) { 185 line, mat[group].rm_so, mat[group].rm_eo); 186 if (mat[group].rm_so < mat[group].rm_eo) 187 fwrite(str + mat[group].rm_so, 188 mat[grou [all...] |
| /xsrc/external/mit/glu/dist/src/libnurbs/interface/ |
| H A D | glrenderer.cc | 280 GLUnurbs::transform4d(GLfloat A[4], GLfloat B[4], GLfloat mat[4][4]) argument 283 A[0] = B[0]*mat[0][0] + B[1]*mat[1][0] + B[2]*mat[2][0] + B[3]*mat[3][0]; 284 A[1] = B[0]*mat[0][1] + B[1]*mat[1][1] + B[2]*mat[2][1] + B[3]*mat[3][1]; 285 A[2] = B[0]*mat[ [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/math/ |
| H A D | m_xform.h | 114 typedef void (*normal_func)(const GLmatrix *mat, 155 #define TransformRaw( to, mat, from ) \ 156 ( _mesa_transform_tab[(from)->size][(mat)->type]( to, (mat)->m, from ), \
|
| H A D | m_matrix.c | 107 * \param mat a pointer to a GLmatrix structure. 113 #define TEST_MAT_FLAGS(mat, a) \ 114 ((MAT_FLAGS_GEOMETRY & (~(a)) & ((mat)->flags) ) == 0) 208 * \param mat pointer to a GLmatrix structure containing the left multiplication 216 static void matrix_multf( GLmatrix *mat, const GLfloat *m, GLuint flags ) argument 218 mat->flags |= (flags | MAT_DIRTY_TYPE | MAT_DIRTY_INVERSE); 220 if (TEST_MAT_FLAGS(mat, MAT_FLAGS_3D)) 221 matmul34( mat->m, mat->m, m ); 223 matmul4( mat 354 invert_matrix_general(GLmatrix * mat) argument 482 invert_matrix_3d_general(GLmatrix * mat) argument 554 invert_matrix_3d(GLmatrix * mat) argument 634 invert_matrix_identity(GLmatrix * mat) argument 650 invert_matrix_3d_no_rot(GLmatrix * mat) argument 683 invert_matrix_2d_no_rot(GLmatrix * mat) argument 768 matrix_invert(GLmatrix * mat) argument 796 _math_matrix_rotate(GLmatrix * mat,GLfloat angle,GLfloat x,GLfloat y,GLfloat z) argument 980 _math_matrix_frustum(GLmatrix * mat,GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat nearval,GLfloat farval) argument 1020 _math_matrix_ortho(GLmatrix * mat,GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat nearval,GLfloat farval) argument 1066 _math_matrix_scale(GLmatrix * mat,GLfloat x,GLfloat y,GLfloat z) argument 1096 _math_matrix_translate(GLmatrix * mat,GLfloat x,GLfloat y,GLfloat z) argument 1138 _math_matrix_set_identity(GLmatrix * mat) argument 1203 analyse_from_scratch(GLmatrix * mat) argument 1316 analyse_from_flags(GLmatrix * mat) argument 1365 _math_matrix_analyse(GLmatrix * mat) argument 1457 _math_matrix_loadf(GLmatrix * mat,const GLfloat * m) argument [all...] |
| H A D | m_debug_norm.c | 124 static void ref_norm_transform_rescale( const GLmatrix *mat, argument 132 const GLfloat *m = mat->inv; 147 static void ref_norm_transform_normalize( const GLmatrix *mat, argument 155 const GLfloat *m = mat->inv; 200 GLmatrix mat[1]; local in function:test_norm_function 212 mat->m = _mesa_align_malloc( 16 * sizeof(GLfloat), 16 ); 213 mat->inv = m = mat->m; 279 ref_norm_transform_rescale( mat, scale, source, NULL, ref ); 281 ref_norm_transform_normalize( mat, scal [all...] |
| H A D | m_matrix.h | 100 _math_matrix_loadf( GLmatrix *mat, const GLfloat *m ); 103 _math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z ); 110 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z ); 113 _math_matrix_ortho( GLmatrix *mat, 119 _math_matrix_frustum( GLmatrix *mat, 135 _math_matrix_analyse( GLmatrix *mat );
|
| H A D | m_norm_tmp.h | 35 * mat - the 4x4 transformation matrix 43 TAG(transform_normalize_normals)( const GLmatrix *mat, 53 const GLfloat *m = mat->inv; 110 TAG(transform_normalize_normals_no_rot)( const GLmatrix *mat, 120 const GLfloat *m = mat->inv; 175 TAG(transform_rescale_normals_no_rot)( const GLmatrix *mat, 185 const GLfloat *m = mat->inv; 204 TAG(transform_rescale_normals)( const GLmatrix *mat, 217 const GLfloat *m = mat->inv; 236 TAG(transform_normals_no_rot)( const GLmatrix *mat, [all...] |
| H A D | m_debug_xform.c | 137 const GLmatrix *mat, 143 const GLfloat *m = mat->m; 172 GLmatrix mat[1]; local in function:test_transform_function 186 mat->m = _mesa_align_malloc( 16 * sizeof(GLfloat), 16 ); 187 mat->type = mtypes[mtype]; 189 m = mat->m; 243 ref_transform( ref, mat, source ); 247 func( dest, mat->m, source ); 251 func( dest, mat->m, source ); 276 _mesa_align_free( mat 136 ref_transform(GLvector4f * dst,const GLmatrix * mat,const GLvector4f * src) argument [all...] |
| /xsrc/external/mit/glu/dist/src/libnurbs/internals/ |
| H A D | mapdesc.cc | 84 Mapdesc::setBboxsize( INREAL *mat ) argument 87 bboxsize[i] = (REAL) mat[i]; 287 Mapdesc::xformRational( Maxmatrix mat, REAL *d, REAL *s ) argument 295 d[0] = x*mat[0][0]+y*mat[1][0]+z*mat[2][0]; 296 d[1] = x*mat[0][1]+y*mat[1][1]+z*mat[2][1]; 297 d[2] = x*mat[ 321 xformNonrational(Maxmatrix mat,REAL * d,REAL * s) argument 517 xformMat(Maxmatrix mat,REAL * pts,int order,int stride,REAL * cp,int outstride) argument 541 xformMat(Maxmatrix mat,REAL * pts,int uorder,int ustride,int vorder,int vstride,REAL * cp,int outustride,int outvstride) argument [all...] |
| H A D | mapdesc.h | 150 Mapdesc::setBmat( INREAL *mat, long rstride, long cstride ) argument 152 copy( bmat, hcoords, mat, rstride, cstride ); 156 Mapdesc::setCmat( INREAL *mat, long rstride, long cstride ) argument 158 copy( cmat, hcoords, mat, rstride, cstride ); 162 Mapdesc::setSmat( INREAL *mat, long rstride, long cstride ) argument 164 copy( smat, hcoords, mat, rstride, cstride );
|
| /xsrc/external/mit/fontconfig/dist/src/ |
| H A D | fcmatrix.c | 33 FcMatrixCopy (const FcMatrix *mat) argument 36 if(!mat) 41 *r = *mat; 46 FcMatrixFree (FcMatrix *mat) argument 48 if (mat != &FcIdentityMatrix) 49 free (mat);
|
| /xsrc/external/mit/mesa-demos/dist/src/glsl/ |
| H A D | geom-outlining-150.c | 51 mat_identity(GLfloat mat[16]) argument 53 memset(mat, 0, 16*sizeof(GLfloat)); 54 mat[0] = mat[5] = mat[10] = mat[15] = 1.0; 59 mat_translate(GLfloat mat[16], float tx, float ty, float tz) argument 61 mat_identity(mat); 62 mat[12] = tx; 63 mat[1 69 mat_frustum(GLfloat mat[16],GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat nearval,GLfloat farval) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/main/ |
| H A D | light.c | 678 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; local in function:_mesa_update_material 694 mat[MAT_ATTRIB_FRONT_AMBIENT]); 705 mat[MAT_ATTRIB_BACK_AMBIENT]); 711 COPY_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_EMISSION] ); 712 ACC_SCALE_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_AMBIENT], 717 COPY_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_EMISSION] ); 718 ACC_SCALE_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_AMBIENT], 730 mat[MAT_ATTRIB_FRONT_DIFFUSE] ); 741 mat[MAT_ATTRIB_BACK_DIFFUSE] ); 753 mat[MAT_ATTRIB_FRONT_SPECULA 779 struct gl_material *mat = &ctx->Light.Material; local in function:_mesa_update_color_material 837 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; local in function:_mesa_GetMaterialfv 889 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; local in function:_mesa_GetMaterialiv [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| H A D | light.c | 614 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; local in function:_mesa_update_material 629 mat[MAT_ATTRIB_FRONT_AMBIENT]); 639 mat[MAT_ATTRIB_BACK_AMBIENT]); 645 COPY_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_EMISSION] ); 646 ACC_SCALE_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_AMBIENT], 651 COPY_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_EMISSION] ); 652 ACC_SCALE_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_AMBIENT], 663 mat[MAT_ATTRIB_FRONT_DIFFUSE] ); 673 mat[MAT_ATTRIB_BACK_DIFFUSE] ); 684 mat[MAT_ATTRIB_FRONT_SPECULA 709 struct gl_material *mat = &ctx->Light.Material; local in function:_mesa_update_color_material 765 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; local in function:_mesa_GetMaterialfv 817 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; local in function:_mesa_GetMaterialiv [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/tnl/ |
| H A D | t_vb_light.c | 71 struct material_cursor mat[MAT_ATTRIB_MAX]; member in struct:light_stage_data 204 COPY_CLEAN_4V(store->mat[i].current, store->mat[i].size, store->mat[i].ptr); 206 STRIDE_F(store->mat[i].ptr, store->mat[i].stride); 253 store->mat[j].ptr = VB->AttribPtr[i]->start; 254 store->mat[j].stride = VB->AttribPtr[i]->stride; 255 store->mat[j].size = VB->AttribPtr[i]->size; 256 store->mat[ [all...] |