PositionalLight

org.nlogo.gl.render.PositionalLight
class PositionalLight(val position: Position) extends Light

Attributes

Source
Lighting.scala
Graph
Supertypes
class Light
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def applyLight(): Unit

Makes the light effective by setting the appropriate OpenGL state variables. Be sure that the light is on by calling turnOn(), but note that it is on by default.

Makes the light effective by setting the appropriate OpenGL state variables. Be sure that the light is on by calling turnOn(), but note that it is on by default.

Attributes

Source
Lighting.scala
final def showLight(glu: GLU, world: World3D, worldScale: Float, observerDistance: Double, shapeRenderer: ShapeRenderer): Unit

Shows the light's position in 3D space. This is intended as a debugging aid.

Shows the light's position in 3D space. This is intended as a debugging aid.

Attributes

Source
Lighting.scala

Attributes

Source
Lighting.scala

Inherited methods

Attributes

Inherited from:
Light
Source
Lighting.scala

Attributes

Inherited from:
Light
Source
Lighting.scala
def isOn: Boolean

Attributes

Inherited from:
Light
Source
Lighting.scala
def render3DArrow(glu: GLU, xdir: Double, ydir: Double, zdir: Double): Unit

Draws a 3D arrow (comprised of a cylinder and a cone) at the current position specified by the OpenGL modelview matrix, pointing in the direction specified by the vector (xdir, ydir, zdir). This is used for rendering directional lights.

Draws a 3D arrow (comprised of a cylinder and a cone) at the current position specified by the OpenGL modelview matrix, pointing in the direction specified by the vector (xdir, ydir, zdir). This is used for rendering directional lights.

Attributes

Inherited from:
Light
Source
Lighting.scala
def renderPositionHintLines(x: Float, y: Float, z: Float, minX: Float, minY: Float, minZ: Float, maxX: Float, maxY: Float, maxZ: Float): Unit

Helps visualize the light's position in 3D space by drawing some lines. This is intended as a debugging aid.

Helps visualize the light's position in 3D space by drawing some lines. This is intended as a debugging aid.

Attributes

Inherited from:
Light
Source
Lighting.scala
def toggle(): Unit

Attributes

Inherited from:
Light
Source
Lighting.scala
def turnOff(): Unit

Attributes

Inherited from:
Light
Source
Lighting.scala
def turnOn(): Unit

Attributes

Inherited from:
Light
Source
Lighting.scala

Concrete fields

Attributes

Source
Lighting.scala

Inherited fields

var ambient: RGBA

Attributes

Inherited from:
Light
Source
Lighting.scala
var diffuse: RGBA

Attributes

Inherited from:
Light
Source
Lighting.scala
var glInstance: Option[GL2]

Attributes

Inherited from:
Light
Source
Lighting.scala

Attributes

Inherited from:
Light
Source
Lighting.scala
var specular: RGBA

Attributes

Inherited from:
Light
Source
Lighting.scala

Implicits

Inherited implicits

implicit def getGL: GL2

Attributes

Inherited from:
Light
Source
Lighting.scala