Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
3. Hardware rendering operations

Detailed Description

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.

Function Documentation

◆ EnableHardwareRendering()

bool EnableHardwareRendering ( const game_hw_rendering_properties & properties)
inline

Callback to Kodi Function
Enable hardware rendering functionality

Returns
True if hardware rendering was enabled, false otherwise
Remarks
Only called from the add-on itself

◆ HwContextReset()

virtual GAME_ERROR HwContextReset ( )
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().

Returns
The error, or GAME_ERROR_NO_ERROR if the HW context was reset

◆ HwContextDestroy()

virtual GAME_ERROR HwContextDestroy ( )
inlinevirtual

Called before the context is destroyed.

Resources can be deinitialized at this step.

Returns
The error, or GAME_ERROR_NO_ERROR if the HW context was destroyed

◆ HwGetProcAddress()

game_proc_address_t HwGetProcAddress ( const char * sym)
inline

Callback to Kodi Function
Get a symbol from the hardware context

Parameters
[in]symThe symbol's name
Returns
A function pointer for the specified symbol
Remarks
Only called from the add-on itself