bool InitD3DHWND(HWND* hWnd,int sizex,int sizey,bool resizeable,bool * exist,int FSAA)
You need call it
only once. It creates the 3D interface, and initializes the resources.
IMPORTANT: Your hwnd will be the handler of DirectX3D, but you need call the handler of MsgProc from your MsgProc.
Sizex,Sizey:
Size of
the backbuffer, if the backbuffer is not resizeable. It means the detail of screen.
The xsize, and the ysize are from the hwnd, if the resizeable is true. Those
values will be stored in the DDDengine struct.
Resizeable:
The interface use
common buffers to increases the speed .And it can use only one size of backbuffer
for all window, but they could be streched.
When you use the
resizeable flag, so the buffer can modify his size when you resize the window of
INITD3DHWND, like main window. If no, so you can nor modufy the buffer size in the
future.
Exist: When the DDDEngine is loaded in the memory, it is true.
FSAA: Fullscreen antialiasing mode by DirectX
D3DMULTISAMPLE_NONE = 0
D3DMULTISAMPLE_2_SAMPLES = 2
D3DMULTISAMPLE_3_SAMPLES = 3
D3DMULTISAMPLE_4_SAMPLES = 4
D3DMULTISAMPLE_5_SAMPLES = 5
D3DMULTISAMPLE_6_SAMPLES = 6
D3DMULTISAMPLE_7_SAMPLES = 7
D3DMULTISAMPLE_8_SAMPLES = 8
D3DMULTISAMPLE_9_SAMPLES = 9
D3DMULTISAMPLE_10_SAMPLES = 10
D3DMULTISAMPLE_11_SAMPLES = 11
D3DMULTISAMPLE_12_SAMPLES = 12
D3DMULTISAMPLE_13_SAMPLES = 13
D3DMULTISAMPLE_14_SAMPLES = 14
D3DMULTISAMPLE_15_SAMPLES = 15
D3DMULTISAMPLE_16_SAMPLES
= 16
Result:
If it was not successfull, it is
false