|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
Hardware rendering operations More...
Functions | |
| bool | kodi::addon::CInstanceGame::EnableHardwareRendering (const game_hw_rendering_properties &properties) |
| Callback to Kodi Function Enable hardware rendering functionality | |
| virtual GAME_ERROR | kodi::addon::CInstanceGame::HwContextReset () |
| Invalidates the current HW context and reinitializes GPU resources. | |
| virtual GAME_ERROR | kodi::addon::CInstanceGame::HwContextDestroy () |
| Called before the context is destroyed. | |
| game_proc_address_t | kodi::addon::CInstanceGame::HwGetProcAddress (const char *sym) |
| Callback to Kodi Function Get a symbol from the hardware context | |
Hardware rendering operations
Hardware rendering operation parts in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.
|
inline |
Callback to Kodi Function
Enable hardware rendering functionality
|
inlinevirtual |
Called before the context is destroyed.
Resources can be deinitialized at this step.
|
inlinevirtual |
Invalidates the current HW context and reinitializes GPU resources.
Kodi calls this once with the hardware context current after CStream has installed its handle. GetBuffer() is available during this callback. Returning an error closes the stream and calls HwContextDestroy().
|
inline |
Callback to Kodi Function
Get a symbol from the hardware context
| [in] | sym | The symbol's name |