hmi.graphics.opengl.renderobjects
Class Background

java.lang.Object
  extended by hmi.graphics.opengl.renderobjects.Background
All Implemented Interfaces:
GLRenderObject

public class Background
extends Object
implements GLRenderObject

A VObject for rendering the static background.


Field Summary
private  GLRenderObject appearance
           
private  float bgAlpha
           
private  float bgBlue
           
private  float bgGreen
           
private  float bgRed
           
 
Constructor Summary
Background()
          Creates a Background
Background(float bgRed, float bgGreen, float bgBlue)
          Creates a Background with uniform color, as specified
 
Method Summary
 void glInit(GLRenderContext gl)
          initializes the glClearColor
 void glRender(GLRenderContext gl)
          renders background geometry, if any.
 void setBackgroundColor(float bgRed, float bgGreen, float bgBlue)
          sets the background color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appearance

private GLRenderObject appearance

bgRed

private float bgRed

bgGreen

private float bgGreen

bgBlue

private float bgBlue

bgAlpha

private float bgAlpha
Constructor Detail

Background

public Background()
Creates a Background


Background

public Background(float bgRed,
                  float bgGreen,
                  float bgBlue)
Creates a Background with uniform color, as specified

Method Detail

glInit

public void glInit(GLRenderContext gl)
initializes the glClearColor

Specified by:
glInit in interface GLRenderObject

glRender

public void glRender(GLRenderContext gl)
renders background geometry, if any.

Specified by:
glRender in interface GLRenderObject

setBackgroundColor

public void setBackgroundColor(float bgRed,
                               float bgGreen,
                               float bgBlue)
sets the background color