eqemu

diff src/object.h @ 3:f9274bebe55e

adding 3d graphics stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Jul 2014 02:35:19 +0300
parents
children 3d3656360a82
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/object.h	Thu Jul 17 02:35:19 2014 +0300
     1.3 @@ -0,0 +1,22 @@
     1.4 +#ifndef OBJECT_H_
     1.5 +#define OBJECT_H_
     1.6 +
     1.7 +#include "mesh.h"
     1.8 +#include "material.h"
     1.9 +
    1.10 +class Object {
    1.11 +private:
    1.12 +	Mesh *mesh;
    1.13 +
    1.14 +public:
    1.15 +	Material mtl;
    1.16 +
    1.17 +	Object();
    1.18 +
    1.19 +	void set_mesh(Mesh *mesh);
    1.20 +	Mesh *get_mesh() const;
    1.21 +
    1.22 +	void render() const;
    1.23 +};
    1.24 +
    1.25 +#endif	// OBJECT_H_