couch/core/Material.h

37 lines
489 B
C
Raw Permalink 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"
typedef Vector3 Color;
class Texture {
public:
int width, height;
Id id;
static Texture FromFile(const char *filename);
Texture();
};
struct Material {
Texture tex;
bool usesTex;
2021-01-22 18:44:43 -06:00
Color ambient;
Color diffuse;
Color specular;
int shininess;
float alphaScissor;
2021-01-21 15:26:39 -06:00
bool unshaded;
2021-01-22 15:27:32 -06:00
bool cullBack;
Material();
};
#endif /* MATERIAL_H */