32 number = (
unsigned int) -1;
38 if ( number == (
unsigned int) (-1) ) {
60 if ( (number == (
unsigned int) -1) || number >=
materialinfo.size() )
73 glMaterialfv( GL_FRONT, GL_AMBIENT, matvect );
79 glMaterialfv( GL_FRONT, GL_DIFFUSE, matvect );
85 glMaterialfv( GL_FRONT, GL_SPECULAR, matvect );
91 glMaterialfv( GL_FRONT, GL_EMISSION, matvect );
108 glMaterialfv( GL_FRONT, GL_AMBIENT, matvect );
114 glMaterialfv( GL_FRONT, GL_DIFFUSE, matvect );
120 glMaterialfv( GL_FRONT, GL_SPECULAR, matvect );
122 matvect[0] = emissive.
r*emissive.
a;
123 matvect[1] = emissive.
g*emissive.
a;
124 matvect[2] = emissive.
b*emissive.
a;
125 matvect[3] = emissive.
a;
126 glMaterialfv( GL_FRONT, GL_EMISSION, matvect );
139 glMaterialfv( GL_FRONT, GL_AMBIENT, matvect );
145 glMaterialfv( GL_FRONT, GL_DIFFUSE, matvect );
151 glMaterialfv( GL_FRONT, GL_SPECULAR, matvect );
157 glMaterialfv( GL_FRONT, GL_EMISSION, matvect );