![]() |
Oolite 1.91.0.7668-250429-8542c40
|
#include <OOBasicMaterial.h>
Private Attributes | |
NSString * | materialName |
GLfloat | diffuse [4] |
GLfloat | specular [4] |
GLfloat | ambient [4] |
GLfloat | emission [4] |
uint8_t | shininess |
Additional Inherited Members | |
![]() | |
(void) | + setUp |
(void) | + applyNone |
(OOMaterial *) | + current |
(OOMaterial *) | + materialWithName:cacheKey:configuration:macros:bindingTarget:forSmoothedMesh: |
(OOMaterial *) | + materialWithName:cacheKey:materialDictionary:shadersDictionary:macros:bindingTarget:forSmoothedMesh: |
(NSDictionary *) | + synthesizeMaterialDictionaryWithName:configuration:macros: [implementation] |
(OOMaterial *) | + defaultShaderMaterialWithName:cacheKey:configuration:macros:bindingTarget: [implementation] |
Definition at line 37 of file OOBasicMaterial.h.
|
implementation |
Reimplemented from OOMaterial.
Reimplemented in OOSingleTextureMaterial.
Definition at line 342 of file OOBasicMaterial.m.
References allTextures.
Referenced by allTextures.
- (OOColor *) ambientColor |
Definition at line 182 of file OOBasicMaterial.m.
References ambientColor, and OOColor::colorWithRed:green:blue:alpha:.
Referenced by ambientColor.
|
implementation |
Reimplemented from OOMaterial.
Reimplemented in OOSingleTextureMaterial.
Definition at line 92 of file OOBasicMaterial.m.
References dealloc, OOMaterial::dealloc, and OOMaterial::willDealloc.
Referenced by dealloc, and OOSingleTextureMaterial::dealloc.
- (OOColor *) diffuseColor |
Definition at line 133 of file OOBasicMaterial.m.
References OOColor::colorWithRed:green:blue:alpha:, and diffuseColor.
Referenced by diffuseColor, and initWithName:configuration:.
|
implementation |
Reimplemented from OOMaterial.
Reimplemented in OOSingleTextureMaterial.
Definition at line 107 of file OOBasicMaterial.m.
References ambient, OOTexture::applyNone, diffuse, doApply, emission, FACE, OOGL, shininess, and specular.
Referenced by doApply, and unapplyWithNext:.
- (OOColor *) emmisionColor |
Definition at line 203 of file OOBasicMaterial.m.
References OOColor::colorWithRed:green:blue:alpha:, and emmisionColor.
Referenced by emmisionColor.
- (void) getAmbientComponents: | (GLfloat[4]) | outComponents |
Definition at line 255 of file OOBasicMaterial.m.
References ambient.
- (void) getDiffuseComponents: | (GLfloat[4]) | outComponents |
Definition at line 224 of file OOBasicMaterial.m.
References diffuse.
- (void) getEmissionComponents: | (GLfloat[4]) | outComponents |
Definition at line 267 of file OOBasicMaterial.m.
References emission.
- (void) getSpecularComponents: | (GLfloat[4]) | outComponents |
Definition at line 243 of file OOBasicMaterial.m.
References specular.
- (id) initWithName: | (NSString *) | name |
Definition at line 44 of file OOBasicMaterial.m.
References emission, EXPECT_NOT, materialName, nil, setAmbientRed:green:blue:alpha:, setDiffuseRed:green:blue:alpha:, and specular.
Referenced by initWithName:configuration:.
- (id) initWithName: | (NSString *) | name | |
configuration: | (NSDictionary *) | configuration |
Reimplemented in OOSingleTextureMaterial.
Definition at line 60 of file OOBasicMaterial.m.
References OOColor::colorWithDescription:, diffuseColor, EXPECT_NOT, initWithName:, nil, permitSpecular, setAmbientColor:, setDiffuseColor:, setEmissionColor:, setShininess:, and setSpecularColor:.
Referenced by OOSingleTextureMaterial::initWithName:texture:configuration:.
|
implementation |
Reimplemented from OOMaterial.
Definition at line 101 of file OOBasicMaterial.m.
References materialName, and name.
Referenced by OOSingleTextureMaterial::initWithName:configuration:, OOSingleTextureMaterial::initWithName:texture:configuration:, and name.
- (BOOL) permitSpecular |
Definition at line 335 of file OOBasicMaterial.m.
References permitSpecular.
Referenced by initWithName:configuration:, permitSpecular, and shininess.
- (void) setAmbientAndDiffuseColor: | (OOColor *) | color |
Definition at line 154 of file OOBasicMaterial.m.
References setAmbientColor:, and setDiffuseColor:.
- (void) setAmbientAndDiffuseComponents: | (const GLfloat[4]) | components |
Definition at line 236 of file OOBasicMaterial.m.
References setAmbientComponents:, and setDiffuseComponents:.
- (void) setAmbientAndDiffuseRed: | (GLfloat) | r | |
green: | (GLfloat) | g | |
blue: | (GLfloat) | b | |
alpha: | (GLfloat) | a |
Definition at line 288 of file OOBasicMaterial.m.
References setAmbientRed:green:blue:alpha:, and setDiffuseRed:green:blue:alpha:.
- (void) setAmbientColor: | (OOColor *) | color |
Definition at line 191 of file OOBasicMaterial.m.
References OOColor::alphaComponent, OOColor::blueComponent, OOColor::greenComponent, nil, OOColor::redComponent, and setAmbientRed:green:blue:alpha:.
Referenced by initWithName:configuration:, and setAmbientAndDiffuseColor:.
- (void) setAmbientComponents: | (const GLfloat[4]) | components |
Definition at line 261 of file OOBasicMaterial.m.
References ambient.
Referenced by setAmbientAndDiffuseComponents:.
- (void) setAmbientRed: | (GLfloat) | r | |
green: | (GLfloat) | g | |
blue: | (GLfloat) | b | |
alpha: | (GLfloat) | a |
Definition at line 304 of file OOBasicMaterial.m.
References ambient.
Referenced by initWithName:, setAmbientAndDiffuseRed:green:blue:alpha:, and setAmbientColor:.
- (void) setDiffuseColor: | (OOColor *) | color |
Definition at line 142 of file OOBasicMaterial.m.
References OOColor::alphaComponent, OOColor::blueComponent, OOColor::greenComponent, nil, OOColor::redComponent, and setDiffuseRed:green:blue:alpha:.
Referenced by initWithName:configuration:, and setAmbientAndDiffuseColor:.
- (void) setDiffuseComponents: | (const GLfloat[4]) | components |
Definition at line 230 of file OOBasicMaterial.m.
References diffuse.
Referenced by setAmbientAndDiffuseComponents:.
- (void) setDiffuseRed: | (GLfloat) | r | |
green: | (GLfloat) | g | |
blue: | (GLfloat) | b | |
alpha: | (GLfloat) | a |
Definition at line 279 of file OOBasicMaterial.m.
References diffuse.
Referenced by initWithName:, setAmbientAndDiffuseRed:green:blue:alpha:, and setDiffuseColor:.
- (void) setEmissionColor: | (OOColor *) | color |
Definition at line 212 of file OOBasicMaterial.m.
References OOColor::alphaComponent, OOColor::blueComponent, OOColor::greenComponent, nil, OOColor::redComponent, and setEmissionRed:green:blue:alpha:.
Referenced by initWithName:configuration:.
- (void) setEmissionComponents: | (const GLfloat[4]) | components |
Definition at line 273 of file OOBasicMaterial.m.
References emission.
- (void) setEmissionRed: | (GLfloat) | r | |
green: | (GLfloat) | g | |
blue: | (GLfloat) | b | |
alpha: | (GLfloat) | a |
Definition at line 313 of file OOBasicMaterial.m.
References emission.
Referenced by setEmissionColor:.
- (void) setShininess: | (uint8_t) | value |
Definition at line 329 of file OOBasicMaterial.m.
References MIN, and shininess.
Referenced by initWithName:configuration:.
- (void) setSpecularColor: | (OOColor *) | color |
Definition at line 170 of file OOBasicMaterial.m.
References OOColor::alphaComponent, OOColor::blueComponent, OOColor::greenComponent, nil, OOColor::redComponent, and setSpecularRed:green:blue:alpha:.
Referenced by initWithName:configuration:.
- (void) setSpecularComponents: | (const GLfloat[4]) | components |
Definition at line 249 of file OOBasicMaterial.m.
References specular.
- (void) setSpecularRed: | (GLfloat) | r | |
green: | (GLfloat) | g | |
blue: | (GLfloat) | b | |
alpha: | (GLfloat) | a |
Definition at line 295 of file OOBasicMaterial.m.
References specular.
Referenced by setSpecularColor:.
- (uint8_t) shininess |
- (OOColor *) specularColor |
Definition at line 161 of file OOBasicMaterial.m.
References OOColor::colorWithRed:green:blue:alpha:, and specularColor.
Referenced by specularColor.
|
implementation |
Reimplemented from OOMaterial.
Reimplemented in OOSingleTextureMaterial.
Definition at line 123 of file OOBasicMaterial.m.
References doApply, EXPECT_NOT, nil, and sDefaultMaterial.
Referenced by OOSingleTextureMaterial::unapplyWithNext:.
|
private |
Definition at line 45 of file OOBasicMaterial.h.
Referenced by doApply, getAmbientComponents:, setAmbientComponents:, and setAmbientRed:green:blue:alpha:.
|
private |
Definition at line 43 of file OOBasicMaterial.h.
Referenced by doApply, getDiffuseComponents:, setDiffuseComponents:, and setDiffuseRed:green:blue:alpha:.
|
private |
Definition at line 46 of file OOBasicMaterial.h.
Referenced by doApply, getEmissionComponents:, initWithName:, setEmissionComponents:, and setEmissionRed:green:blue:alpha:.
|
private |
Definition at line 40 of file OOBasicMaterial.h.
Referenced by initWithName:, and name.
|
private |
Definition at line 323 of file OOBasicMaterial.m.
Referenced by doApply, setShininess:, and shininess.
|
private |
Definition at line 44 of file OOBasicMaterial.h.
Referenced by doApply, getSpecularComponents:, initWithName:, setSpecularComponents:, and setSpecularRed:green:blue:alpha:.