2.2.7.51 MILCMD_HWNDTARGET_CREATE
The MILCMD_HWNDTARGET_CREATE packet initializes a window rendering target resource. This message MUST be sent once and only once, for each instance of a window rendering target resource, immediately after the instance has been created.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
messageSize |
|||||||||||||||||||||||||||||||
controlCode |
|||||||||||||||||||||||||||||||
targetResource |
|||||||||||||||||||||||||||||||
reserved0 |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
width |
|||||||||||||||||||||||||||||||
height |
|||||||||||||||||||||||||||||||
clearColor (16 bytes) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
reserved1 |
|||||||||||||||||||||||||||||||
reserved2 |
messageSize (4 bytes): A 32-bit unsigned integer. The size of this message in bytes. The value of this field MUST be set to 0x00000034.
controlCode (4 bytes): A 32-bit unsigned integer containing the control code for this message. The value of this field MUST be equal to 0x00000042.
targetResource (4 bytes): A 32-bit unsigned integer. The value of this field MUST be set to a valid resource handle referencing a resource of type TYPE_HWNDRENDERTARGET or TYPE_DESKTOPRENDERTARGET. This handle identifies the resource that is the target for this message.
reserved0 (8 bytes): Reserved. MUST be ignored when received.
width (4 bytes): A 32-bit unsigned integer. The width of the render target in pixels.
height (4 bytes): A 32-bit unsigned integer. The height of the render target in pixels.
clearColor (16 bytes): A MilColor structure. The background color that MUST be used to clear the render target at the beginning of a composition pass.
reserved1 (4 bytes): Reserved. MUST be ignored when received.
reserved2 (4 bytes): Reserved. MUST be ignored when received.