com.threerings.opengl.gui.background
Class TintedBackground

java.lang.Object
  extended by com.threerings.opengl.gui.background.Background
      extended by com.threerings.opengl.gui.background.TintedBackground

public class TintedBackground
extends Background

Displays a partially transparent solid color in the background.


Field Summary
protected  Color4f _color
           
 
Constructor Summary
TintedBackground(Color4f color)
          Creates a tinted background with the specified color.
 
Method Summary
 void render(Renderer renderer, int x, int y, int width, int height, float alpha)
          Renders this background.
 
Methods inherited from class com.threerings.opengl.gui.background.Background
getMinimumHeight, getMinimumWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_color

protected Color4f _color
Constructor Detail

TintedBackground

public TintedBackground(Color4f color)
Creates a tinted background with the specified color.

Method Detail

render

public void render(Renderer renderer,
                   int x,
                   int y,
                   int width,
                   int height,
                   float alpha)
Description copied from class: Background
Renders this background.

Overrides:
render in class Background