public class PBufferGraphics extends Graphics
currentGraphics, DEFAULT_FONT, GL, MODE_ADD, MODE_ALPHA_BLEND, MODE_ALPHA_MAP, MODE_COLOR_MULTIPLY, MODE_NORMAL, MODE_SCREEN, screenHeight, screenWidth
Constructor and Description |
---|
PBufferGraphics(Image image)
Create a new graphics context around a pbuffer
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Dispose this graphics context, this will release any underlying resourses.
|
protected void |
disable()
Disable rendering to this graphics context
|
protected void |
enable()
Enable rendering to this graphics context
|
protected void |
enterOrtho()
Enter the orthographic mode
|
void |
flush()
Flush this graphics context to the underlying rendering context
|
protected void |
initGL()
Initialise the GL context
|
clear, clearAlphaMap, clearWorldClip, copyArea, draw, draw, drawArc, drawArc, drawGradientLine, drawGradientLine, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawOval, drawRect, drawRoundRect, drawRoundRect, drawString, fill, fill, fillArc, fillArc, fillOval, fillOval, fillRect, fillRect, fillRoundRect, fillRoundRect, getArea, getBackground, getColor, getFont, getLineWidth, getPixel, getWorldClip, isAntiAlias, popTransform, pushTransform, resetFont, resetLineWidth, resetTransform, rotate, scale, setAntiAlias, setBackground, setColor, setCurrent, setDrawMode, setFont, setLineWidth, setWorldClip, setWorldClip, texture, texture, texture, texture, texture, texture, translate, translate
public PBufferGraphics(Image image) throws SlickException
image
- The image we're rendering toSlickException
- Indicates a failure to use pbuffersprotected void disable()
Graphics
protected void enable()
Graphics
protected void initGL()
protected void enterOrtho()
public void destroy()
Graphics