com.xith3d.render.jogl
Class PBufferCanvas3D

java.lang.Object
  extended by Canvas3D
      extended by com.xith3d.render.jogl.PBufferCanvas3D

public class PBufferCanvas3D
extends Canvas3D

Author:
Nicolas Brodu This Canvas3D can be added to a View and will provide rendering into an Image made from a pbuffer => uses hardware acceleration See notes for PBufferCanvasPeer

Constructor Summary
PBufferCanvas3D(int width, int height)
           
PBufferCanvas3D(int width, int height, java.lang.Object owner)
           
 
Method Summary
 java.awt.image.BufferedImage getLastImage()
           
static void initContext(java.lang.Object owner)
           
 void setBounds(int x, int y, int width, int height)
           
 java.awt.image.BufferedImage updateImage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBufferCanvas3D

public PBufferCanvas3D(int width,
                       int height)
                throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException

PBufferCanvas3D

public PBufferCanvas3D(int width,
                       int height,
                       java.lang.Object owner)
                throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException
Method Detail

initContext

public static void initContext(java.lang.Object owner)

updateImage

public java.awt.image.BufferedImage updateImage()

getLastImage

public java.awt.image.BufferedImage getLastImage()

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)