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

Hardware framebuffer 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.
 

Detailed Description

Hardware framebuffer properties

Member Data Documentation

◆ bottom_left_origin

bool game_stream_hw_framebuffer_properties::bottom_left_origin

Use conventional bottom-left origin convention.

If false, standard top-left origin semantics are used.

Todo
: Move to GL specific interface

◆ cache_context

bool game_stream_hw_framebuffer_properties::cache_context

If this is true, the frontend will go very far to avoid resetting context in scenarios like toggling fullscreen, etc.

Todo
: Obsolete? Maybe frontend should just always assume this...

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.

◆ context_type

GAME_HW_CONTEXT_TYPE game_stream_hw_framebuffer_properties::context_type

The API to use.

◆ debug_context

bool game_stream_hw_framebuffer_properties::debug_context

Creates a debug context.

◆ depth

bool game_stream_hw_framebuffer_properties::depth

Set if render buffers should have depth component attached.

Todo
: Obsolete

◆ stencil

bool game_stream_hw_framebuffer_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.

Todo
: Obsolete.

◆ version_major

unsigned int game_stream_hw_framebuffer_properties::version_major

Major version number for core GL context or GLES 3.1+.

◆ version_minor

unsigned int game_stream_hw_framebuffer_properties::version_minor

Minor version number for core GL context or GLES 3.1+.


The documentation for this struct was generated from the following file: