44
typedef struct __GLXcontextRec __GLXcontext;
46
44
/* XXX: should be defined somewhere globally */
49
47
#include "GL/internal/glcore.h"
51
struct __GLXcontextRec {
49
typedef struct __GLXtextureFromPixmap __GLXtextureFromPixmap;
50
struct __GLXtextureFromPixmap {
51
int (*bindTexImage) (__GLXcontext *baseContext,
54
int (*releaseTexImage) (__GLXcontext *baseContext,
61
void (*destroy) (__GLXcontext *context);
62
int (*makeCurrent) (__GLXcontext *context);
63
int (*loseCurrent) (__GLXcontext *context);
64
int (*copy) (__GLXcontext *dst,
67
int (*forceCurrent) (__GLXcontext *context);
69
__GLXdrawable *(*createDrawable)(__GLXcontext *context,
73
__GLXtextureFromPixmap *textureFromPixmap;
53
76
** list of context structs
55
struct __GLXcontextRec *last;
56
struct __GLXcontextRec *next;
59
82
** list of contexts bound to the same drawable
61
struct __GLXcontextRec *nextDrawPriv;
62
struct __GLXcontextRec *nextReadPriv;
65
** Opaque pointer the context object created by the GL that the
66
** server is bound with. Never dereferenced by this code, but used
67
** as a handle to feed to the routines in the screen info struct.
84
__GLXcontext *nextDrawPriv;
85
__GLXcontext *nextReadPriv;
72
88
** mode struct for this context