middleware/src/MainClass.cs
changeset 3 92f19af39024
parent 0 6fefd4afe506
child 8 e4e7db2435f8
--- a/middleware/src/MainClass.cs	Fri Mar 09 18:15:12 2012 +0100
+++ b/middleware/src/MainClass.cs	Thu Mar 15 13:33:21 2012 +0100
@@ -1,5 +1,5 @@
 /*
- * Projet : KINECT PROJECTS
+ * Projet : TraKERS
  * Module : MIDDLEWARE
  * Classe : MainClass
  * 
@@ -21,6 +21,9 @@
 using System.Drawing;
 using System.Threading;
 using System.IO;
+using System.Resources;
+using System.Reflection;
+using Tuio;
 
 namespace Trakers
 {
@@ -29,7 +32,21 @@
         [STAThread]
         public static void Main()
         {
-            KinectMain kinectMain = new KinectMain();
+            //Crée le gestionnaire de ressources.
+            ResourceManager rm = new ResourceManager("Trakers.Properties.resources", Assembly.GetExecutingAssembly());
+            //Fait appel à la classe qui gère la Kinect.
+            KinectMain kinectMain = new KinectMain(rm);
+
+            /*TuioServer s = new TuioServer("127.0.0.1", 80);
+
+            s.AddTuioCursor(0, new Point3D(100, 100, 1));
+            for (int i = 0; i < 10000; i++)
+            {
+                Thread.Sleep(100);
+                s.UpdateTuioCursor(0, new Point3D(100, 100, 1));
+                Console.Out.WriteLine("ref");
+            }
+            s.DeleteTuioCursor(0);*/
         }
     }
 }