I think what you're after is called Texture Atlasing.