Package apple.glkit

Class 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.
    • Constructor Detail

      • GLKEffectPropertyLight

        protected GLKEffectPropertyLight​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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
      • 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
      • 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