Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

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

Typedefs

using kodi::HardwareContext = ADDON_HARDWARE_CONTEXT
 

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 kodi-dev-kit/include/kodi/addon-instance/visualization.h:717

Typedef Documentation

◆ HardwareContext