RenderSpy 1.6.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package RenderSpy --version 1.6.3.1                
NuGet\Install-Package RenderSpy -Version 1.6.3.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RenderSpy" Version="1.6.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RenderSpy --version 1.6.3.1                
#r "nuget: RenderSpy, 1.6.3.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RenderSpy as a Cake Addin
#addin nuget:?package=RenderSpy&version=1.6.3.1

// Install RenderSpy as a Cake Tool
#tool nuget:?package=RenderSpy&version=1.6.3.1                

Universal graphical and input hook for a D3D9-D3D12, OpenGL and Vulkan based games. 💠 Please leave a Star to the repository ✅ if you liked it. ✨

-----------------------------------------------------

Samples

Sample Description
Universal.FPS.Counter A Universal FPS Counter for games
RenderSpy.Imgui Easily use imgui in your favorite game
d3d11 SpriteText Render Create a window with sharDX and render text in directx 11 using SpriteTextRenderer

Features

Note: The objectives of the list that have: [❌] - It means I have no idea how to solve it.

It includes all the libraries you need to draw, RenderSpy after compilation joins all the dependencies using ILMerge which means it appears to offer hooks, it also offers all the libraries you need to draw your overlay.

  • OpenGL.Net
  • SharpDX and its Wrappers [SharpDX.Direct3D9 - SharpDX.Direct3D10 - SharpDX.Direct3D11 ... and more!!]
  • MinHook.NET [For your custom hooks.]

RenderSpy when incorporating these libraries has a weight of approximately 5mb, but if you use Costura.Fody in your assembly the weight is considerably reduced to approximately 1mb.

-----------------------------------------------------

Graphics

API Support
DirectX9
DirectX10
DirectX11
DirectX12
OpenGL
Vulkan ❌ I don't know how to hook it

Inputs

  • DirectInputHook ✨
  • GetRawInputData
  • DefWindowProc
  • GetWindowLongPtr
  • SetWindowLongPtr
  • SetCursorPos

-----------------------------------------------------

Example

    RenderSpy.Graphics.GraphicsType GraphicsT = RenderSpy.Graphics.Detector.GetCurrentGraphicsType();

            RenderSpy.Interfaces.IHook CurrentHook = null;

            switch (GraphicsT)
            {
                case RenderSpy.Graphics.GraphicsType.d3d9:

                    Graphics.d3d9.Present PresentHook_9 = new Graphics.d3d9.Present();
                    PresentHook_9.Install();
                    CurrentHook = PresentHook_9;

                    PresentHook_9.PresentEvent += (IntPtr device, IntPtr sourceRect, IntPtr destRect, IntPtr hDestWindowOverride, IntPtr dirtyRegion) =>
                    {
                        // You Custom Code.
                        return PresentHook_9.Present_orig(device, sourceRect, destRect, hDestWindowOverride, dirtyRegion);
                    };

                    break;
                case RenderSpy.Graphics.GraphicsType.d3d10:

                    Graphics.d3d10.Present PresentHook_10 = new Graphics.d3d10.Present();
                    PresentHook_10.Install();
                    CurrentHook = PresentHook_10;

                    PresentHook_10.PresentEvent += (swapChainPtr, syncInterval, flags) =>
                    {
                        // You Custom Code.
                        return PresentHook_10.Present_orig(swapChainPtr, syncInterval, flags);
                    };

                    break;
                case RenderSpy.Graphics.GraphicsType.d3d11:

                    Graphics.d3d11.Present PresentHook_11 = new Graphics.d3d11.Present();
                    PresentHook_11.Install();
                    CurrentHook = PresentHook_11;

                    PresentHook_11.PresentEvent += (swapChainPtr, syncInterval, flags) =>
                    {
                        // You Custom Code.
                        return PresentHook_11.Present_orig(swapChainPtr, syncInterval, flags);
                    };

                    break;
                case RenderSpy.Graphics.GraphicsType.d3d12:

                    break;
                case RenderSpy.Graphics.GraphicsType.opengl:

                    Graphics.opengl.wglSwapBuffers glSwapBuffersHook = new Graphics.opengl.wglSwapBuffers();
                    glSwapBuffersHook.Install();
                    CurrentHook = glSwapBuffersHook;

                    glSwapBuffersHook.wglSwapBuffersEvent += (IntPtr hdc) =>
                    {
                        // You Custom Code.
                        return glSwapBuffersHook.wglSwapBuffers_orig(hdc); ;
                    };


                    break;
                case RenderSpy.Graphics.GraphicsType.vulkan:

                    break;
                default:

                    break;
            }

      // ... you more code

      // Terminate.... runtines.
      // Destroy Hook
      // CurrentHook.Uninstall();


Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RenderSpy:

Package Downloads
EasyImGui

Use ImGui with Winforms / .NET Framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.7.6 48 11/22/2024
1.7.5 87 11/12/2024
1.7.4 193 5/10/2024
1.7.3 126 5/2/2024
1.7.2 213 4/14/2024
1.6.8.1 173 1/19/2024
1.6.7 120 1/15/2024
1.6.5 122 1/14/2024
1.6.4 126 1/12/2024
1.6.3.1 117 1/10/2024