Package | Description |
---|---|
org.cell2d.celick | |
org.cell2d.celick.opengl | |
org.cell2d.celick.opengl.pbuffer |
Modifier and Type | Method and Description |
---|---|
void |
Image.destroy()
Destroy the image and release any native resources.
|
static void |
GameContainer.enableSharedContext()
Enable shared OpenGL context.
|
void |
Game.gameLoop(GameContainer container,
int msElapsed,
Graphics g)
Update the game logic and render the game's screen here.
|
Image |
Image.getBlankCopy()
Constructs and returns a new Image that is identical to this one in
every way, including width and height, except that its actual pixel
data is blank.
|
Graphics |
Image.getGraphics()
Get a graphics context that can be used to draw to this image
|
void |
Game.init(GameContainer container)
Initialise the game.
|
protected void |
GameContainer.initSystem()
Initialise the system components, OpenGL and OpenAL.
|
void |
GameContainer.setAnimatedMouseCursor(java.lang.String ref,
int x,
int y,
int width,
int height,
int[] cursorDelays)
Get a cursor based on a image reference on the classpath.
|
void |
GameContainer.setDisplayMode(org.lwjgl.opengl.DisplayMode mode,
boolean fullscreen)
Set the display mode to be used
|
void |
GameContainer.setIcon(java.lang.String ref) |
void |
GameContainer.setIcons(java.lang.String[] refs) |
void |
GameContainer.setMouseCursor(org.lwjgl.input.Cursor cursor,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence
shouldn't have any impact on FPS.
|
void |
GameContainer.setMouseCursor(ImageData data,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence
shouldn't have any impact on FPS.
|
void |
GameContainer.setMouseCursor(Image image,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence
shouldn't have any impact on FPS.
|
void |
GameContainer.setMouseCursor(java.lang.String ref,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence
shouldn't have any impact on FPS.
|
protected void |
GameContainer.setup()
Setup the environment
|
void |
GameContainer.start()
Start running the game
|
Constructor and Description |
---|
AngelCodeFont(java.lang.String fntFile,
Image image)
Create a new font based on a font definition from AngelCode's tool and
the font image generated from the tool.
|
AngelCodeFont(java.lang.String fntFile,
Image image,
boolean caching)
Create a new font based on a font definition from AngelCode's tool and
the font image generated from the tool.
|
AngelCodeFont(java.lang.String name,
java.io.InputStream fntFile,
java.io.InputStream imgFile)
Create a new font based on a font definition from AngelCode's tool and
the font image generated from the tool.
|
AngelCodeFont(java.lang.String name,
java.io.InputStream fntFile,
java.io.InputStream imgFile,
boolean caching)
Create a new font based on a font definition from AngelCode's tool and
the font image generated from the tool.
|
AngelCodeFont(java.lang.String fntFile,
java.lang.String imgFile)
Create a new font based on a font definition from AngelCode's tool and
the font image generated from the tool.
|
AngelCodeFont(java.lang.String fntFile,
java.lang.String imgFile,
boolean caching)
Create a new font based on a font definition from AngelCode's tool and
the font image generated from the tool.
|
GameContainer(Game game)
Create a new container wrapping a game
|
Image(java.io.InputStream in,
java.lang.String ref,
boolean flipped)
Create an image based on a file at the specified location
|
Image(java.io.InputStream in,
java.lang.String ref,
boolean flipped,
int filter)
Create an image based on a file at the specified location
|
Image(int width,
int height)
Create an empty image
|
Image(int width,
int height,
int f)
Create an empty image
|
Image(java.lang.String ref)
Create an image based on a file at the specified location
|
Image(java.lang.String ref,
boolean flipped)
Create an image based on a file at the specified location
|
Image(java.lang.String ref,
boolean flipped,
int filter)
Create an image based on a file at the specified location
|
Image(java.lang.String ref,
boolean flipped,
int f,
Color transparent)
Create an image based on a file at the specified location
|
Image(java.lang.String ref,
Color trans)
Create an image based on a file at the specified location
|
SpriteSheet(java.lang.String name,
java.io.InputStream ref,
int tw,
int th)
Create a new sprite sheet based on a image location
|
SpriteSheet(java.lang.String ref,
int tw,
int th)
Create a new sprite sheet based on a image location
|
SpriteSheet(java.lang.String ref,
int tw,
int th,
Color col)
Create a new sprite sheet based on a image location
|
SpriteSheet(java.lang.String ref,
int tw,
int th,
Color col,
int spacing)
Create a new sprite sheet based on a image location
|
SpriteSheet(java.lang.String ref,
int tw,
int th,
int spacing)
Create a new sprite sheet based on a image location
|
SpriteSheet(java.net.URL ref,
int tw,
int th)
Create a new sprite sheet based on a image location
|
Modifier and Type | Method and Description |
---|---|
void |
SlickCallable.call()
Cause this callable to perform it's GL operations (@see performGLOperations()).
|
protected abstract void |
SlickCallable.performGLOperations()
Perform the GL operations that this callable is intended to.
|
Modifier and Type | Method and Description |
---|---|
static Graphics |
GraphicsFactory.getGraphicsForImage(Image image)
Get a graphics context for a particular image
|
static void |
GraphicsFactory.releaseGraphicsForImage(Image image)
Release any graphics context that is assocaited with the given image
|
Constructor and Description |
---|
FBOGraphics(Image image)
Create a new graphics context around an FBO
|
PBufferGraphics(Image image)
Create a new graphics context around a pbuffer
|
PBufferUniqueGraphics(Image image)
Create a new graphics context around a pbuffer
|