From 5419e6714bbe993040a25cf4fd06f16df08678b5 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Mon, 29 Feb 2016 15:22:13 +0300 Subject: [PATCH] Scene3D/mesh testing for #183 --- dlangui-msvc.sln | 14 +++++++++++++- dlangui-msvc.visualdproj | 8 ++++---- examples/d3d/d3d-msvc.visualdproj | 2 +- examples/d3d/src/d3d.d | 16 +++++++++------- examples/helloworld/helloworld-msvc.visualdproj | 6 +++--- 5 files changed, 30 insertions(+), 16 deletions(-) diff --git a/dlangui-msvc.sln b/dlangui-msvc.sln index bb7d5c35..5238ee35 100644 --- a/dlangui-msvc.sln +++ b/dlangui-msvc.sln @@ -45,7 +45,9 @@ Project("{002A2DE9-8BB6-484D-9802-7E4AD4084715}") = "opengl", "examples\opengl\o {52A2ABB9-2CF7-4D5F-AE8C-75B21F8585A5} = {52A2ABB9-2CF7-4D5F-AE8C-75B21F8585A5} EndProjectSection EndProject -Project("{002A2DE9-8BB6-484D-9802-7E4AD4084715}") = "dwindow_visuald", "..\dwindow\dwindow-visuald.visualdproj", "{6EF05FEE-F632-4B33-805C-5B219269A511}" +Project("{002A2DE9-8BB6-484D-9802-7E4AD4084715}") = "dwindow", "..\dwindow\dwindow-visuald.visualdproj", "{6EF05FEE-F632-4B33-805C-5B219269A511}" +EndProject +Project("{002A2DE9-8BB6-484D-9802-7E4AD4084715}") = "dmdbug", "examples\dmdbug\dmdbug.visualdproj", "{6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -170,6 +172,16 @@ Global {6EF05FEE-F632-4B33-805C-5B219269A511}.Unittest|Win32.Build.0 = Release|Win32 {6EF05FEE-F632-4B33-805C-5B219269A511}.Unittest|x64.ActiveCfg = Release|Win32 {6EF05FEE-F632-4B33-805C-5B219269A511}.Unittest|x64.Build.0 = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Debug|Win32.ActiveCfg = Debug|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Debug|Win32.Build.0 = Debug|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Debug|x64.ActiveCfg = Debug|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Release|Win32.ActiveCfg = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Release|Win32.Build.0 = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Release|x64.ActiveCfg = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Unittest|Win32.ActiveCfg = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Unittest|Win32.Build.0 = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Unittest|x64.ActiveCfg = Release|Win32 + {6FD15ECD-35AF-457D-9327-DD8C2A0EADF1}.Unittest|x64.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/dlangui-msvc.visualdproj b/dlangui-msvc.visualdproj index 707027fd..c88cfe91 100644 --- a/dlangui-msvc.visualdproj +++ b/dlangui-msvc.visualdproj @@ -72,7 +72,7 @@ 0 0 - EmbedStandardResources ForceLogs + EmbedStandardResources ForceLogs USE_FREETYPE USE_OPENGL 0 0 0 @@ -219,7 +219,7 @@ 0 0 1 - 0 + 1 0 0 0 @@ -238,7 +238,7 @@ 0 0 0 - 0 + 1 0 0 0 @@ -276,7 +276,7 @@ 0 0 - EmbedStandardResources ForceLogs + EmbedStandardResources ForceLogs USE_OPENGL USE_FREETYPE 0 0 0 diff --git a/examples/d3d/d3d-msvc.visualdproj b/examples/d3d/d3d-msvc.visualdproj index a21c2b53..985d53d8 100644 --- a/examples/d3d/d3d-msvc.visualdproj +++ b/examples/d3d/d3d-msvc.visualdproj @@ -72,7 +72,7 @@ 0 0 - EmbedStandardResources + EmbedStandardResources USE_OPENGL 0 0 0 diff --git a/examples/d3d/src/d3d.d b/examples/d3d/src/d3d.d index fbbfe94d..148f5c1b 100644 --- a/examples/d3d/src/d3d.d +++ b/examples/d3d/src/d3d.d @@ -46,13 +46,14 @@ class UiWidget : VerticalLayout { id: glView margins: 10 padding: 10 - TextWidget { text: "Hello World example for DlangUI"; textColor: "red"; fontSize: 150%; fontWeight: 800; fontFace: "Arial" } + TextWidget { text: "There should be OpenGL animation on background"; textColor: "red"; fontSize: 150%; fontWeight: 800; fontFace: "Arial" } + TextWidget { text: "Do you see it? If no, there is some bug in Mesh rendering code..."; fontSize: 120% } HorizontalLayout { - layoutWidth: fill - TextWidget { text: "Text 20%"; backgroundColor:"#80FF0000"; layoutWidth: 20% } + layoutWidth: fill + TextWidget { text: "Text 20%"; backgroundColor:"#80FF0000"; layoutWidth: 20% } VerticalLayout { - layoutWidth: 30% - TextWidget { text: "Text 30%"; backgroundColor:"#80FF00FF" } + layoutWidth: 30% + TextWidget { text: "Text 30%"; backgroundColor:"#80FF00FF" } TextWidget { text: "Text 30%"; backgroundColor:"#8000FFFF" } TextWidget { text: "Text 30%"; backgroundColor:"#8000FFFF" } } @@ -60,8 +61,8 @@ class UiWidget : VerticalLayout { } // arrange controls as form - table with two columns TableLayout { - colCount: 2 - TextWidget { text: "param 1" } + colCount: 2 + TextWidget { text: "param 1" } EditLine { id: edit1; text: "some text" } TextWidget { text: "param 2" } EditLine { id: edit2; text: "some text for param2" } @@ -80,6 +81,7 @@ class UiWidget : VerticalLayout { } } HorizontalLayout { + TextWidget { text: "Some buttons:" } Button { id: btnOk; text: "Ok"; fontSize: 27px } Button { id: btnCancel; text: "Cancel"; fontSize: 27px } } diff --git a/examples/helloworld/helloworld-msvc.visualdproj b/examples/helloworld/helloworld-msvc.visualdproj index 10d1fb5b..2a21fd55 100644 --- a/examples/helloworld/helloworld-msvc.visualdproj +++ b/examples/helloworld/helloworld-msvc.visualdproj @@ -133,13 +133,13 @@ 0 0 0 - 0 + 1 0 0 1 1 0 - 0 + 1 0 0 0 @@ -174,7 +174,7 @@ 0 0 - EmbedStandardResources + EmbedStandardResources USE_OPENGL USE_FREETYPE 0 0 0