Added Materials and multitexturing.

SDL_image doesn't seem to load the proper values with 8-bit textures.
Might move away from it in the future.