Kodi Development 22.0
for Binary and Script based Add-Ons
 
All Classes Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches

Detailed Description

Hardware specific device context
This defines an independent value which is used for hardware and OS specific values.

This is basically a simple pointer which has to be changed to the desired format at the corresponding places using static_cast<...>(...).


Example:

#include <d3d11_1.h>
..
// Note: Device() there is used inside addon child class about
// kodi::addon::CInstanceVisualization
ID3D11DeviceContext1* context = static_cast<ID3D11DeviceContext1*>(kodi::addon::CInstanceVisualization::Device());
..
kodi::HardwareContext Device()
Device that represents the display adapter.
Definition Visualization.h:717

Typedefs

using HardwareContext = ADDON_HARDWARE_CONTEXT