jjdh API

jjdh.opengl.scenegraph.simple.core
Class RectangleNode

java.lang.Object
  extended by dh.java.math.graph.AbstractTreeNode<ScenegraphNode>
      extended by jjdh.opengl.scenegraph.simple.core.LeafScenegraphNode
          extended by jjdh.opengl.scenegraph.simple.core.RectangleNode
All Implemented Interfaces:
TreeNode<ScenegraphNode>, Iterable<ScenegraphNode>, Renderable, ScenegraphNode

public class RectangleNode
extends LeafScenegraphNode


Field Summary
protected  QuadBuffer[] indices
           
protected  TextureBuffer textureCoords
           
protected  VertexBuffer vertices
           
 
Fields inherited from class dh.java.math.graph.AbstractTreeNode
childs
 
Constructor Summary
RectangleNode(float width, float height, int columns, int rows)
           
RectangleNode(float width, float height, int columns, int rows, boolean wrapTexture)
           
 
Method Summary
 void render(javax.media.opengl.GL gl)
           
 
Methods inherited from class jjdh.opengl.scenegraph.simple.core.LeafScenegraphNode
getChilds, isLeaf, iterator
 
Methods inherited from class dh.java.math.graph.AbstractTreeNode
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vertices

protected VertexBuffer vertices

indices

protected QuadBuffer[] indices

textureCoords

protected TextureBuffer textureCoords
Constructor Detail

RectangleNode

public RectangleNode(float width,
                     float height,
                     int columns,
                     int rows)

RectangleNode

public RectangleNode(float width,
                     float height,
                     int columns,
                     int rows,
                     boolean wrapTexture)
Method Detail

render

public void render(javax.media.opengl.GL gl)
Specified by:
render in interface Renderable
Overrides:
render in class LeafScenegraphNode

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.