aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-27 18:45:26 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:46 +0100
commitd8a5329b01305c9dd2b24412cd6e4578428b0b6c (patch)
treeb76890efd48017da1259e850bec4a467f7ce03b7
parente0dcfab4997b2c0edd5830de4059e7c6dc440249 (diff)
downloadusdx-d8a5329b01305c9dd2b24412cd6e4578428b0b6c.tar.gz
usdx-d8a5329b01305c9dd2b24412cd6e4578428b0b6c.tar.xz
usdx-d8a5329b01305c9dd2b24412cd6e4578428b0b6c.zip
added Reflection class (descendant of Drawable)
-rw-r--r--src/menu/reflection.cpp42
-rw-r--r--src/menu/reflection.hpp46
2 files changed, 88 insertions, 0 deletions
diff --git a/src/menu/reflection.cpp b/src/menu/reflection.cpp
new file mode 100644
index 00000000..3659d637
--- /dev/null
+++ b/src/menu/reflection.cpp
@@ -0,0 +1,42 @@
+/*
+ * UltraStar Deluxe - Karaoke Game
+ *
+ * UltraStar Deluxe is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ */
+
+#include "reflection.hpp"
+
+namespace usdx
+{
+ Reflection::Reflection(float spacing) : spacing(spacing)
+ {
+ }
+
+ Reflection::~Reflection(void)
+ {
+ }
+
+ void Reflection::on_draw(void) const
+ {
+ }
+};
diff --git a/src/menu/reflection.hpp b/src/menu/reflection.hpp
new file mode 100644
index 00000000..442765db
--- /dev/null
+++ b/src/menu/reflection.hpp
@@ -0,0 +1,46 @@
+/*
+ * UltraStar Deluxe - Karaoke Game
+ *
+ * UltraStar Deluxe is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ */
+
+#ifndef REFLECTION_HPP
+#define REFLECTION_HPP
+
+#include "drawable.hpp"
+
+namespace usdx
+{
+ class Reflection : public Drawable
+ {
+ private:
+ float spacing;
+ public:
+ Reflection(float spacing);
+ virtual ~Reflection(void);
+
+ virtual void on_draw(void) const;
+ };
+};
+
+#endif