#include <moof/contact.hh>
#include <moof/drawable.hh>
+#include <moof/image.hh>
#include <moof/log.hh>
#include <moof/math.hh>
#include <moof/opengl.hh>
#include <moof/ray.hh>
#include <moof/shape.hh>
#include <moof/sphere.hh>
-#include <moof/texture.hh>
namespace moof {
}
- bool intersect_ray(const ray<2>& ray, ray<2>::contact& hit) const
+ bool intersect_ray(const ray<2>& ray, moof::ray<2>::contact& hit) const
{
vector2 v1 = a - ray.point;
scalar a1 = signed_angle_2D(v1, b - ray.point);
void draw(scalar alpha = 0.0) const
{
- texture::reset_binding();
+ image::reset_binding();
glBegin(GL_LINES);
glVertex(a);
glVertex(b);
polygon() {}
- bool intersect_ray(const ray<D>& ray, typename ray<D>::contact& hit)
+ bool intersect_ray(const ray<D>& ray,
+ typename moof::ray<D>::contact& hit)
{
return false;
}
void draw(scalar alpha = 0.0) const
{
- texture::reset_binding();
+ image::reset_binding();
glBegin(GL_POLYGON);
for (int i = 0; i < D; ++i)
{