public class GLKEffectPropertyLight extends GLKEffectProperty
GLKEffectPropertyLight provides a single directional or spot light for an GLKEffect in accordance with the OpenGL ES 1.1 specification.
Per the OpenGL ES 1.1 specification, light position and directions are transformed by the modelview matrix. Accordingly, GLKEffectPropertyLight has a transform property. If light transformation is required the transform property must be explicitly set for light properties.
In order for lighting calculations to function properly, clients of GLKEffectPropertyLight must enable the vertex attribute array GLKVertexAttribNormal to provide normals for lighting calculations. The normals are always normalized.
The default values for GLKEffectPropertyLight properties are as follows:
{ 0, 0, 1, 0}, // position { 0, 0, 0, 1}, // ambient color { 1, 1, 1, 1}, // diffuse color { 1, 1, 1, 1}, // specular color { 0, 0, -1}, // spot direction 0, // spot exponent 180, // spot cutoff 1, // constant attenuation 0, // linear attenuation 0, // quadratic attenuation
Note that, as with OpenGL ES 1.1 differentiation between a directional and spot light pivots on the value specified for _spotCutoff. A _spotCutoff of 180.0, the default value, indicates a directional light while values less than 180.0 indicates a spot light.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GLKEffectPropertyLight(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static GLKEffectPropertyLight |
alloc() |
static GLKEffectPropertyLight |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
GLKVector4 |
ambientColor()
{ 0.0, 0.0, 0.0, 1.0 }
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
float |
constantAttenuation()
1.0, 0.0, 0.0
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
GLKVector4 |
diffuseColor()
{ 1.0, 1.0, 1.0, 1.0 }
|
byte |
enabled()
GL_TRUE
|
static long |
hash_static() |
GLKEffectPropertyLight |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
float |
linearAttenuation()
1.0, 0.0, 0.0
|
static GLKEffectPropertyLight |
new_objc() |
GLKVector4 |
position()
{ 0.0, 0.0, 0.0, 1.0 }
|
float |
quadraticAttenuation()
1.0, 0.0, 0.0
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAmbientColor(GLKVector4 value)
{ 0.0, 0.0, 0.0, 1.0 }
|
void |
setConstantAttenuation(float value)
1.0, 0.0, 0.0
|
void |
setDiffuseColor(GLKVector4 value)
{ 1.0, 1.0, 1.0, 1.0 }
|
void |
setEnabled(byte value)
GL_TRUE
|
void |
setLinearAttenuation(float value)
1.0, 0.0, 0.0
|
void |
setPosition(GLKVector4 value)
{ 0.0, 0.0, 0.0, 1.0 }
|
void |
setQuadraticAttenuation(float value)
1.0, 0.0, 0.0
|
void |
setSpecularColor(GLKVector4 value)
{ 1.0, 1.0, 1.0, 1.0 }
|
void |
setSpotCutoff(float value)
180.0
|
void |
setSpotDirection(GLKVector3 value)
{ 0.0, 0.0, -1.0 }
|
void |
setSpotExponent(float value)
0.0
|
void |
setTransform(GLKEffectPropertyTransform value)
All identity matrices
|
static void |
setVersion_static(long aVersion) |
GLKVector4 |
specularColor()
{ 1.0, 1.0, 1.0, 1.0 }
|
float |
spotCutoff()
180.0
|
GLKVector3 |
spotDirection()
{ 0.0, 0.0, -1.0 }
|
float |
spotExponent()
0.0
|
static org.moe.natj.objc.Class |
superclass_static() |
GLKEffectPropertyTransform |
transform()
All identity matrices
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected GLKEffectPropertyLight(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static GLKEffectPropertyLight alloc()
public static GLKEffectPropertyLight allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static GLKEffectPropertyLight new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public GLKVector4 ambientColor()
public float constantAttenuation()
public GLKVector4 diffuseColor()
public byte enabled()
public GLKEffectPropertyLight init()
init in class GLKEffectPropertypublic float linearAttenuation()
public GLKVector4 position()
public float quadraticAttenuation()
public void setAmbientColor(GLKVector4 value)
public void setConstantAttenuation(float value)
public void setDiffuseColor(GLKVector4 value)
public void setEnabled(byte value)
public void setLinearAttenuation(float value)
public void setPosition(GLKVector4 value)
public void setQuadraticAttenuation(float value)
public void setSpecularColor(GLKVector4 value)
public void setSpotCutoff(float value)
public void setSpotDirection(GLKVector3 value)
public void setSpotExponent(float value)
public void setTransform(GLKEffectPropertyTransform value)
public GLKVector4 specularColor()
public float spotCutoff()
public GLKVector3 spotDirection()
public float spotExponent()
public GLKEffectPropertyTransform transform()