added accessors for internal textures, more flexible setTexture routines
Merge pull request #1 from timscaffidi/master

added accessors for internal textures, more flexible setTexture routines, some formatting