MaterialLib now operates on a gl context, rather than being a singleton. Renamed constructor functions for Texture and PixelData.