Package apple.glkit
Class GLKEffectPropertyLight
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.glkit.GLKEffectProperty
-
- apple.glkit.GLKEffectPropertyLight
-
- All Implemented Interfaces:
NSObject
public class GLKEffectPropertyLight extends GLKEffectProperty
GLKEffectPropertyLight 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGLKEffectPropertyLight(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static GLKEffectPropertyLightalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)GLKVector4ambientColor(){ 0.0, 0.0, 0.0, 1.0 }static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()floatconstantAttenuation()1.0, 0.0, 0.0static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()GLKVector4diffuseColor(){ 1.0, 1.0, 1.0, 1.0 }byteenabled()GL_TRUEstatic longhash_static()GLKEffectPropertyLightinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)floatlinearAttenuation()1.0, 0.0, 0.0static java.lang.Objectnew_objc()GLKVector4position(){ 0.0, 0.0, 0.0, 1.0 }floatquadraticAttenuation()1.0, 0.0, 0.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAmbientColor(GLKVector4 value){ 0.0, 0.0, 0.0, 1.0 }voidsetConstantAttenuation(float value)1.0, 0.0, 0.0voidsetDiffuseColor(GLKVector4 value){ 1.0, 1.0, 1.0, 1.0 }voidsetEnabled(byte value)GL_TRUEvoidsetLinearAttenuation(float value)1.0, 0.0, 0.0voidsetPosition(GLKVector4 value){ 0.0, 0.0, 0.0, 1.0 }voidsetQuadraticAttenuation(float value)1.0, 0.0, 0.0voidsetSpecularColor(GLKVector4 value){ 1.0, 1.0, 1.0, 1.0 }voidsetSpotCutoff(float value)180.0voidsetSpotDirection(GLKVector3 value){ 0.0, 0.0, -1.0 }voidsetSpotExponent(float value)0.0voidsetTransform(GLKEffectPropertyTransform value)All identity matricesstatic voidsetVersion_static(long aVersion)GLKVector4specularColor(){ 1.0, 1.0, 1.0, 1.0 }floatspotCutoff()180.0GLKVector3spotDirection(){ 0.0, 0.0, -1.0 }floatspotExponent()0.0static org.moe.natj.objc.Classsuperclass_static()GLKEffectPropertyTransformtransform()All identity matricesstatic longversion_static()-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static GLKEffectPropertyLight alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
ambientColor
public GLKVector4 ambientColor()
{ 0.0, 0.0, 0.0, 1.0 }
-
constantAttenuation
public float constantAttenuation()
1.0, 0.0, 0.0
-
diffuseColor
public GLKVector4 diffuseColor()
{ 1.0, 1.0, 1.0, 1.0 }
-
enabled
public byte enabled()
GL_TRUE
-
init
public GLKEffectPropertyLight init()
- Overrides:
initin classGLKEffectProperty
-
linearAttenuation
public float linearAttenuation()
1.0, 0.0, 0.0
-
position
public GLKVector4 position()
{ 0.0, 0.0, 0.0, 1.0 }
-
quadraticAttenuation
public float quadraticAttenuation()
1.0, 0.0, 0.0
-
setAmbientColor
public void setAmbientColor(GLKVector4 value)
{ 0.0, 0.0, 0.0, 1.0 }
-
setConstantAttenuation
public void setConstantAttenuation(float value)
1.0, 0.0, 0.0
-
setDiffuseColor
public void setDiffuseColor(GLKVector4 value)
{ 1.0, 1.0, 1.0, 1.0 }
-
setEnabled
public void setEnabled(byte value)
GL_TRUE
-
setLinearAttenuation
public void setLinearAttenuation(float value)
1.0, 0.0, 0.0
-
setPosition
public void setPosition(GLKVector4 value)
{ 0.0, 0.0, 0.0, 1.0 }
-
setQuadraticAttenuation
public void setQuadraticAttenuation(float value)
1.0, 0.0, 0.0
-
setSpecularColor
public void setSpecularColor(GLKVector4 value)
{ 1.0, 1.0, 1.0, 1.0 }
-
setSpotCutoff
public void setSpotCutoff(float value)
180.0
-
setSpotDirection
public void setSpotDirection(GLKVector3 value)
{ 0.0, 0.0, -1.0 }
-
setSpotExponent
public void setSpotExponent(float value)
0.0
-
setTransform
public void setTransform(GLKEffectPropertyTransform value)
All identity matrices
-
specularColor
public GLKVector4 specularColor()
{ 1.0, 1.0, 1.0, 1.0 }
-
spotCutoff
public float spotCutoff()
180.0
-
spotDirection
public GLKVector3 spotDirection()
{ 0.0, 0.0, -1.0 }
-
spotExponent
public float spotExponent()
0.0
-
transform
public GLKEffectPropertyTransform transform()
All identity matrices
-
-