diff --git a/ClickableTransparentOverlay/ClickableTransparentOverlay.csproj b/ClickableTransparentOverlay/ClickableTransparentOverlay.csproj
index 5898980..0ea9ddd 100644
--- a/ClickableTransparentOverlay/ClickableTransparentOverlay.csproj
+++ b/ClickableTransparentOverlay/ClickableTransparentOverlay.csproj
@@ -43,18 +43,21 @@
MinimumRecommendedRules.ruleset
true
false
+ false
bin\x64\Release\
- TRACE
+
+
true
- pdbonly
+ none
x64
prompt
MinimumRecommendedRules.ruleset
true
+ Off
@@ -63,197 +66,40 @@
..\packages\ImGui.NET.1.66.0\lib\netstandard2.0\ImGui.NET.dll
-
- ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.3\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll
-
-
- ..\packages\Microsoft.Extensions.DependencyModel.2.0.3\lib\net451\Microsoft.Extensions.DependencyModel.dll
-
-
- ..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll
- True
- True
-
..\packages\NativeLibraryLoader.1.0.10\lib\netstandard2.0\NativeLibraryLoader.dll
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
..\packages\SharpDX.4.0.1\lib\net45\SharpDX.dll
-
- ..\packages\SharpDX.D3DCompiler.4.0.1\lib\net45\SharpDX.D3DCompiler.dll
-
..\packages\SharpDX.Direct3D11.4.0.1\lib\net45\SharpDX.Direct3D11.dll
..\packages\SharpDX.DXGI.4.0.1\lib\net45\SharpDX.DXGI.dll
-
-
- ..\packages\System.AppContext.4.3.0\lib\net463\System.AppContext.dll
- True
- True
-
..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll
-
-
- ..\packages\System.Console.4.3.0\lib\net46\System.Console.dll
- True
- True
-
-
-
- ..\packages\System.Diagnostics.DiagnosticSource.4.3.0\lib\net46\System.Diagnostics.DiagnosticSource.dll
-
-
- ..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll
- True
- True
-
-
- ..\packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll
- True
- True
-
-
- ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll
- True
- True
-
-
- ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll
- True
- True
-
-
-
- ..\packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll
- True
- True
-
-
- ..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll
- True
- True
-
-
- ..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll
- True
- True
-
-
- ..\packages\System.Linq.4.3.0\lib\net463\System.Linq.dll
- True
- True
-
-
- ..\packages\System.Linq.Expressions.4.3.0\lib\net463\System.Linq.Expressions.dll
- True
- True
-
-
- ..\packages\System.Net.Http.4.3.0\lib\net46\System.Net.Http.dll
- True
- True
-
-
- ..\packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll
- True
- True
-
..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
-
- ..\packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll
- True
- True
-
-
- ..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll
- True
- True
-
..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll
-
- ..\packages\System.Runtime.Extensions.4.3.0\lib\net462\System.Runtime.Extensions.dll
- True
- True
-
-
- ..\packages\System.Runtime.InteropServices.4.3.0\lib\net463\System.Runtime.InteropServices.dll
- True
- True
-
-
- ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
- True
- True
-
-
- ..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll
- True
- True
-
-
- ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll
- True
- True
-
-
- ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll
- True
- True
-
-
- ..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll
- True
- True
-
-
- ..\packages\System.Text.RegularExpressions.4.3.0\lib\net463\System.Text.RegularExpressions.dll
- True
- True
-
-
-
-
-
-
- ..\packages\System.Xml.ReaderWriter.4.3.0\lib\net46\System.Xml.ReaderWriter.dll
- True
- True
-
..\packages\Veldrid.4.5.0\lib\netstandard2.0\Veldrid.dll
-
- ..\packages\Veldrid.MetalBindings.4.5.0\lib\netstandard2.0\Veldrid.MetalBindings.dll
-
-
- ..\packages\Veldrid.OpenGLBindings.4.5.0\lib\netstandard2.0\Veldrid.OpenGLBindings.dll
-
..\packages\Veldrid.SDL2.4.5.0\lib\netstandard2.0\Veldrid.SDL2.dll
..\packages\Veldrid.StartupUtilities.4.5.0\lib\netstandard2.0\Veldrid.StartupUtilities.dll
-
- ..\packages\Vk.1.0.21\lib\netstandard1.4\vk.dll
-
@@ -263,16 +109,9 @@
-
-
-
-
-
-
-
@@ -287,4 +126,8 @@
+
+
+
+
\ No newline at end of file
diff --git a/ClickableTransparentOverlay/Properties/AssemblyInfo.cs b/ClickableTransparentOverlay/Properties/AssemblyInfo.cs
index 998d9a1..01d3c07 100644
--- a/ClickableTransparentOverlay/Properties/AssemblyInfo.cs
+++ b/ClickableTransparentOverlay/Properties/AssemblyInfo.cs
@@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ClickableTransparentOverlay")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyDescription("A library for creating clickable transparent overlay")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClickableTransparentOverlay")]
diff --git a/ClickableTransparentOverlay/Shaders/GLSL/imgui-frag.glsl b/ClickableTransparentOverlay/Shaders/GLSL/imgui-frag.glsl
deleted file mode 100644
index 85e5ee9..0000000
--- a/ClickableTransparentOverlay/Shaders/GLSL/imgui-frag.glsl
+++ /dev/null
@@ -1,13 +0,0 @@
-#version 330 core
-
-uniform sampler2D FontTexture;
-
-in vec4 color;
-in vec2 texCoord;
-
-out vec4 outputColor;
-
-void main()
-{
- outputColor = color * texture(FontTexture, texCoord);
-}
diff --git a/ClickableTransparentOverlay/Shaders/GLSL/imgui-vertex.glsl b/ClickableTransparentOverlay/Shaders/GLSL/imgui-vertex.glsl
deleted file mode 100644
index 997ce0d..0000000
--- a/ClickableTransparentOverlay/Shaders/GLSL/imgui-vertex.glsl
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 330 core
-
-uniform ProjectionMatrixBuffer
-{
- mat4 projection_matrix;
-};
-
-in vec2 in_position;
-in vec2 in_texCoord;
-in vec4 in_color;
-
-out vec4 color;
-out vec2 texCoord;
-
-void main()
-{
- gl_Position = projection_matrix * vec4(in_position, 0, 1);
- color = in_color;
- texCoord = in_texCoord;
-}
diff --git a/ClickableTransparentOverlay/Shaders/Metal/imgui-frag.metal b/ClickableTransparentOverlay/Shaders/Metal/imgui-frag.metal
deleted file mode 100644
index ff3cbe6..0000000
--- a/ClickableTransparentOverlay/Shaders/Metal/imgui-frag.metal
+++ /dev/null
@@ -1,18 +0,0 @@
-#include
-using namespace metal;
-
-struct PS_INPUT
-{
- float4 pos [[ position ]];
- float4 col;
- float2 uv;
-};
-
-fragment float4 FS(
- PS_INPUT input [[ stage_in ]],
- texture2d FontTexture [[ texture(0) ]],
- sampler FontSampler [[ sampler(0) ]])
-{
- float4 out_col = input.col * FontTexture.sample(FontSampler, input.uv);
- return out_col;
-}
\ No newline at end of file
diff --git a/ClickableTransparentOverlay/Shaders/Metal/imgui-frag.metallib b/ClickableTransparentOverlay/Shaders/Metal/imgui-frag.metallib
deleted file mode 100644
index 18a3d73..0000000
Binary files a/ClickableTransparentOverlay/Shaders/Metal/imgui-frag.metallib and /dev/null differ
diff --git a/ClickableTransparentOverlay/Shaders/Metal/imgui-vertex.metal b/ClickableTransparentOverlay/Shaders/Metal/imgui-vertex.metal
deleted file mode 100644
index 73d649e..0000000
--- a/ClickableTransparentOverlay/Shaders/Metal/imgui-vertex.metal
+++ /dev/null
@@ -1,27 +0,0 @@
-#include
-using namespace metal;
-
-struct VS_INPUT
-{
- float2 pos [[ attribute(0) ]];
- float2 uv [[ attribute(1) ]];
- float4 col [[ attribute(2) ]];
-};
-
-struct PS_INPUT
-{
- float4 pos [[ position ]];
- float4 col;
- float2 uv;
-};
-
-vertex PS_INPUT VS(
- VS_INPUT input [[ stage_in ]],
- constant float4x4 &ProjectionMatrix [[ buffer(1) ]])
-{
- PS_INPUT output;
- output.pos = ProjectionMatrix * float4(input.pos.xy, 0.f, 1.f);
- output.col = input.col;
- output.uv = input.uv;
- return output;
-}
\ No newline at end of file
diff --git a/ClickableTransparentOverlay/Shaders/Metal/imgui-vertex.metallib b/ClickableTransparentOverlay/Shaders/Metal/imgui-vertex.metallib
deleted file mode 100644
index 2998b94..0000000
Binary files a/ClickableTransparentOverlay/Shaders/Metal/imgui-vertex.metallib and /dev/null differ
diff --git a/ClickableTransparentOverlay/Shaders/SPIR-V/generate-spirv.bat b/ClickableTransparentOverlay/Shaders/SPIR-V/generate-spirv.bat
deleted file mode 100644
index 62d1d99..0000000
--- a/ClickableTransparentOverlay/Shaders/SPIR-V/generate-spirv.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-glslangvalidator -V imgui-vertex.glsl -o imgui-vertex.spv -S vert
-glslangvalidator -V imgui-frag.glsl -o imgui-frag.spv -S frag
diff --git a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-frag.glsl b/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-frag.glsl
deleted file mode 100644
index 2d1c1d7..0000000
--- a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-frag.glsl
+++ /dev/null
@@ -1,16 +0,0 @@
-#version 450
-
-#extension GL_ARB_separate_shader_objects : enable
-#extension GL_ARB_shading_language_420pack : enable
-
-layout(set = 1, binding = 0) uniform texture2D FontTexture;
-layout(set = 0, binding = 1) uniform sampler FontSampler;
-
-layout (location = 0) in vec4 color;
-layout (location = 1) in vec2 texCoord;
-layout (location = 0) out vec4 outputColor;
-
-void main()
-{
- outputColor = color * texture(sampler2D(FontTexture, FontSampler), texCoord);
-}
diff --git a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-frag.spv b/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-frag.spv
deleted file mode 100644
index c8d71cc..0000000
Binary files a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-frag.spv and /dev/null differ
diff --git a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-vertex.glsl b/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-vertex.glsl
deleted file mode 100644
index 6fdab3f..0000000
--- a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-vertex.glsl
+++ /dev/null
@@ -1,29 +0,0 @@
-#version 450
-
-#extension GL_ARB_separate_shader_objects : enable
-#extension GL_ARB_shading_language_420pack : enable
-
-layout (location = 0) in vec2 vsin_position;
-layout (location = 1) in vec2 vsin_texCoord;
-layout (location = 2) in vec4 vsin_color;
-
-layout (binding = 0) uniform Projection
-{
- mat4 projection;
-};
-
-layout (location = 0) out vec4 vsout_color;
-layout (location = 1) out vec2 vsout_texCoord;
-
-out gl_PerVertex
-{
- vec4 gl_Position;
-};
-
-void main()
-{
- gl_Position = projection * vec4(vsin_position, 0, 1);
- vsout_color = vsin_color;
- vsout_texCoord = vsin_texCoord;
- gl_Position.y = -gl_Position.y;
-}
diff --git a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-vertex.spv b/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-vertex.spv
deleted file mode 100644
index 795cd0e..0000000
Binary files a/ClickableTransparentOverlay/Shaders/SPIR-V/imgui-vertex.spv and /dev/null differ
diff --git a/ClickableTransparentOverlay/app.config b/ClickableTransparentOverlay/app.config
deleted file mode 100644
index a1b0aab..0000000
--- a/ClickableTransparentOverlay/app.config
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ClickableTransparentOverlay/packages.config b/ClickableTransparentOverlay/packages.config
index c0042df..2a2d49d 100644
--- a/ClickableTransparentOverlay/packages.config
+++ b/ClickableTransparentOverlay/packages.config
@@ -1,68 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/DriverProgram/App.config b/DriverProgram/App.config
index 37a645e..21f44c2 100644
--- a/DriverProgram/App.config
+++ b/DriverProgram/App.config
@@ -9,14 +9,14 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/DriverProgram/DriverProgram.csproj b/DriverProgram/DriverProgram.csproj
index 24bb5e0..78abe47 100644
--- a/DriverProgram/DriverProgram.csproj
+++ b/DriverProgram/DriverProgram.csproj
@@ -7,7 +7,7 @@
{370E1945-EF74-4618-A2DE-B5796AC3093E}
Exe
DriverProgram
- DriverProgram
+ ImGuiDemo
v4.7.2
512
true
@@ -45,9 +45,10 @@
bin\x64\Release\
- TRACE
+
+
true
- pdbonly
+ none
x64
prompt
MinimumRecommendedRules.ruleset
@@ -55,29 +56,12 @@
true
+ Off
..\packages\ImGui.NET.1.66.0\lib\netstandard2.0\ImGui.NET.dll
-
-
- ..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll
-
-
-
-
- ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
-
-
- ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll
-
-
-
-
-
-
-
@@ -94,4 +78,8 @@
+
+
+
+
\ No newline at end of file
diff --git a/DriverProgram/Program.cs b/DriverProgram/Program.cs
index d9a3fce..0abfc7e 100644
--- a/DriverProgram/Program.cs
+++ b/DriverProgram/Program.cs
@@ -2,6 +2,7 @@
{
using ClickableTransparentOverlay;
using ImGuiNET;
+ using System;
using System.Threading;
class Program
@@ -12,9 +13,15 @@
private static int Fps = 144;
static void Main(string[] args)
{
- //Width = int.Parse(System.IO.File.ReadAllText("config/width.txt"));
- //Height = int.Parse(System.IO.File.ReadAllText("config/height.txt"));
- //Fps = int.Parse(System.IO.File.ReadAllText("config/fps.txt"));
+ Console.Write("Enter Screen Width:");
+ Width = Convert.ToInt32(Console.ReadLine());
+
+ Console.Write("Enter Screen Height:");
+ Height = Convert.ToInt32(Console.ReadLine());
+
+ Console.Write("Enter Monitor Max FPS:");
+ Fps = Convert.ToInt32(Console.ReadLine());
+
var EndDemo = new Thread(DistroyDemo);
EndDemo.Start();
StartDemo();
@@ -29,7 +36,7 @@
public static void DistroyDemo()
{
- Thread.Sleep(100000);
+ Thread.Sleep(10000);
//demo.ResizeWindow(0, 0, 2560, 1440);
//Thread.Sleep(10000);
//demo.HideWindow();
diff --git a/DriverProgram/Properties/AssemblyInfo.cs b/DriverProgram/Properties/AssemblyInfo.cs
index c1cd08a..a55a48b 100644
--- a/DriverProgram/Properties/AssemblyInfo.cs
+++ b/DriverProgram/Properties/AssemblyInfo.cs
@@ -5,8 +5,8 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("DriverProgram")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("ImGuiDemo")]
+[assembly: AssemblyDescription("ImGui Demo Window")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DriverProgram")]
diff --git a/DriverProgram/packages.config b/DriverProgram/packages.config
index c8a4541..3396a7d 100644
--- a/DriverProgram/packages.config
+++ b/DriverProgram/packages.config
@@ -1,7 +1,4 @@
-
-
-
\ No newline at end of file