# DecalRender.DLL ## Origin Factored out of the old **Inject.DLL** — the rendering functionality (texture creation, font rendering, surface blitting) that previously lived inside Inject was moved into this dedicated COM server. ## Binary Facts - Size: **108 KB** - Type: COM in-process server (DLL) - Standard 4 COM exports: `DllCanUnloadNow`, `DllGetClassObject`, `DllRegisterServer`, `DllUnregisterServer` ## Key Imports | DLL | Functions | |-----|-----------| | **Inject.DLL** | `BeginSceneO`, `EndSceneO` | | **d3dx9_30.dll** | `D3DXCreateTexture`, `D3DXLoadSurfaceFromMemory`, `D3DXCreateFontW`, and others | ## What It Does Provides the 2D rendering layer for Decal's overlay UI — creating textures, loading surfaces from memory, and drawing text with DirectX fonts. Inject.DLL hooks the Direct3D scene begin/end, and DecalRender plugs into those hooks to draw. ## Reconstruction Notes - **LOOK AT:** `Managed/Decal.Interop.Render/` for the COM interface definitions this DLL must implement. That directory contains **19 decompiled C# files** describing every interface, enum, and coclass. - **LOOK AT:** The old `Native/Inject/` source for rendering code that was likely moved here. Search for anything that touches `IDirect3DTexture9`, `ID3DXFont`, surface blitting, etc. - The interop assembly will define the exact vtable layout the managed side expects. Every COM interface in `Decal.Interop.Render` maps to an interface this DLL exposes.