#include <libKODI_game.h>
◆ CHelper_libKODI_game()
CHelper_libKODI_game::CHelper_libKODI_game |
( |
void |
| ) |
|
|
inline |
◆ ~CHelper_libKODI_game()
CHelper_libKODI_game::~CHelper_libKODI_game |
( |
void |
| ) |
|
|
inline |
◆ AddStreamData()
Add a data packet to a stream.
- Parameters
-
stream | The target stream |
packet | The data packet |
◆ CloseGame()
void CHelper_libKODI_game::CloseGame |
( |
void |
| ) |
|
|
inline |
Requests the frontend to stop the current game.
◆ CloseStream()
void CHelper_libKODI_game::CloseStream |
( |
void * |
stream | ) |
|
|
inline |
Free the specified stream.
- Parameters
-
stream | The stream to close |
◆ GetStreamBuffer()
bool CHelper_libKODI_game::GetStreamBuffer |
( |
void * |
stream, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
game_stream_buffer & |
buffer |
|
) |
| |
|
inline |
Get a buffer for zero-copy stream data.
- Parameters
-
| stream | The stream handle |
| width | The framebuffer width, or 0 for no width specified |
| height | The framebuffer height, or 0 for no height specified |
[out] | buffer | The buffer, or unmodified if false is returned |
If this returns true, buffer must be freed using ReleaseStreamBuffer().
- Returns
- True if buffer was set, false otherwise
◆ HwGetProcAddress()
Get a symbol from the hardware context.
- Parameters
-
- Returns
- A function pointer for the specified symbol
◆ InputEvent()
Notify the port of an input event.
- Parameters
-
Input events can arrive for the following sources:
- Returns
- true if the event was handled, false otherwise
◆ OpenStream()
Create a stream for gameplay data.
- Parameters
-
properties | The stream properties |
- Returns
- A stream handle, or NULL on failure
◆ RegisterMe()
bool CHelper_libKODI_game::RegisterMe |
( |
void * |
handle | ) |
|
|
inline |
Resolve all callback methods.
- Parameters
-
- Returns
- True when all methods were resolved, false otherwise.
◆ ReleaseStreamBuffer()
Free an allocated buffer.
- Parameters
-
The documentation for this class was generated from the following file: