tavli

diff src/object.h @ 11:a8e26f163f99

poulia
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 27 Jun 2015 08:01:51 +0300
parents a0d30f6f20d4
children 283eb6e9f0a3
line diff
     1.1 --- a/src/object.h	Fri Jun 26 05:41:18 2015 +0300
     1.2 +++ b/src/object.h	Sat Jun 27 08:01:51 2015 +0300
     1.3 @@ -37,6 +37,10 @@
     1.4  	void set_texture(unsigned int tex);
     1.5  
     1.6  	void draw() const;
     1.7 +	void draw_wire(const Vector4 &col = Vector4(1, 1, 1, 1)) const;
     1.8 +	void draw_vertices(const Vector4 &col = Vector4(1, 0.3, 0.2, 1)) const;
     1.9 +	void draw_normals(float len = 1.0, const Vector4 &col = Vector4(0.1, 0.2, 1.0, 1)) const;
    1.10 +	void draw_tangents(float len = 1.0, const Vector4 &col = Vector4(0.1, 1.0, 0.2, 1)) const;
    1.11  
    1.12  	bool intersect(const Ray &ray, HitPoint *hit) const;
    1.13  };