Shapes 3D
3.0
|
Public Member Functions | |
void | pre () |
Static Public Member Functions | |
static void | addMovie (PApplet pApplet, PImage movie, _ShapePart shapePart) |
static void | removeMovie (Movie movie, _ShapePart shapePart) |
static PImage | loadImage (PApplet app, String filename) |
static PImage[] | loadImage (PApplet app, String[] filename) |
static PImage[][] | makeTiles (PApplet app, PImage img, int nCols, int nRows) |
static void | printMovieUsage () |
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 |
Add a movie that is going to be used as a texture.
pApplet | the underly PApplet |
movie | the movie to add |
shapePart | the part to be textured with this movie |
|
static |
Load an bitmap file return a reference to the PImage created.
app | the PApplet to be used to load the image |
filename | the image filename |
|
static |
Load images from multiple files
app | the PApplet to be used to load the image |
filename | an array of filenames |
|
static |
Make multiple images from a given image.
app | the PApplet to be used to create the image tiles |
img | the tiled image |
nCols | number of tiles across |
nRows | number of tiles down |
|
static |
Will print a list of movies and the shape parts using them. Useful when debugging library code.
|
static |
This method is called when the movie-texture for a shape part is being replaced by another movie or an image.
movie | the current movie-texture |
shapePart | the associated shape part |