![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Hardware rendering properties More...
#include <game.h>
Public Attributes | |
GAME_HW_CONTEXT_TYPE | context_type |
The API to use. | |
bool | depth |
Set if render buffers should have depth component attached. | |
bool | stencil |
Set if stencil buffers should be attached. | |
bool | bottom_left_origin |
Use conventional bottom-left origin convention. | |
unsigned int | version_major |
Major version number for core GL context or GLES 3.1+. | |
unsigned int | version_minor |
Minor version number for core GL context or GLES 3.1+. | |
bool | cache_context |
If this is true, the frontend will go very far to avoid resetting context in scenarios like toggling fullscreen, etc. | |
bool | debug_context |
Creates a debug context. | |
Hardware rendering properties
These properties are needed early on, so instead of passing them when the stream is opened, they are passed in EnableHardwareRendering(). As a result, the struct passed to OpenStream() is empty.
bool game_hw_rendering_properties::bottom_left_origin |
Use conventional bottom-left origin convention.
If false, standard top-left origin semantics are used.
bool game_hw_rendering_properties::cache_context |
If this is true, the frontend will go very far to avoid resetting context in scenarios like toggling fullscreen, etc.
The reset callback might still be called in extreme situations such as if the context is lost beyond recovery.
For optimal stability, set this to false, and allow context to be reset at any time.
GAME_HW_CONTEXT_TYPE game_hw_rendering_properties::context_type |
The API to use.
bool game_hw_rendering_properties::debug_context |
Creates a debug context.
bool game_hw_rendering_properties::depth |
Set if render buffers should have depth component attached.
bool game_hw_rendering_properties::stencil |
Set if stencil buffers should be attached.
If depth and stencil are true, a packed 24/8 buffer will be added. Only attaching stencil is invalid and will be ignored.
unsigned int game_hw_rendering_properties::version_major |
Major version number for core GL context or GLES 3.1+.
unsigned int game_hw_rendering_properties::version_minor |
Minor version number for core GL context or GLES 3.1+.