~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to GL/glx/glxcontext.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
**
42
42
*/
43
43
 
44
 
typedef struct __GLXcontextRec __GLXcontext;
45
 
 
46
44
/* XXX: should be defined somewhere globally */
47
45
#define CAPI
48
46
 
49
47
#include "GL/internal/glcore.h"
50
48
 
51
 
struct __GLXcontextRec {
 
49
typedef struct __GLXtextureFromPixmap __GLXtextureFromPixmap;
 
50
struct __GLXtextureFromPixmap {
 
51
    int (*bindTexImage)         (__GLXcontext *baseContext,
 
52
                                 int           buffer,
 
53
                                 __GLXpixmap  *pixmap);
 
54
    int (*releaseTexImage)      (__GLXcontext *baseContext,
 
55
                                 int           buffer,
 
56
                                 __GLXpixmap  *pixmap);
 
57
};
 
58
 
 
59
 
 
60
struct __GLXcontext {
 
61
    void           (*destroy)       (__GLXcontext *context);    
 
62
    int            (*makeCurrent)   (__GLXcontext *context);
 
63
    int            (*loseCurrent)   (__GLXcontext *context);
 
64
    int            (*copy)          (__GLXcontext *dst,
 
65
                                     __GLXcontext *src,
 
66
                                     unsigned long mask);
 
67
    int            (*forceCurrent)  (__GLXcontext *context);
 
68
 
 
69
    __GLXdrawable *(*createDrawable)(__GLXcontext *context,
 
70
                                     DrawablePtr pDraw,
 
71
                                     XID drawId);
 
72
 
 
73
    __GLXtextureFromPixmap *textureFromPixmap;
 
74
 
52
75
    /*
53
76
    ** list of context structs
54
77
    */
55
 
    struct __GLXcontextRec *last;
56
 
    struct __GLXcontextRec *next;
 
78
    __GLXcontext *last;
 
79
    __GLXcontext *next;
57
80
 
58
81
    /*
59
82
    ** list of contexts bound to the same drawable
60
83
    */
61
 
    struct __GLXcontextRec *nextDrawPriv;
62
 
    struct __GLXcontextRec *nextReadPriv;
63
 
 
64
 
    /*
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.
68
 
    */
69
 
    __GLinterface *gc;
 
84
    __GLXcontext *nextDrawPriv;
 
85
    __GLXcontext *nextReadPriv;
70
86
 
71
87
    /*
72
88
    ** mode struct for this context
78
94
    ** when the context is created.
79
95
    */
80
96
    ScreenPtr pScreen;
81
 
    __GLXscreenInfo *pGlxScreen;
 
97
    __GLXscreen *pGlxScreen;
82
98
 
83
99
    /*
84
100
    ** This context is created with respect to this visual.
152
168
    /*
153
169
    ** The drawable private this context is bound to
154
170
    */
155
 
    __GLXdrawablePrivate *drawPriv;
156
 
    __GLXdrawablePrivate *readPriv;
 
171
    __GLXdrawable *drawPriv;
 
172
    __GLXdrawable *readPriv;
157
173
};
158
174
 
159
175
/* pending state defines */
161
177
#define __GLX_PENDING_DESTROY   0x2
162
178
#define __GLX_PENDING_SWAP      0x4
163
179
 
 
180
void __glXContextDestroy(__GLXcontext *context);
 
181
 
164
182
#endif /* !__GLX_context_h__ */