Lines Matching refs:params
10 static GLboolean __handleLightData( GLenum light, GLenum pname, const GLfloat *params )
22 params_length = 4*sizeof( *params );
25 params_length = 3*sizeof( *params );
32 params_length = sizeof( *params );
44 WRITE_DATA( sizeof( int ) + 8, GLfloat, params[0] );
45 if (params_length > sizeof( *params ))
47 WRITE_DATA( sizeof( int ) + 12, GLfloat, params[1] );
48 WRITE_DATA( sizeof( int ) + 16, GLfloat, params[2] );
50 if (params_length > 3*sizeof( *params ))
52 WRITE_DATA( sizeof( int ) + 20, GLfloat, params[3] );
57 void PACK_APIENTRY crPackLightfv (GLenum light, GLenum pname, const GLfloat *params)
60 if (__handleLightData( light, pname, params ))
65 void PACK_APIENTRY crPackLightiv (GLenum light, GLenum pname, const GLint *params)
69 if (__handleLightData( light, pname, (const GLfloat *) params ))
74 static GLboolean __handleLightModelData( GLenum pname, const GLfloat *params )
83 params_length = 4*sizeof( *params );
87 params_length = sizeof( *params );
98 WRITE_DATA( sizeof( int ) + 4, GLfloat, params[0] );
99 if (params_length > sizeof( *params ))
101 WRITE_DATA( sizeof( int ) + 8, GLfloat, params[1] );
102 WRITE_DATA( sizeof( int ) + 12, GLfloat, params[2] );
103 WRITE_DATA( sizeof( int ) + 16, GLfloat, params[3] );
108 void PACK_APIENTRY crPackLightModelfv (GLenum pname, const GLfloat *params)
111 if (__handleLightModelData( pname, params ))
116 void PACK_APIENTRY crPackLightModeliv (GLenum pname, const GLint *params)
120 if (__handleLightModelData( pname, (const GLfloat *) params ))