mirror of
https://dev.lirent.ru/Vatrog/vm-vgpu-streamer.git
synced 2026-07-09 00:46:36 +03:00
17 lines
550 B
C
17 lines
550 B
C
|
|
#ifndef VGPU_CURSOR_H
|
||
|
|
#define VGPU_CURSOR_H
|
||
|
|
|
||
|
|
/* cursor.h — win32 GDI cursor sample/compose onto a tight BGRA frame. */
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
#include "ctx.h" /* win32 vgpu_ctx (cursor state) */
|
||
|
|
|
||
|
|
/* Sample the current cursor (position/shape) into ctx->cursor.
|
||
|
|
* Returns 1 if anything changed since last sample, else 0. */
|
||
|
|
int cursor_sample(vgpu_ctx* ctx);
|
||
|
|
|
||
|
|
/* Alpha/AND-XOR compose the sampled cursor onto a tight BGRA frame. */
|
||
|
|
void cursor_draw(vgpu_ctx* ctx, uint8_t* bgra, uint32_t width, uint32_t height);
|
||
|
|
|
||
|
|
#endif /* VGPU_CURSOR_H */
|