hmi.graphics.opengl.geometry
Class LineGeometry

java.lang.Object
  extended by hmi.graphics.opengl.geometry.LineGeometry
All Implemented Interfaces:
GLRenderObject

public class LineGeometry
extends Object
implements GLRenderObject

A set of lines, rendered using direct mode OpenGL


Field Summary
(package private)  float[] vertices
           
 
Constructor Summary
LineGeometry(float[] vertices)
          Constructor
 
Method Summary
 void glInit(GLRenderContext glc)
          Called during OpenGL initialization.
 void glRender(GLRenderContext gl)
          Called during openGL rendering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

float[] vertices
Constructor Detail

LineGeometry

public LineGeometry(float[] vertices)
Constructor

Parameters:
vertices - the line vertices, 6 floats per line
Method Detail

glInit

public void glInit(GLRenderContext glc)
Description copied from interface: GLRenderObject
Called during OpenGL initialization.

Specified by:
glInit in interface GLRenderObject

glRender

public void glRender(GLRenderContext gl)
Description copied from interface: GLRenderObject
Called during openGL rendering.

Specified by:
glRender in interface GLRenderObject