- Messages
- 53
- Country

Good Afternoon Gents,
I am continuing to work on my gauge development skills and C-130 Project. I have figured out how to draw the graphics I need in Direct2D outside of the Sim using SimConnect to supply information (easier test bed for when I'm on the road flying). Now I am taking the step to render the gauge into the sim and I have used the GDI+ example and Naruto-Kuns Direct2D info from the Wiki (Thanks Jon) and I understand them both. That Direct2D example renders to a GDI target which was ingenious on Jon's part in using DirectX 11 technology with the DiectX9 FSX. I am only developing for P3D however, so I am wondering if I can mix the RTT example they provided in the SDK with Direct2D rendering. So far I have found that you can write to a IDXGISurface and pass it to the CreateDxgiSurfaceRenderTarget function similiar to how the GDI example works. Does anyone have any background logic on how this would work? Can I declare a IDXGISurface in a Gauge Decleration so I don't have to mess with the DLL.xml file like the RTT example. Thoughts?
-Matt
USCG HC-130H Pilot
I am continuing to work on my gauge development skills and C-130 Project. I have figured out how to draw the graphics I need in Direct2D outside of the Sim using SimConnect to supply information (easier test bed for when I'm on the road flying). Now I am taking the step to render the gauge into the sim and I have used the GDI+ example and Naruto-Kuns Direct2D info from the Wiki (Thanks Jon) and I understand them both. That Direct2D example renders to a GDI target which was ingenious on Jon's part in using DirectX 11 technology with the DiectX9 FSX. I am only developing for P3D however, so I am wondering if I can mix the RTT example they provided in the SDK with Direct2D rendering. So far I have found that you can write to a IDXGISurface and pass it to the CreateDxgiSurfaceRenderTarget function similiar to how the GDI example works. Does anyone have any background logic on how this would work? Can I declare a IDXGISurface in a Gauge Decleration so I don't have to mess with the DLL.xml file like the RTT example. Thoughts?
-Matt
USCG HC-130H Pilot



