Game Control Plus
1.2.2
|
Static Public Member Functions | |
static PImage | loadImage (PApplet app, String filename) |
static PImage[] | loadImage (PApplet app, String[] filename) |
static PImage[][] | makeTiles2D (PApplet app, PImage img, int nCols, int nRows) |
static PImage[] | makeTiles1D (PApplet app, PImage img, int nCols, int nRows) |
Static Private Attributes | |
static HashMap< String, PImage > | textures = new HashMap<String, PImage>() |
This class is used to load bitmap files and create images.
Although there maybe multiple requests for a particular bitmap file only one PImage is created for each file.
|
static |
Load a single bitmap file return a reference to the PImage created.
app | |
filename |
|
static |
Load images from multiple files
app | |
filename | an array of filenames |
|
static |
Make multiple images from a given image. This method creates a 1D array of PImage objects. The order is left-right and top-down.
app | |
img | the tiled image |
nCols | number of tiles across |
nRows | number of tiles down |
|
static |
Make multiple images from a given image. This method creates a 2D array (size [nCols, nRows] ) of PImage objects.
app | |
img | the tiled image |
nCols | number of tiles across |
nRows | number of tiles down |