Aviatrix3D
2.1.0

org.j3d.aviatrix3d.rendering
Interface ShaderRenderable

All Superinterfaces:
java.lang.Comparable, ObjectRenderable, Renderable
All Known Implementing Classes:
GL14Shader, GLSLangShader, Shader

public interface ShaderRenderable
extends ObjectRenderable

A renderable object that is a programmable shader.

The shader may be either single combined object, like the GLSL shaders, or consist of components, such as the earlier GL 1.4 extensions.

Version:
$Revision: 2.2 $
Author:
Justin Couch

Method Summary
 ComponentRenderable getArgumentsRenderable()
          Get an object that represents arguments that should be passed along with the shader.
 ShaderComponentRenderable getShaderRenderable(int type)
          Get the component of this shader, if it has one.
 
Methods inherited from interface org.j3d.aviatrix3d.rendering.ObjectRenderable
postRender, render
 
Methods inherited from interface org.j3d.aviatrix3d.rendering.Renderable
equals
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getArgumentsRenderable

ComponentRenderable getArgumentsRenderable()
Get an object that represents arguments that should be passed along with the shader. If the shader has a full program component renderable. then it will most likely have arguments too.

Returns:
An object representing any global argument lists

getShaderRenderable

ShaderComponentRenderable getShaderRenderable(int type)
Get the component of this shader, if it has one. If the given type is not recognised by this shader, return null.

Parameters:
type - One of the _SHADER constants from ShaderComponentRenderable
Returns:
A matching component or null if none

Aviatrix3D
2.1.0

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