To get info about the device, display and several other parts
◆ Device()
kodi::HardwareContext Device |
( |
| ) |
|
|
inline |
Device that represents the display adapter.
- Returns
- A pointer to the device
- Note
- This is only available on DirectX, It us unused (
nullptr
) on OpenGL
This value can also be becomed by kodi::gui::GetHWContext() and is recommended to use.
Example:
#include <d3d11_1.h>
..
..
kodi::HardwareContext Device()
Device that represents the display adapter.
Definition Visualization.h:717
◆ X()
Returns the X position of the rendering window.
- Returns
- The X position, in pixels
◆ Y()
Returns the Y position of the rendering window.
- Returns
- The Y position, in pixels
◆ Width()
Returns the width of the rendering window.
- Returns
- The width, in pixels
◆ Height()
Returns the height of the rendering window.
- Returns
- The height, in pixels
◆ PixelRatio()
Pixel aspect ratio (often abbreviated PAR) is a ratio that describes how the width of a pixel compares to the height of that pixel.
- Returns
- The pixel aspect ratio used by the display