Function BlamRendering::DirectX::Initialize¶
Defined in File rendering.h
Function Documentation¶
-
HRESULT
BlamRendering::DirectX
::
Initialize
(HWND hWnd)¶ Initializes DirectX 11.
This function will call all needed functions to load Direct3D, Direct2D, and the Windows Imaging Component. As such, calling those initialize functions directly is not required.
- Return
S_OK
if DirectX initialized successfully, otherwise will return an error code.- Parameters
hWnd
: - The window handle for DirectX to render to.