Aviatrix3D
2.0

org.j3d.aviatrix3d.rendering
Interface TextureRenderable

All Superinterfaces:
java.lang.Comparable, ComponentRenderable, Renderable
All Known Implementing Classes:
TextureUnit

public interface TextureRenderable
extends ComponentRenderable

Extended version of the ComponentRenderable interface that provides additional handling for textures.

Textures can come in several diffferent forms and this interface provides a way to map between the holding TextureUnit class and the rendering/culling stage with addtional information about the form of the contained texture without needing to pull apart the TextureUnit itself.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Method Summary
 void bindBuffer(javax.media.opengl.GLContext context)
          Bind the underlying source buffer for the offscreen rendering.
 OffscreenCullable getOffscreenSource()
          Fetch the offscreen texture source that this renderable holds on to.
 boolean isOffscreenSource()
          Check to see if the contained texture is an offscreen renderable such as a pbuffer or multipass texture.
 void unbindBuffer(javax.media.opengl.GLContext context)
          Unbind the underlying source buffer for the offscreen rendering.
 
Methods inherited from interface org.j3d.aviatrix3d.rendering.ComponentRenderable
postRender, render
 
Methods inherited from interface org.j3d.aviatrix3d.rendering.Renderable
equals
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isOffscreenSource

boolean isOffscreenSource()
Check to see if the contained texture is an offscreen renderable such as a pbuffer or multipass texture. If is is, then the XXXX method will return the contained cullable.

Returns:
true if the texture contains an offscreen source

getOffscreenSource

OffscreenCullable getOffscreenSource()
Fetch the offscreen texture source that this renderable holds on to.

Returns:
The contained offscreen texture or null if none

bindBuffer

void bindBuffer(javax.media.opengl.GLContext context)
Bind the underlying source buffer for the offscreen rendering.

Parameters:
context - The containing context to bind from

unbindBuffer

void unbindBuffer(javax.media.opengl.GLContext context)
Unbind the underlying source buffer for the offscreen rendering.

Parameters:
context - The containing context to bind from

Aviatrix3D
2.0

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