Skip to content

Commit

Permalink
Initialised the flags properly in the raymarch demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
vilya committed Sep 5, 2010
1 parent ee7d15d commit 7e82bc1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion example/raymarch.cpp
Expand Up @@ -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; }
Expand Down

0 comments on commit 7e82bc1

Please sign in to comment.