tavli
diff src/object.h @ 15:b1a195c3ee16
added shaders
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 28 Jun 2015 08:34:24 +0300 |
parents | 283eb6e9f0a3 |
children |
line diff
1.1 --- a/src/object.h Sun Jun 28 07:44:23 2015 +0300 1.2 +++ b/src/object.h Sun Jun 28 08:34:24 2015 +0300 1.3 @@ -27,6 +27,7 @@ 1.4 Matrix4x4 matrix; 1.5 unsigned int tex; 1.6 Matrix4x4 tex_matrix; 1.7 + unsigned int sdr; 1.8 1.9 public: 1.10 Material mtl; 1.11 @@ -45,6 +46,7 @@ 1.12 Mesh *get_mesh() const; 1.13 1.14 void set_texture(unsigned int tex); 1.15 + void set_shader(unsigned int sdr); 1.16 1.17 void draw() const; 1.18 void draw_wire(const Vector4 &col = Vector4(1, 1, 1, 1)) const;