PrOGL
processing open-gl interface
Loading...
Searching...
No Matches
Texture.pde
Go to the documentation of this file.
1// texture.pde
2// samantha jane
3// texture wrapper code
4//------------------------------------------------------------------------------
5
6/**
7 * the Texture class serves a wrapper for a PImage and image path.
8 */
9class Texture {
10 PImage img; /**< image once loaded into memory */
11 String name; /**< relative path to image file */
12
13 /**
14 * Texture constructor.
15 * loads an image from the supplied path.
16 */
17 public Texture(String name) {
18 this.name = name;
19 this.img = loadImage(name);
20 }
21}
the Texture class serves a wrapper for a PImage and image path.
Definition Texture.pde:9
String name
relative path to image file
Definition Texture.pde:11
Texture(String name)
Texture constructor.
Definition Texture.pde:17
PImage img
image once loaded into memory
Definition Texture.pde:10