jjdh API

jjdh.opengl.meshes.common
Class DividedBox

java.lang.Object
  extended by jjdh.opengl.meshes.core.AbstractMesh
      extended by jjdh.opengl.meshes.core.VertexArrayMesh
          extended by jjdh.opengl.meshes.common.DividedBox
All Implemented Interfaces:
Renderable, Mesh

public class DividedBox
extends VertexArrayMesh


Field Summary
protected  int number
           
protected  VertexBuffer vertices
           
protected  int verticesPerSide
           
 
Fields inherited from class jjdh.opengl.meshes.core.VertexArrayMesh
job
 
Fields inherited from class jjdh.opengl.meshes.core.AbstractMesh
material, position, rotation, scale
 
Constructor Summary
DividedBox(float width, float height, float depth, int number)
           
 
Method Summary
protected  void createSide(int side, Point3D from, Point3D up, Point3D left)
           
protected  void createSide(int offset, Vector3D from, Vector3D dirX, Vector3D dirY)
           
 
Methods inherited from class jjdh.opengl.meshes.core.VertexArrayMesh
bind, dispose, privateRender
 
Methods inherited from class jjdh.opengl.meshes.core.AbstractMesh
applyMaterial, applyPosition, applyRotation, applyScaling, getMaterial, getPosition, move, render, rotate, setMaterial, setPosition, setRotation, setScale, toString, unApplyMaterial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

protected final int number

verticesPerSide

protected final int verticesPerSide

vertices

protected VertexBuffer vertices
Constructor Detail

DividedBox

public DividedBox(float width,
                  float height,
                  float depth,
                  int number)
Method Detail

createSide

protected void createSide(int side,
                          Point3D from,
                          Point3D up,
                          Point3D left)

createSide

protected void createSide(int offset,
                          Vector3D from,
                          Vector3D dirX,
                          Vector3D dirY)

jjdh API

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