Skip to content
Browse files

Initialised the flags properly in the raymarch demo.

  • Loading branch information...
1 parent ee7d15d commit 7e82bc16f2651c06739fd4f1c3d987333eb158d3 @vilya committed Sep 5, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 example/raymarch.cpp
View
9 example/raymarch.cpp
@@ -66,7 +66,14 @@ class Marcher {
class RayMarchRenderer : public vgl::Renderer {
public:
RayMarchRenderer(const Grid& g, const vgl::Ray3f& r) :
- _gridList(0), _grid(g), _ray(r) {}
+ _gridList(0),
+ _grid(g),
+ _ray(r),
+ _showGrid(true),
+ _showRay(true),
+ _showIntersections(true),
+ _showIntersectedCells(true)
+ {}
void toggleDrawGrid() { _showGrid = !_showGrid; }
void toggleDrawRay() { _showRay = !_showRay; }

0 comments on commit 7e82bc1

Please sign in to comment.
Something went wrong with that request. Please try again.