2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglquery.html
47 * - GdkDisplay* -> Display
53 private import glgdk
.glgdktypes
;
55 private import lib
.glgdk
;
57 private import glib
.Str
;
58 private import gdk
.Display
;
71 * Indicates whether the window system supports the OpenGL extension
73 * Returns : TRUE if OpenGL is supported, FALSE otherwise.
75 public static int extension()
77 // gboolean gdk_gl_query_extension (void);
78 return gdk_gl_query_extension();
82 * Indicates whether the window system supports the OpenGL extension
84 * display : the GdkDisplay where the query is sent to.
85 * Returns : TRUE if OpenGL is supported, FALSE otherwise.
87 public static int extensionForDisplay(Display display
)
89 // gboolean gdk_gl_query_extension_for_display (GdkDisplay *display);
90 return gdk_gl_query_extension_for_display((display
is null) ?
null : display
.getDisplayStruct());
94 * Returns the version numbers of the OpenGL extension to the window system.
95 * In the X Window System, it returns the GLX version.
96 * In the Microsoft Windows, it returns the Windows version.
97 * major : returns the major version number of the OpenGL extension.
98 * minor : returns the minor version number of the OpenGL extension.
99 * Returns : FALSE if it fails, TRUE otherwise.
101 public static int versio(int* major
, int* minor
)
103 // gboolean gdk_gl_query_version (int *major, int *minor);
104 return gdk_gl_query_version(major
, minor
);
108 * Returns the version numbers of the OpenGL extension to the window system.
109 * In the X Window System, it returns the GLX version.
110 * In the Microsoft Windows, it returns the Windows version.
111 * display : the GdkDisplay where the query is sent to.
112 * major : returns the major version number of the OpenGL extension.
113 * minor : returns the minor version number of the OpenGL extension.
114 * Returns : FALSE if it fails, TRUE otherwise.
116 public static int versionForDisplay(Display display
, int* major
, int* minor
)
118 // gboolean gdk_gl_query_version_for_display (GdkDisplay *display, int *major, int *minor);
119 return gdk_gl_query_version_for_display((display
is null) ?
null : display
.getDisplayStruct(), major
, minor
);
123 * Determines whether a given OpenGL extension is supported.
124 * There must be a valid current rendering context to call
125 * gdk_gl_query_gl_extension().
126 * gdk_gl_query_gl_extension() returns information about OpenGL extensions
127 * only. This means that window system dependent extensions (for example,
128 * GLX extensions) are not reported by gdk_gl_query_gl_extension().
129 * extension : name of OpenGL extension.
130 * Returns : TRUE if the OpenGL extension is supported, FALSE if not
133 public static int glExtension(char[] extension
)
135 // gboolean gdk_gl_query_gl_extension (const char *extension);
136 return gdk_gl_query_gl_extension(Str
.toStringz(extension
));
140 * Returns the address of the OpenGL, GLU, or GLX function.
141 * proc_name : function name.
142 * Returns : the address of the function named by proc_name.
143 * << InitializationFrame Buffer Configuration >>
145 public static GdkGLProc
gdkGLGetProcAddress(char[] procName
)
147 // GdkGLProc gdk_gl_get_proc_address (const char *proc_name);
148 return gdk_gl_get_proc_address(Str
.toStringz(procName
));