From: unknown Date: Sun, 22 Aug 2010 13:31:23 +0000 (+0900) Subject: 1231 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;ds=sidebyside;h=60468a6671a33f5f9ec05e5be1c78f48b99f8e6b;p=psychlops%2Fsilverlight.git 1231 --- diff --git a/dev4/psychlops/extention/compatibility/compatibility.cs b/dev4/psychlops/extention/compatibility/compatibility.cs index bedc26f..f43b5d5 100644 --- a/dev4/psychlops/extention/compatibility/compatibility.cs +++ b/dev4/psychlops/extention/compatibility/compatibility.cs @@ -4,6 +4,28 @@ namespace Psychlops { + /* + namespace Internal + { + public class IndependentAccessor + { + Widgets.Slider sld; + public static IndependentAccessor operator <<( IndependentAccessor ind, Widgets.Slider sl ) + { + ind.sld = sl; + Psychlops.Main.canvas.independent_list.Add(sl); + return ind; + } + public static IndependentAccessor operator | (IndependentAccessor ind, string str) + { + label = l; + Psychlops.Main.canvas.independent_list.Add(sl); + return ind; + } + } + } + **/ + public static class Display { public static void pix(int x, int y, Color col) { Main.canvas.pix(x, y, col); } @@ -23,6 +45,7 @@ namespace Psychlops + public static void clear() { Main.canvas.clear(Color.black); } public static void clear(double lum) { Main.canvas.clear(lum); } public static void clear(Color col) { Main.canvas.clear(col); } public static void flip(int n = 1) { Main.canvas.flip(n); } @@ -36,6 +59,10 @@ namespace Psychlops public static double getHCenter() { return Main.canvas.getHCenter(); } public static double getVCenter() { return Main.canvas.getVCenter(); } public static double getRefreshRate() { return Main.canvas.getRefreshRate(); } + + public static void showFPS(bool sw = true) { Main.canvas.showFPS(sw); } + public static void watchFPS(bool sw = true) { Main.canvas.watchFPS(sw); } + } }