Moved OpenGL texture generation to the Texture class

This commit is contained in:
trotFunky 2019-11-03 15:50:37 +01:00
parent 6827b77bde
commit c1d4a5aa4a
3 changed files with 19 additions and 8 deletions

View file

@ -33,6 +33,9 @@ private:
/// Load and RGB TGA image file to an array
bool load_tga(const std::string& filename, uint8_t*& data_array);
/// Initialize the texture for OpenGL
void generate_texture();
void invert_channels(uint8_t first_channel,uint8_t second_channel);
};