Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
3. Hardware rendering operations

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
 

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 kodi::addon::CInstanceGame::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 addon itself

◆ HwContextDestroy()

virtual GAME_ERROR kodi::addon::CInstanceGame::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

◆ HwContextReset()

virtual GAME_ERROR kodi::addon::CInstanceGame::HwContextReset ( )
inlinevirtual

Invalidates the current HW context and reinitializes GPU resources.

Any GL state is lost, and must not be deinitialized explicitly.

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

◆ HwGetProcAddress()

game_proc_address_t kodi::addon::CInstanceGame::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 addon itself