obs-studio/test/linux/xcursor.h
fryshorts 820de55ae2 Added initial Mouse pointer lib
Added library to get the mouse pointer with the XFixes
extension and draw it via a sprite.
2014-03-11 14:01:09 +01:00

36 lines
559 B
C

#pragma once
#include <obs.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
Display *dpy;
unsigned long last_serial;
short unsigned int last_width;
short unsigned int last_height;
texture_t tex;
} xcursor_t;
/**
* Initializes the xcursor object
*/
xcursor_t *xcursor_init(Display *dpy);
/**
* Destroys the xcursor object
*/
void xcursor_destroy(xcursor_t *data);
/**
* Draw the cursor
*
* This needs to be executed within a valid render context
*/
void xcursor_render(xcursor_t *data);
#ifdef __cplusplus
}
#endif