Added get_components() method to the texture format. Fixed warnings.
Merge pull request #408 from kvark/tex

Added get_components() method to the texture format