jjdh API

jjdh.opengl.exercises.playground.activerendering
Class QuadGlassPaneRenderer

java.lang.Object
  extended by jjdh.opengl.exercises.playground.activerendering.QuadGlassPaneRenderer
All Implemented Interfaces:
Initable, Reshapeable, GlassPaneRenderer

public class QuadGlassPaneRenderer
extends Object
implements GlassPaneRenderer


Field Summary
 javax.media.opengl.GL gl
           
protected  float h
           
protected  float w
           
 
Constructor Summary
QuadGlassPaneRenderer()
           
 
Method Summary
 void displayGlassPane()
          Called to execute OpenGL GlassPane rendering.
private  void drawPolygon(float x, float y, float w, float h)
           
 void init(SystemContext context)
          Called to give this renderer the chance to initiate himself for OpenGL rendering.
 void reshape(Rectangle rectangle)
          Called after the component has been resized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gl

public javax.media.opengl.GL gl

w

protected float w

h

protected float h
Constructor Detail

QuadGlassPaneRenderer

public QuadGlassPaneRenderer()
Method Detail

init

public void init(SystemContext context)
Description copied from interface: Initable
Called to give this renderer the chance to initiate himself for OpenGL rendering.

Specified by:
init in interface Initable
Parameters:
context - the suitable system context

displayGlassPane

public void displayGlassPane()
Description copied from interface: GlassPaneRenderer
Called to execute OpenGL GlassPane rendering.

Specified by:
displayGlassPane in interface GlassPaneRenderer

reshape

public void reshape(Rectangle rectangle)
Description copied from interface: Reshapeable
Called after the component has been resized.

Specified by:
reshape in interface Reshapeable
Parameters:
rectangle - the new size of the component

drawPolygon

private void drawPolygon(float x,
                         float y,
                         float w,
                         float h)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.