couch/core/Material.h

35 lines
493 B
C
Raw Normal View History

#ifndef MATERIAL_H
#define MATERIAL_H
#include <GL/glew.h>
#include "stb_image.h"
#include "types.h"
2021-01-19 16:36:10 -06:00
#include "Util.h"
struct Color {
cfloat r, g, b;
Color();
Color(cfloat r, cfloat g, cfloat b);
};
class Texture {
public:
int width, height;
Id id;
static Texture FromFile(const char *filename);
Texture();
};
struct Material {
Color color;
bool usesColor;
Texture tex;
bool usesTex;
2021-01-20 20:49:12 -06:00
cfloat alphaScissor;
2021-01-21 15:26:39 -06:00
bool unshaded;
Material();
};
#endif /* MATERIAL_H */