hmi.graphics.opengl.renderobjects
Class SimpleLightGeometry
java.lang.Object
hmi.graphics.opengl.renderobjects.SimpleLightGeometry
- All Implemented Interfaces:
- GLRenderObject
public class SimpleLightGeometry
- extends Object
- implements GLRenderObject
A simple sphere for rendering the light as a visible object itself.
|
Method Summary |
void |
glInit(GLRenderContext gl)
Called during OpenGL initialization. |
void |
glRender(GLRenderContext gl)
Rendering a light means: set position, taking into account
the current ModelView transformation. |
void |
setVisible(boolean vis)
Determines whether the light source is visible, in the form
of a small sphere, or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
diffuse
private float[] diffuse
visible
private boolean visible
geometry
private SphereGeometry geometry
SimpleLightGeometry
public SimpleLightGeometry()
setVisible
public void setVisible(boolean vis)
- Determines whether the light source is visible, in the form
of a small sphere, or not. This is just a visualization of the
position of the light, and has no effect on the OpenGL lighting itself.
glInit
public void glInit(GLRenderContext gl)
- Description copied from interface:
GLRenderObject
- Called during OpenGL initialization.
- Specified by:
glInit in interface GLRenderObject
glRender
public void glRender(GLRenderContext gl)
- Rendering a light means: set position, taking into account
the current ModelView transformation.
Optionally, a small sphere is rendered, to indicate the position of the light.
- Specified by:
glRender in interface GLRenderObject