tavli

diff src/object.h @ 4:b41ceead1708

procedural playing field texture mask
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Jun 2015 05:58:35 +0300
parents 94aff2ff1934
children a0d30f6f20d4
line diff
     1.1 --- a/src/object.h	Mon Jun 22 21:46:57 2015 +0300
     1.2 +++ b/src/object.h	Thu Jun 25 05:58:35 2015 +0300
     1.3 @@ -8,6 +8,7 @@
     1.4  private:
     1.5  	Mesh *mesh;
     1.6  	Matrix4x4 matrix;
     1.7 +	unsigned int tex;
     1.8  
     1.9  public:
    1.10  	Object();
    1.11 @@ -19,6 +20,8 @@
    1.12  	void set_mesh(Mesh *m);
    1.13  	Mesh *get_mesh() const;
    1.14  
    1.15 +	void set_texture(unsigned int tex);
    1.16 +
    1.17  	void draw() const;
    1.18  
    1.19  	bool intersect(const Ray &ray, HitPoint *hit) const;