de.javagl.simplerenderer
Interface SimpleObject

All Known Implementing Classes:
DefaultSimpleObject

public interface SimpleObject

Interface for a simple object. The methods of this class are assumed to return direct buffers.


Method Summary
 java.nio.FloatBuffer getColors()
          Return the colors of this object
 java.nio.IntBuffer getIndices()
          Return the indices of this object.
 java.nio.FloatBuffer getNormals()
          Return the normals of this object
 int getStride()
          Return the stride of the attributes of this object.
 java.nio.FloatBuffer getVertices()
          Return the vertices of this object
 boolean isOutlineRendering()
          Return whether outline rendering is enabled for this object
 void setOutlineRendering(boolean outline)
          Set the outline rendering flag for this object
 

Method Detail

getIndices

java.nio.IntBuffer getIndices()
Return the indices of this object. Three indices are one triangle.

Returns:
The indices

getVertices

java.nio.FloatBuffer getVertices()
Return the vertices of this object

Returns:
The vertices of this object

getNormals

java.nio.FloatBuffer getNormals()
Return the normals of this object

Returns:
The normals of this object

getColors

java.nio.FloatBuffer getColors()
Return the colors of this object

Returns:
The colors of this object

getStride

int getStride()
Return the stride of the attributes of this object. That is, the number of elements that make up one vertex, normal or color.

Returns:
The stride of this object

setOutlineRendering

void setOutlineRendering(boolean outline)
Set the outline rendering flag for this object

Parameters:
outline - The outline rendering flag

isOutlineRendering

boolean isOutlineRendering()
Return whether outline rendering is enabled for this object

Returns:
Whether outline rendering is enabled for this object