@EqualityReference public final class KLightDirectionalDiffuseOnly extends Object implements KLightDirectionalType, KLightDiffuseOnlyType
A directional light, from a conceptually infinite distance away. The light does not cause specular highlights on objects.
Modifier and Type | Method and Description |
---|---|
<A,E extends Throwable> |
directionalAccept(KLightDirectionalVisitorType<A,E> v)
Be visited by the given generic visitor.
|
<A,E extends Throwable,V extends KLightVisitorType<A,E>> |
lightAccept(V v)
Be visited by the given generic visitor.
|
String |
lightGetCode() |
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> |
lightGetColor() |
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> |
lightGetDirection() |
float |
lightGetIntensity() |
static KLightDirectionalDiffuseOnlyBuilderType |
newBuilder()
Create a builder for creating new directional lights.
|
static KLightDirectionalDiffuseOnly |
newLight(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> in_direction,
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> in_color,
float in_intensity)
Construct a new light.
|
int |
texturesGetRequired() |
String |
toString() |
public static KLightDirectionalDiffuseOnlyBuilderType newBuilder()
Create a builder for creating new directional lights.
public static KLightDirectionalDiffuseOnly newLight(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> in_direction, com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> in_color, float in_intensity)
in_direction
- The light direction.in_color
- The light color.in_intensity
- The light intensity.public <A,E extends Throwable> A directionalAccept(KLightDirectionalVisitorType<A,E> v) throws RException, E extends Throwable
KLightDirectionalType
directionalAccept
in interface KLightDirectionalType
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
E extends Throwable
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 com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> lightGetDirection()
lightGetDirection
in interface KLightDirectionalType
public float lightGetIntensity()
lightGetIntensity
in interface KLightPropertiesType
public int texturesGetRequired()
texturesGetRequired
in interface KTexturesRequiredType
Copyright © 2015 <code@io7m.com> http://io7m.com