Light

org.nlogo.gl.render.Light
abstract class Light

Attributes

Source
Lighting.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract 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

Attributes

Source
Lighting.scala

Concrete methods

Attributes

Source
Lighting.scala

Attributes

Source
Lighting.scala
def isOn: Boolean

Attributes

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

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

Source
Lighting.scala
def toggle(): Unit

Attributes

Source
Lighting.scala
def turnOff(): Unit

Attributes

Source
Lighting.scala
def turnOn(): Unit

Attributes

Source
Lighting.scala

Concrete fields

var ambient: RGBA

Attributes

Source
Lighting.scala
var diffuse: RGBA

Attributes

Source
Lighting.scala
var glInstance: Option[GL2]

Attributes

Source
Lighting.scala

Attributes

Source
Lighting.scala
var specular: RGBA

Attributes

Source
Lighting.scala

Implicits

Implicits

implicit def getGL: GL2

Attributes

Source
Lighting.scala