com.threerings.opengl.compositor
Class Dependency

java.lang.Object
  extended by com.threerings.opengl.compositor.Dependency
Direct Known Subclasses:
Dependency.CubeTexture, Dependency.Planar, Dependency.RenderEffect, Dependency.Shadows

public abstract class Dependency
extends Object

Represents a dependency to be resolved in the course of rendering: shadows from a particular light, a reflection off a plane, etc.


Nested Class Summary
static interface Dependency.Adder
          An interface for objects that add dependendencies to the compositor.
static class Dependency.CubeTexture
          A cube map texture.
static class Dependency.Planar
          The base class of the various planar reflection/refraction dependencies.
static class Dependency.PlanarTexture
          The base class for planar reflection/refraction textures.
static class Dependency.ReflectionTexture
          A planar reflection texture.
static class Dependency.RefractionTexture
          A planar refraction texture.
static class Dependency.RenderEffect
          A render effect.
static class Dependency.Shadows
          The base class for shadows from a single light.
static class Dependency.ShadowTexture
          A shadow depth texture.
static class Dependency.ShadowVolumes
          Stencil shadow volumes.
static class Dependency.StencilReflection
          A stencil reflection.
static class Dependency.StencilRefraction
          A stencil refraction.
 
Constructor Summary
Dependency(GlContext ctx)
          Creates a new dependency.
 
Method Summary
 void cleanup()
          Performs any necessary cleanup.
 void merge(Dependency dependency)
          Merges another dependency (for which Object.equals(java.lang.Object) returns true) into this one.
 void resolve()
          Resolves this dependency.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency(GlContext ctx)
Creates a new dependency.

Method Detail

merge

public void merge(Dependency dependency)
Merges another dependency (for which Object.equals(java.lang.Object) returns true) into this one.


resolve

public void resolve()
Resolves this dependency.


cleanup

public void cleanup()
Performs any necessary cleanup.



Copyright © 2011. All Rights Reserved.