Moved OpenGL texture generation to the Texture class
This commit is contained in:
parent
6827b77bde
commit
c1d4a5aa4a
3 changed files with 19 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue