erebus
diff liberebus/src/geomobj.h @ 41:2e817711d0f6
console: proper input line windowing and clipping
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 10 Jun 2014 12:28:56 +0300 |
parents | 09028848f276 |
children | c4d48a21bc4a |
line diff
1.1 --- a/liberebus/src/geomobj.h Tue Jun 10 10:53:19 2014 +0300 1.2 +++ b/liberebus/src/geomobj.h Tue Jun 10 12:28:56 2014 +0300 1.3 @@ -17,6 +17,8 @@ 1.4 1.5 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.6 1.7 + virtual Vector3 gen_surface_point() const; 1.8 + 1.9 virtual Vector3 calc_normal(const RayHit &hit) const; 1.10 virtual Vector3 calc_tangent(const RayHit &hit) const; 1.11 virtual Vector2 calc_texcoords(const RayHit &hit) const; 1.12 @@ -26,6 +28,8 @@ 1.13 public: 1.14 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.15 1.16 + Vector3 gen_surface_point() const override; 1.17 + 1.18 Vector3 calc_normal(const RayHit &hit) const override; 1.19 Vector3 calc_tangent(const RayHit &hit) const override; 1.20 Vector2 calc_texcoords(const RayHit &hit) const override; 1.21 @@ -35,6 +39,8 @@ 1.22 public: 1.23 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.24 1.25 + Vector3 gen_surface_point() const override; 1.26 + 1.27 Vector3 calc_normal(const RayHit &hit) const override; 1.28 Vector3 calc_tangent(const RayHit &hit) const override; 1.29 Vector2 calc_texcoords(const RayHit &hit) const override; 1.30 @@ -48,6 +54,8 @@ 1.31 Vector2 vtex[3]; 1.32 1.33 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.34 + 1.35 + Vector3 gen_surface_point() const override; 1.36 }; 1.37 1.38 class Mesh : public GeomObject { 1.39 @@ -62,6 +70,8 @@ 1.40 void end(); 1.41 1.42 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.43 + 1.44 + Vector3 gen_surface_point() const override; 1.45 }; 1.46 1.47 #endif // GEOMOBJ_H_