|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.opengl.pbuffer.GraphicsFactory
public class GraphicsFactory
A factory to produce an appropriate render to texture graphics context based on current hardware
Constructor Summary | |
---|---|
GraphicsFactory()
|
Method Summary | |
---|---|
static Graphics |
getGraphicsForImage(Image image)
Get a graphics context for a particular image |
static void |
releaseGraphicsForImage(Image image)
Release any graphics context that is assocaited with the given image |
static void |
setUseFBO(boolean useFBO)
Force FBO use on or off |
static boolean |
usingFBO()
Check if we're using FBO for dynamic textures |
static boolean |
usingPBuffer()
Check if we're using PBuffer for dynamic textures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphicsFactory()
Method Detail |
---|
public static void setUseFBO(boolean useFBO)
useFBO
- True if we should try and use FBO for offscreen imagespublic static boolean usingFBO()
public static boolean usingPBuffer()
public static Graphics getGraphicsForImage(Image image) throws SlickException
image
- The image for which to retrieve the graphics context
SlickException
- Indicates it wasn't possible to create a graphics context
given available hardware.public static void releaseGraphicsForImage(Image image) throws SlickException
image
- The image to release
SlickException
- Indicates a failure to release the context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |