couch/core/Material.h
2021-01-22 18:44:43 -06:00

41 lines
553 B
C++

#ifndef MATERIAL_H
#define MATERIAL_H
#include <GL/glew.h>
#include "stb_image.h"
#include "types.h"
#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 {
Texture tex;
bool usesTex;
Color ambient;
Color diffuse;
Color specular;
int shininess;
cfloat alphaScissor;
bool unshaded;
bool cullBack;
Material();
};
#endif /* MATERIAL_H */