diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 04:57:51 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 04:57:51 +0200 |
| commit | dde48ba7c6017539b5d8a4539030bea0715b0374 (patch) | |
| tree | f9e4b463244aac9bf1cf2d5bfb3473b22b3a0bbc /Tests/BasicTests.cs | |
| parent | 5f68cf21b47b88e4e1de7fed7bd9b8b56b5dfa3d (diff) | |
test texture surface backend with sdl and xcbTestXCBandSDL
Diffstat (limited to 'Tests/BasicTests.cs')
| -rw-r--r-- | Tests/BasicTests.cs | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index 9340fe88..a7b03cc6 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -30,16 +30,27 @@ using System.Collections.Generic; using System.Linq; using System.IO; using System.Reflection; +using System.Runtime.InteropServices; using System.Text; using System.Diagnostics; +using Crow.SDL2; + +using Native; + +using XCBConnection = System.IntPtr; +using XCBSetup = System.IntPtr; +using XCBScreen = System.IntPtr; +using XCBWindow = System.UInt32; +using XCBColorMap = System.UInt32; +using XCBVisualId = System.UInt32; namespace Tests { - class BasicTests : CrowWindow + class BasicTests : CrowWindow3 { public BasicTests () - : base(800, 600,"test: press <F3> to toogle test files") + //: base(800, 600,"test: press <F3> to toogle test files") { } @@ -140,8 +151,8 @@ namespace Tests this.KeyDown += KeyboardKeyDown1; //testFiles = new string [] { @"Interfaces/Unsorted/testFileDialog.crow" }; - //testFiles = new string [] { @"Interfaces/Divers/colorPicker.crow" }; - testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; + testFiles = new string [] { @"Interfaces/Divers/colorPicker.crow" }; + //testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Group", "*.crow")).ToArray (); @@ -180,7 +191,7 @@ namespace Tests return; }else if (e.Key == OpenTK.Input.Key.F7) { GraphicObject w = Load ("Interfaces/Divers/perfMeasures.crow"); - w.DataSource = this.ifaceControl[0]; + w.DataSource = this; return; } else if (e.Key == OpenTK.Input.Key.F2) idx--; @@ -190,7 +201,7 @@ namespace Tests return; try { - ClearInterface (); + CrowInterface.ClearInterface (); if (idx == testFiles.Length) idx = 0; |