Adding basic texture fragment shader kernel

This commit is contained in:
2019-12-25 00:09:14 +02:00
parent e57702936e
commit 2e6ddd2ff2
11 changed files with 412 additions and 89 deletions
+1 -2
View File
@@ -62,14 +62,13 @@ struct TGAColor {
class TGAImage {
protected:
unsigned char* data;
int width;
int height;
int bytespp;
bool load_rle_data(std::ifstream &in);
bool unload_rle_data(std::ofstream &out);
public:
unsigned char* data;
enum Format {
GRAYSCALE=1, RGB=3, RGBA=4
};