GPU resources used to render a captured cursor shape.
More...
#include <src/platform/windows/display.h>
|
|
D3D11_VIEWPORT | cursor_view |
| | Cursor view.
|
| |
|
LONG | display_height |
| | Display height.
|
| |
|
DXGI_MODE_ROTATION | display_rotation |
| | Display rotation.
|
| |
|
LONG | display_width |
| | Display width.
|
| |
|
shader_res_t | input_res |
| | Input res.
|
| |
|
texture2d_t | texture |
| | D3D11 texture backing the captured frame.
|
| |
|
LONG | texture_height |
| | Texture height.
|
| |
|
LONG | texture_width |
| | Texture width.
|
| |
|
LONG | topleft_x |
| | Topleft x.
|
| |
|
LONG | topleft_y |
| | Topleft y.
|
| |
|
bool | visible |
| | Whether the cursor is visible.
|
| |
GPU resources used to render a captured cursor shape.
◆ set_pos()
| void platf::dxgi::gpu_cursor_t::set_pos |
( |
LONG | topleft_x, |
|
|
LONG | topleft_y, |
|
|
LONG | display_width, |
|
|
LONG | display_height, |
|
|
DXGI_MODE_ROTATION | display_rotation, |
|
|
bool | visible ) |
|
inline |
Update the cursor position and display geometry used for rendering.
- Parameters
-
| topleft_x | Cursor left edge in desktop coordinates. |
| topleft_y | Cursor top edge in desktop coordinates. |
| display_width | Captured display width in pixels. |
| display_height | Captured display height in pixels. |
| display_rotation | DXGI rotation applied to the captured display. |
| visible | Whether the cursor should be visible in the frame. |
◆ set_texture()
| void platf::dxgi::gpu_cursor_t::set_texture |
( |
LONG | texture_width, |
|
|
LONG | texture_height, |
|
|
texture2d_t && | texture ) |
|
inline |
Replace the cursor texture and update its render viewport.
- Parameters
-
| texture_width | Cursor texture width in pixels. |
| texture_height | Cursor texture height in pixels. |
| texture | D3D11 cursor texture to render. |
The documentation for this class was generated from the following file: