VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/glxdrawable.h@ 25078

最後變更 在這個檔案從25078是 25078,由 vboxsync 提交於 15 年 前

Additions/x11/x11include: exported and set eol-style on new headers

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.3 KB
 
1#ifdef HAVE_DIX_CONFIG_H
2#include <dix-config.h>
3#endif
4
5#ifndef _GLX_drawable_h_
6#define _GLX_drawable_h_
7
8/*
9** License Applicability. Except to the extent portions of this file are
10** made subject to an alternative license as permitted in the SGI Free
11** Software License B, Version 1.1 (the "License"), the contents of this
12** file are subject only to the provisions of the License. You may not use
13** this file except in compliance with the License. You may obtain a copy
14** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
16**
17** http://oss.sgi.com/projects/FreeB
18**
19** Note that, as provided in the License, the Software is distributed on an
20** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
24**
25** Original Code. The Original Code is: OpenGL Sample Implementation,
26** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
28** Copyright in any portions created by third parties is as indicated
29** elsewhere herein. All Rights Reserved.
30**
31** Additional Notice Provisions: The application programming interfaces
32** established by SGI in conjunction with the Original Code are The
33** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
34** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
35** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
36** Window System(R) (Version 1.3), released October 19, 1998. This software
37** was created using the OpenGL(R) version 1.2.1 Sample Implementation
38** published by SGI, but has not been independently verified as being
39** compliant with the OpenGL(R) version 1.2.1 Specification.
40**
41*/
42
43#include <damage.h>
44
45typedef struct {
46
47 DrawablePtr pDraw;
48 __GLcontextModes *modes;
49 __GLXscreen *pGlxScreen;
50 ScreenPtr pScreen;
51 Bool idExists;
52 int refcnt;
53 DamagePtr pDamage;
54} __GLXpixmap;
55
56struct __GLXdrawable {
57 void (*destroy)(__GLXdrawable *private);
58 GLboolean (*resize)(__GLXdrawable *private);
59 GLboolean (*swapBuffers)(__GLXdrawable *);
60 void (*copySubBuffer)(__GLXdrawable *drawable,
61 int x, int y, int w, int h);
62
63 /*
64 ** list of drawable private structs
65 */
66 __GLXdrawable *last;
67 __GLXdrawable *next;
68
69 DrawablePtr pDraw;
70 XID drawId;
71 __GLXpixmap *pGlxPixmap;
72
73 /*
74 ** Either DRAWABLE_PIXMAP or DRAWABLE_WINDOW, copied from pDraw above.
75 ** Needed by the resource freer because pDraw might already have been
76 ** freed.
77 */
78 int type;
79
80 /*
81 ** Configuration of the visual to which this drawable was created.
82 */
83 __GLcontextModes *modes;
84
85 /*
86 ** Lists of contexts bound to this drawable. There are two lists here.
87 ** One list is of the contexts that have this drawable bound for drawing,
88 ** and the other is the list of contexts that have this drawable bound
89 ** for reading.
90 */
91 __GLXcontext *drawGlxc;
92 __GLXcontext *readGlxc;
93
94 /*
95 ** reference count
96 */
97 int refCount;
98};
99
100#endif /* !__GLX_drawable_h__ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette