blob: 4ae6456d5456eb8d8aa4ee3828b47b0485cd156a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/**
* DMX utility functions.
*/
#ifndef CR_DMX_H
#define CR_DMX_H
#include <X11/Xlib.h>
#include <X11/extensions/dmxext.h>
#include "cr_spu.h"
#include "state/cr_statetypes.h"
typedef struct {
GLXDrawable xwin; /**< backend server's X window */
GLXDrawable xsubwin; /**< child of xwin, clipped to screen bounds */
Display *dpy; /**< DMX back-end server display */
CRrecti visrect; /**< visible rect, in front-end screen coords */
} CRDMXBackendWindowInfo;
#ifdef __cplusplus
extern "C" {
#endif
extern int
crDMXSupported(Display *dpy);
extern CRDMXBackendWindowInfo *
crDMXAllocBackendWindowInfo(unsigned int numBackendWindows);
extern void
crDMXFreeBackendWindowInfo(unsigned int numBackendWindows,
CRDMXBackendWindowInfo *backendWindows);
/* Given the DMX front-end display "dpy" and window "xwin", update the
* backend window information in "backendWindows". If new subwindows are
* needed, and an OpenGL interface pointer is provided, use that interface
* and the subwindowVisBits to create new subwindows.
*/
extern GLboolean
crDMXGetBackendWindowInfo(Display *dpy, GLXDrawable xwin,
unsigned int numBackendWindows,
CRDMXBackendWindowInfo *backendWindows,
const crOpenGLInterface *openGlInterface,
GLint subwindowVisBits);
#ifdef __cplusplus
}
#endif
#endif /* CR_DLM_H */
|