~vcs-imports/pyopengl/main

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
/*
# BUILD api_versions [0x101]
*/

%module misc_hints

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

#define __version__ "$Revision: 1.18 $"
#define __date__ "$Date: 2005/07/25 03:54:44 $"
#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\057PGI\057misc_hints.txt"

%include util.inc

/* turn the exception handler on */
%include gl_exception_handler.inc

%{
#if !EXT_DEFINES_PROTO || !defined(GL_PGI_misc_hints)
DECLARE_VOID_EXT(glHintPGI, (GLenum target, GLint mode), (target, mode))
#endif
%}

void glHintPGI(GLenum target, GLint mode);
DOC(glHintPGI, "glHintPGI(target, mode) -> None")

%{
static char *proc_names[] =
{
#if !EXT_DEFINES_PROTO || !defined(GL_PGI_misc_hints)
	"glHintPGI",
#endif
	NULL
};

#define glInitMiscHintsPGI() InitExtension("GL_PGI_misc_hints", proc_names)
%}

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


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

PyObject *__info();


#define GL_PREFER_DOUBLEBUFFER_HINT_PGI        107000
#define GL_STRICT_DEPTHFUNC_HINT_PGI           107030
#define GL_STRICT_LIGHTING_HINT_PGI            107031
#define GL_STRICT_SCISSOR_HINT_PGI             107032
#define GL_FULL_STIPPLE_HINT_PGI               107033
#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI      107011
#define GL_NATIVE_GRAPHICS_END_HINT_PGI        107012
#define GL_CONSERVE_MEMORY_HINT_PGI            107005
#define GL_RECLAIM_MEMORY_HINT_PGI             107006
#define GL_ALWAYS_FAST_HINT_PGI                107020
#define GL_ALWAYS_SOFT_HINT_PGI                107021
#define GL_ALLOW_DRAW_OBJ_HINT_PGI             107022
#define GL_ALLOW_DRAW_WIN_HINT_PGI             107023
#define GL_ALLOW_DRAW_FRG_HINT_PGI             107024
#define GL_ALLOW_DRAW_MEM_HINT_PGI             107025
#define GL_CLIP_NEAR_HINT_PGI                  107040
#define GL_CLIP_FAR_HINT_PGI                   107041
#define GL_WIDE_LINE_HINT_PGI                  107042
#define GL_BACK_NORMALS_HINT_PGI               107043

#define GL_NATIVE_GRAPHICS_HANDLE_PGI       107010