Photon 0.0.2 Simple Open Source 2D Game API  | 
TextureSimple OO wrapper around the concept of a texture in openGL. Since Texture is a child of ResourceManaged, all memory management is taken care of. ChildrenOperators
 Summary 
 open
 Opens an image file, currently supported image types are BMP, GIF, JPEG, PCX, PNG, and TGA. Loading is done via a href=”Coronahttp://corona.sf.net">Corona</a. Parameters
 addResource
 Define a new named resource. (Ex. Image::addResource(“monkey”,”images/monkey.png”) would make it so that any attempts to load “monkey” would load the image images/monkey.png) Parameters
  | 
Default constructor, initalizes internal state of Texture.
Texture() 
Opens an image file, currently supported image types are BMP, GIF, JPEG, PCX, PNG, and TGA.
void open( const std:: string & name ) 
Makes texture the current OpenGL texture.
void bind() const 
Gets width of texture.
scalar getWidth() const 
Gets height of texture.
scalar getHeight() const 
Define a new named resource.
static void addResource( const std:: string & name, const std:: string & path )