Skip to content
Snippets Groups Projects
Commit e58fc56d authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Dot: Filename to constructor arg

parent ea6ed44f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ int main(int argc, char **argv)
{
EffectRunner r;
DotEffect e;
DotEffect e("data/dot.png");
r.setEffect(&e);
// Defaults, overridable with command line options
......
......@@ -9,8 +9,8 @@
class DotEffect : public Effect
{
public:
DotEffect()
: dot ("data/dot.png"),
DotEffect(const char *filename)
: dot(filename),
angle1(0), angle2(0), angle3(0)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment