de.javagl.simplerenderer
Class DefaultSimpleObjectGL

java.lang.Object
  extended by de.javagl.simplerenderer.DefaultSimpleObjectGL
All Implemented Interfaces:
SimpleObjectGL

public class DefaultSimpleObjectGL
extends java.lang.Object
implements SimpleObjectGL

Default implementation of a SimpleObjectGL


Constructor Summary
DefaultSimpleObjectGL(int vao, int indicesVBO, int verticesVBO0, int verticesVBO1, int normalsVBO, int colorsVBO)
          Creates a new simple object representation for OpenGL
 
Method Summary
 int getColorsVBO()
          Returns the vertex buffer object identifier for the colors
 int getIndicesVBO()
          Returns the vertex buffer object identifier for the indices.
 int getNormalsVBO()
          Returns the vertex buffer object identifier for the normals
 int getVAO()
          Returns the vertex array object identifier
 int getVerticesVBO0()
          Returns the vertex buffer object identifier for the vertices.
 int getVerticesVBO1()
          Returns the vertex buffer object identifier for the vertices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSimpleObjectGL

public DefaultSimpleObjectGL(int vao,
                             int indicesVBO,
                             int verticesVBO0,
                             int verticesVBO1,
                             int normalsVBO,
                             int colorsVBO)
Creates a new simple object representation for OpenGL

Parameters:
vao - The VAO
indicesVBO - The indices VBO identifier
verticesVBO0 - The first vertices VBO identifier
verticesVBO1 - The second vertices VBO identifier
normalsVBO - The normals VBO identifier
colorsVBO - The colors VBO identifier
Method Detail

getVAO

public int getVAO()
Description copied from interface: SimpleObjectGL
Returns the vertex array object identifier

Specified by:
getVAO in interface SimpleObjectGL
Returns:
The VAO identifier

getIndicesVBO

public int getIndicesVBO()
Description copied from interface: SimpleObjectGL
Returns the vertex buffer object identifier for the indices.

Specified by:
getIndicesVBO in interface SimpleObjectGL
Returns:
The VBO identifier

getVerticesVBO0

public int getVerticesVBO0()
Description copied from interface: SimpleObjectGL
Returns the vertex buffer object identifier for the vertices. For double buffering, the vertices are stored twice.

Specified by:
getVerticesVBO0 in interface SimpleObjectGL
Returns:
The VBO identifier

getVerticesVBO1

public int getVerticesVBO1()
Description copied from interface: SimpleObjectGL
Returns the vertex buffer object identifier for the vertices. For double buffering, the vertices are stored twice.

Specified by:
getVerticesVBO1 in interface SimpleObjectGL
Returns:
The VBO identifier

getNormalsVBO

public int getNormalsVBO()
Description copied from interface: SimpleObjectGL
Returns the vertex buffer object identifier for the normals

Specified by:
getNormalsVBO in interface SimpleObjectGL
Returns:
The VBO identifier

getColorsVBO

public int getColorsVBO()
Description copied from interface: SimpleObjectGL
Returns the vertex buffer object identifier for the colors

Specified by:
getColorsVBO in interface SimpleObjectGL
Returns:
The VBO identifier