j3d.org Aviatrix3D

org.j3d.aviatrix3d
Interface RenderableComponent

All Superinterfaces:
Renderable
All Known Implementing Classes:
ClipPlane, Light, ShaderArguments, TextureUnit

public interface RenderableComponent
extends Renderable

Marker interface for NodeComponent classes that need to render themself using some extra external identifier.

The generation and interpretation of the external data is dependent on the specific derived type. For example, for lights, the data represents the GL light ID (eg GL_LIGHT0) to be used for the glEnable() call. The data may be generated as part of the culling stage or sorting stage, depending on the object. Refer to the individual implementing class documentation for more details.

Version:
$Revision: 1.1 $
Author:
Justin Couch

Method Summary
 void postRender(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu, java.lang.Object externalData)
           
 void render(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu, java.lang.Object externalData)
          Overloaded form of the render() method to render the light details given the specific Light ID used by OpenGL.
 

Method Detail

render

public void render(net.java.games.jogl.GL gl,
                   net.java.games.jogl.GLU glu,
                   java.lang.Object externalData)
Overloaded form of the render() method to render the light details given the specific Light ID used by OpenGL. Since the active light ID for this node may vary over time, a fixed ID cannot be used by OpenGL. The renderer will always call this method rather than the normal render() method. The normal post render will still be called

Parameters:
gl - The GL context to render with
glu - The GL utility context to render with
externalData - Some implementation-specific external data to aid in the rendering

postRender

public void postRender(net.java.games.jogl.GL gl,
                       net.java.games.jogl.GLU glu,
                       java.lang.Object externalData)

j3d.org Aviatrix3D

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - j3d.org