samples/guiAndGfx: eC port of JFD's Mekano
[sdk] / samples / guiAndGfx / mekano / mekanoobjectfixed.ec
diff --git a/samples/guiAndGfx/mekano/mekanoobjectfixed.ec b/samples/guiAndGfx/mekano/mekanoobjectfixed.ec
new file mode 100644 (file)
index 0000000..21bfba9
--- /dev/null
@@ -0,0 +1,12 @@
+import "mekanoobject"
+
+define CROSSHAIRWIDTH = 10;
+
+class MekanoObjectFixed : MekanoObject
+{
+public:
+   void draw(MekanoDisplay display)
+   {
+      display.drawCrossHair(m_Position, CROSSHAIRWIDTH);
+   }
+};