-/*] Copyright (c) 2009-2010, Charles McGarvey [**************************
+/*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
**] All rights reserved.
*
-* vi:ts=4 sw=4 tw=75
-*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
-**************************************************************************/
+*****************************************************************************/
#ifndef _MOOF_RAY_HH_
#define _MOOF_RAY_HH_
+#include <moof/drawable.hh>
+#include <moof/image.hh>
+#include <moof/math.hh>
+#include <moof/opengl.hh>
+
+
/**
* \file ray.hh
* A class for lines that start at one point and go to infinity in some
* direction.
*/
-#include <moof/drawable.hh>
-#include <moof/math.hh>
-#include <moof/opengl.hh>
-#include <moof/texture.hh>
-
-
namespace moof {
vector end = point + 1000.0 * direction;
// FIXME: this is kinda cheesy
- moof::texture::reset_binding();
+ image::reset_binding();
glBegin(GL_LINES);
glVertex(point);
glVertex(end);
}
};
-
-typedef ray<2> ray2;
-typedef ray<3> ray3;
+typedef ray<2> ray2;
+typedef ray<3> ray3;
} // namespace moof