void SetCurrentTexture(int texture)
Set the texture before you put your polygons form a buffer.
texture: Id of texture.