37#define FACE GL_FRONT_AND_BACK
41- (id)initWithName:(NSString*)name
57- (id)initWithName:(NSString*)name configuration:(NSDictionary*)configuration
66 if (configuration ==
nil)
97 [materialName release];
148- (void)setAmbientAndDiffuseColor:(
OOColor*)color
208- (void)getDiffuseComponents:(GLfloat[4])outComponents
210 memcpy(outComponents,
diffuse, 4 *
sizeof *outComponents);
213- (void)setDiffuseComponents:(const GLfloat[4])components
215 memcpy(
diffuse, components, 4 *
sizeof *components);
218- (void)setAmbientAndDiffuseComponents:(const GLfloat[4])components
224- (void)getSpecularComponents:(GLfloat[4])outComponents
226 memcpy(outComponents,
specular, 4 *
sizeof *outComponents);
229- (void)setSpecularComponents:(const GLfloat[4])components
231 memcpy(
specular, components, 4 *
sizeof *components);
234- (void)getAmbientComponents:(GLfloat[4])outComponents
236 memcpy(outComponents,
ambient, 4 *
sizeof *outComponents);
239- (void)setAmbientComponents:(const GLfloat[4])components
241 memcpy(
ambient, components, 4 *
sizeof *components);
244- (void)getEmissionComponents:(GLfloat[4])outComponents
246 memcpy(outComponents,
emission, 4 *
sizeof *outComponents);
249- (void)setEmissionComponents:(const GLfloat[4])components
251 memcpy(
emission, components, 4 *
sizeof *components);
254- (void)setDiffuseRed:(GLfloat)r green:(GLfloat)g blue:(GLfloat)b alpha:(GLfloat)a
262- (void)setAmbientAndDiffuseRed:(GLfloat)r green:(GLfloat)g blue:(GLfloat)b alpha:(GLfloat)a
268- (void)setSpecularRed:(GLfloat)r green:(GLfloat)g blue:(GLfloat)b alpha:(GLfloat)a
276- (void)setAmbientRed:(GLfloat)r green:(GLfloat)g blue:(GLfloat)b alpha:(GLfloat)a
284- (void)setEmissionRed:(GLfloat)r green:(GLfloat)g blue:(GLfloat)b alpha:(GLfloat)a
297- (void)setShininess:(uint8_t)value
304 return ![UNIVERSE reducedDetail];
307#ifdef OO_DEBUG_MONITOR_ENABLED
static OOBasicMaterial * sDefaultMaterial
void setAmbientRed:green:blue:alpha:(GLfloat r,[green] GLfloat g,[blue] GLfloat b,[alpha] GLfloat a)
void setShininess:(uint8_t value)
void setEmissionColor:(OOColor *color)
void setDiffuseColor:(OOColor *color)
id initWithName:(NSString *name)
void setSpecularColor:(OOColor *color)
OOColor * emmisionColor()
void setAmbientComponents:(const GLfloat[4] components)
void setSpecularRed:green:blue:alpha:(GLfloat r,[green] GLfloat g,[blue] GLfloat b,[alpha] GLfloat a)
OOColor * specularColor()
void setDiffuseComponents:(const GLfloat[4] components)
void setDiffuseRed:green:blue:alpha:(GLfloat r,[green] GLfloat g,[blue] GLfloat b,[alpha] GLfloat a)
void setEmissionRed:green:blue:alpha:(GLfloat r,[green] GLfloat g,[blue] GLfloat b,[alpha] GLfloat a)
void setAmbientColor:(OOColor *color)
OOColor * colorWithRed:green:blue:alpha:(float red,[green] float green,[blue] float blue,[alpha] float alpha)
OOColor * colorWithDescription:(id description)