File: window_pos.i

package info (click to toggle)
pyopengl 2.0.1.08-5.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,484 kB
  • ctags: 9,036
  • sloc: pascal: 64,950; xml: 28,088; ansic: 20,696; python: 19,761; tcl: 668; makefile: 240; sh: 25
file content (188 lines) | stat: -rw-r--r-- 6,188 bytes parent folder | download | duplicates (2)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/*
# BUILD api_versions [0x102]
*/

%module window_pos

#define __version__ "$Revision: 1.17 $"
#define __date__ "$Date: 2001/10/05 17:39:12 $"
#define __api_version__ API_VERSION
#define __author__ "Tarn Weisner Burton <twburton@users.sourceforge.net>"
#define __doc__ "http:\057\057oss.sgi.com\057projects\057ogl-sample\057registry\057MESA\057window_pos.txt"

%{
/**
 *
 * GL.MESA.window_pos Module for PyOpenGL
 * 
 * Date: May 2001
 *
 * Authors: Tarn Weisner Burton <twburton@users.sourceforge.net>
 * 
***/
%}

%include util.inc

/* turn the exception handler on */
GL_EXCEPTION_HANDLER()


%{
#if !EXT_DEFINES_PROTO || !defined(GL_MESA_window_pos)
DECLARE_VOID_EXT(glWindowPos2dMESA, (GLdouble x, GLdouble y), (x, y))
DECLARE_VOID_EXT(glWindowPos2fMESA, (GLfloat x, GLfloat y), (x, y))
DECLARE_VOID_EXT(glWindowPos2iMESA, (GLint x, GLint y), (x, y))
DECLARE_VOID_EXT(glWindowPos2sMESA, (GLshort x, GLshort y), (x, y))
DECLARE_VOID_EXT(glWindowPos3dMESA, (GLdouble x, GLdouble y, GLdouble z), (x, y, z))
DECLARE_VOID_EXT(glWindowPos3fMESA, (GLfloat x, GLfloat y, GLfloat z), (x, y, z))
DECLARE_VOID_EXT(glWindowPos3iMESA, (GLint x, GLint y, GLint z), (x, y, z))
DECLARE_VOID_EXT(glWindowPos3sMESA, (GLshort x, GLshort y, GLshort z), (x, y, z))
DECLARE_VOID_EXT(glWindowPos4dMESA, (GLdouble x, GLdouble y, GLdouble z, GLdouble w), (x, y, z, w))
DECLARE_VOID_EXT(glWindowPos4fMESA, (GLfloat x, GLfloat y, GLfloat z, GLfloat w), (x, y, z, w))
DECLARE_VOID_EXT(glWindowPos4iMESA, (GLint x, GLint y, GLint z, GLint w), (x, y, z, w))
DECLARE_VOID_EXT(glWindowPos4sMESA, (GLshort x, GLshort y, GLshort z, GLshort w), (x, y, z, w))
DECLARE_VOID_EXT(glWindowPos2dvMESA, (const GLdouble* p), (p))
DECLARE_VOID_EXT(glWindowPos2fvMESA, (const GLfloat* p), (p))
DECLARE_VOID_EXT(glWindowPos2ivMESA, (const GLint* p), (p))
DECLARE_VOID_EXT(glWindowPos2svMESA, (const GLshort* p), (p))
DECLARE_VOID_EXT(glWindowPos3dvMESA, (const GLdouble* p), (p))
DECLARE_VOID_EXT(glWindowPos3fvMESA, (const GLfloat* p), (p))
DECLARE_VOID_EXT(glWindowPos3ivMESA, (const GLint* p), (p))
DECLARE_VOID_EXT(glWindowPos3svMESA, (const GLshort* p), (p))
DECLARE_VOID_EXT(glWindowPos4dvMESA, (const GLdouble* p), (p))
DECLARE_VOID_EXT(glWindowPos4fvMESA, (const GLfloat* p), (p))
DECLARE_VOID_EXT(glWindowPos4ivMESA, (const GLint* p), (p))
DECLARE_VOID_EXT(glWindowPos4svMESA, (const GLshort* p), (p))
#endif
%}

void glWindowPos2dMESA(GLdouble x, GLdouble y);
DOC(glWindowPos2dMESA, "glWindowPos2dMESA(x, y) -> None")

void glWindowPos2fMESA(GLfloat x, GLfloat y);
DOC(glWindowPos2fMESA, "glWindowPos2fMESA(x, y) -> None")

void glWindowPos2iMESA(GLint x, GLint y);
DOC(glWindowPos2iMESA, "glWindowPos2iMESA(x, y) -> None")

void glWindowPos2sMESA(GLshort x, GLshort y);
DOC(glWindowPos2sMESA, "glWindowPos2sMESA(x, y) -> None")

void glWindowPos3dMESA(GLdouble x, GLdouble y, GLdouble z);
DOC(glWindowPos3dMESA, "glWindowPos3dMESA(x, y, z) -> None")

void glWindowPos3fMESA(GLfloat x, GLfloat y, GLfloat z);
DOC(glWindowPos3fMESA, "glWindowPos3fMESA(x, y, z) -> None")

void glWindowPos3iMESA(GLint x, GLint y, GLint z);
DOC(glWindowPos3iMESA, "glWindowPos3iMESA(x, y, z) -> None")

void glWindowPos3sMESA(GLshort x, GLshort y, GLshort z);
DOC(glWindowPos3sMESA, "glWindowPos3sMESA(x, y, z) -> None")

void glWindowPos4dMESA(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
DOC(glWindowPos4dMESA, "glWindowPos4dMESA(x, y, z, w) -> None")

void glWindowPos4fMESA(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
DOC(glWindowPos4fMESA, "glWindowPos4fMESA(x, y, z, w) -> None")

void glWindowPos4iMESA(GLint x, GLint y, GLint z, GLint w);
DOC(glWindowPos4iMESA, "glWindowPos4iMESA(x, y, z, w) -> None")

void glWindowPos4sMESA(GLshort x, GLshort y, GLshort z, GLshort w);
DOC(glWindowPos4sMESA, "glWindowPos4sMESA(x, y, z, w) -> None")

void glWindowPos2dvMESA(const GLdouble* p);
DOC(glWindowPos2dvMESA, "glWindowPos2dvMESA(p) -> None")

void glWindowPos2fvMESA(const GLfloat* p);
DOC(glWindowPos2fvMESA, "glWindowPos2fvMESA(p) -> None")

void glWindowPos2ivMESA(const GLint* p);
DOC(glWindowPos2ivMESA, "glWindowPos2ivMESA(p) -> None")

void glWindowPos2svMESA(const GLshort* p);
DOC(glWindowPos2svMESA, "glWindowPos2svMESA(p) -> None")

void glWindowPos3dvMESA(const GLdouble* p);
DOC(glWindowPos3dvMESA, "glWindowPos3dvMESA(p) -> None")

void glWindowPos3fvMESA(const GLfloat* p);
DOC(glWindowPos3fvMESA, "glWindowPos3fvMESA(p) -> None")

void glWindowPos3ivMESA(const GLint* p);
DOC(glWindowPos3ivMESA, "glWindowPos3ivMESA(p) -> None")

void glWindowPos3svMESA(const GLshort* p);
DOC(glWindowPos3svMESA, "glWindowPos3svMESA(p) -> None")

void glWindowPos4dvMESA(const GLdouble* p);
DOC(glWindowPos4dvMESA, "glWindowPos4dvMESA(p) -> None")

void glWindowPos4fvMESA(const GLfloat* p);
DOC(glWindowPos4fvMESA, "glWindowPos4fvMESA(p) -> None")

void glWindowPos4ivMESA(const GLint* p);
DOC(glWindowPos4ivMESA, "glWindowPos4ivMESA(p) -> None")

void glWindowPos4svMESA(const GLshort* p);
DOC(glWindowPos4svMESA, "glWindowPos4svMESA(p) -> None")


%{
static char *proc_names[] =
{
#if !EXT_DEFINES_PROTO || !defined(GL_MESA_window_pos)
	"glWindowPos2dMESA",
	"glWindowPos2fMESA",
	"glWindowPos2iMESA",
	"glWindowPos2sMESA",
	"glWindowPos3dMESA",
	"glWindowPos3fMESA",
	"glWindowPos3iMESA",
	"glWindowPos3sMESA",
	"glWindowPos4dMESA",
	"glWindowPos4fMESA",
	"glWindowPos4iMESA",
	"glWindowPos4sMESA",
	"glWindowPos2dvMESA",
	"glWindowPos2fvMESA",
	"glWindowPos2ivMESA",
	"glWindowPos2svMESA",
	"glWindowPos3dvMESA",
	"glWindowPos3fvMESA",
	"glWindowPos3ivMESA",
	"glWindowPos3svMESA",
	"glWindowPos4dvMESA",
	"glWindowPos4fvMESA",
	"glWindowPos4ivMESA",
	"glWindowPos4svMESA",
#endif
	NULL
};

#define glInitWindowPosMESA() InitExtension("GL_MESA_window_pos", proc_names)
%}

int glInitWindowPosMESA();
DOC(glInitWindowPosMESA, "glInitWindowPosMESA() -> bool")


%{
PyObject *__info()
{
	if (glInitWindowPosMESA())
	{
		PyObject *info = PyList_New(0);
		return info;
	}
	
	Py_INCREF(Py_None);
	return Py_None;
}
%}

PyObject *__info();