@EqualityReference public final class KLightProjectiveWithShadowBasic extends Object implements KLightProjectiveWithShadowBasicType
A projective light with a mapped basic shadow.
KShadowMappedBasic
public static KLightProjectiveWithShadowBasicBuilderType newBuilder(com.io7m.jcanephora.Texture2DStaticUsableType in_texture, KProjectionType in_projection)
Create a builder for creating new projective lights.
in_texture
- The texture.in_projection
- The projection.public <A,E extends Throwable,V extends KLightVisitorType<A,E>> A lightAccept(V v) throws E extends Throwable, RException, com.io7m.jcanephora.JCGLException
KLightType
lightAccept
in interface KLightType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorV
- A specific visitor subtypev
- The visitorE
- Iff the visitor raises E
RException
- Iff the visitor raises RException
com.io7m.jcanephora.JCGLException
- Iff the visitor raises JCGLException
.E extends Throwable
public String lightGetCode()
lightGetCode
in interface KLightType
public com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> lightGetColor()
lightGetColor
in interface KLightPropertiesType
public float lightGetIntensity()
lightGetIntensity
in interface KLightPropertiesType
public KShadowType lightGetShadow()
lightGetShadow
in interface KLightWithShadowType
public KShadowMappedBasic lightGetShadowBasic()
lightGetShadowBasic
in interface KLightProjectiveWithShadowBasicType
public KTransformType lightGetTransform()
lightGetTransform
in interface KLightWithTransformType
public float lightProjectiveGetFalloff()
lightProjectiveGetFalloff
in interface KLightProjectiveType
public float lightProjectiveGetFalloffInverse()
lightProjectiveGetFalloffInverse
in interface KLightProjectiveType
KLightProjectiveType.lightProjectiveGetFalloff()
).public com.io7m.jtensors.QuaternionI4F lightProjectiveGetOrientation()
lightProjectiveGetOrientation
in interface KLightProjectiveType
public com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> lightProjectiveGetPosition()
lightProjectiveGetPosition
in interface KLightProjectiveType
public KProjectionType lightProjectiveGetProjection()
lightProjectiveGetProjection
in interface KLightProjectiveType
public float lightProjectiveGetRange()
lightProjectiveGetRange
in interface KLightProjectiveType
public float lightProjectiveGetRangeInverse()
lightProjectiveGetRangeInverse
in interface KLightProjectiveType
KLightProjectiveType.lightProjectiveGetRange()
)public com.io7m.jcanephora.Texture2DStaticUsableType lightProjectiveGetTexture()
lightProjectiveGetTexture
in interface KLightProjectiveType
public <A,E extends Throwable,V extends KLightProjectiveVisitorType<A,E>> A projectiveAccept(V v) throws RException, E extends Throwable
KLightProjectiveType
projectiveAccept
in interface KLightProjectiveType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorV
- A specific visitor subtypev
- The visitorRException
- Iff the visitor raises RException
E
- Iff the visitor raises E
E extends Throwable
public <A,E extends Throwable,V extends KLightProjectiveWithShadowBasicVisitorType<A,E>> A projectiveWithShadowBasicAccept(V v) throws RException, E extends Throwable
KLightProjectiveWithShadowBasicType
projectiveWithShadowBasicAccept
in interface KLightProjectiveWithShadowBasicType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorV
- A specific visitor subtypev
- The visitorRException
- Iff the visitor raises RException
E
- Iff the visitor raises E
E extends Throwable
public int texturesGetRequired()
texturesGetRequired
in interface KTexturesRequiredType
public <A,E extends Throwable> A withShadowAccept(KLightWithShadowVisitorType<A,E> v) throws RException, E extends Throwable, com.io7m.jcanephora.JCGLException
KLightWithShadowType
withShadowAccept
in interface KLightWithShadowType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorv
- The visitorRException
- Iff the visitor raises RException
E
- Iff the visitor raises E
com.io7m.jcanephora.JCGLException
- Iff the visitor raises JCGLException
E extends Throwable
Copyright © 2015 <code@io7m.com> http://io7m.com