Direct 3D Imports
Posted: Sun Jul 18, 2010 12:10
I'm thinking to use CEGUI in some kind of DirectX Overlay software, which would mean to inject the CEGUI DLLs into an already running program.
This means, that I don't know what RendererModule to use when the DLL is injected.
To make things easier, I wanted to include all available RendererModules (at least D3D9-11 and OpenGL for now) into one single DLL, statically linking the CEGUI.
To avoid the problem with the D3DX9-11 modules, that functions with similar names but different declarations are needed, I made a class "Direct3D{9,10,11}Imports", which loads the DLLs manually (try to find a matching DLL using "GetModuleHandle", if nothing is found, load one with "LoadLibrary") and imports the functions by GetProcAddress.
Would those changes make sense to you for the "original" CEGUI version?
This means, that I don't know what RendererModule to use when the DLL is injected.
To make things easier, I wanted to include all available RendererModules (at least D3D9-11 and OpenGL for now) into one single DLL, statically linking the CEGUI.
To avoid the problem with the D3DX9-11 modules, that functions with similar names but different declarations are needed, I made a class "Direct3D{9,10,11}Imports", which loads the DLLs manually (try to find a matching DLL using "GetModuleHandle", if nothing is found, load one with "LoadLibrary") and imports the functions by GetProcAddress.
Would those changes make sense to you for the "original" CEGUI version?