X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fobject.h;h=57aef841745f68b1bcb0260bfc39ecc7a5a428b5;hb=7a8a3e835aa4fefb930b843466db1566621e1fbe;hp=ecd4fa319c3f30365593c0ebad585f3eb30f7ae0;hpb=64e2adbbab48320b6cd792e515b44cea112a3be4;p=demo diff --git a/src/object.h b/src/object.h index ecd4fa3..57aef84 100644 --- a/src/object.h +++ b/src/object.h @@ -16,19 +16,18 @@ enum OType { }; struct Material { -// std::string name; <-TODO or id - Vec3 diffuse; Vec3 specular; float shininess; Texture *dtex; // diffuse + std::string name; }; class Object { public: Mat4 transform; - Material material; + Material *material; Mesh *mesh; Object();