forked from AuroraMiddleware/gtk
b960008955
Update the GDKGL implementation: -Allow legacy contexts to be created. -Use finer-grained attributes to ask for a pixel format when possible, which also adds support for anti-aliasing In fact the changes here are required for GTKGL to work properly on Windows for 4.x. Note that creation of gles contexts is not done here, as the system does not support such contexts directly on Windows, but only through means such as ANGLE, which is a totally different issue here. https://bugzilla.gnome.org/show_bug.cgi?id=773528
64 lines
1.6 KiB
C
64 lines
1.6 KiB
C
/*
|
|
* gdkdisplay-win32.h
|
|
*
|
|
* Copyright 2014 Chun-wei Fan <fanc999@yahoo.com.tw>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "gdkdisplayprivate.h"
|
|
|
|
#ifndef __GDK_DISPLAY__WIN32_H__
|
|
#define __GDK_DISPLAY__WIN32_H__
|
|
|
|
struct _GdkWin32Display
|
|
{
|
|
GdkDisplay display;
|
|
|
|
GdkScreen *screen;
|
|
|
|
Win32CursorTheme *cursor_theme;
|
|
gchar *cursor_theme_name;
|
|
int cursor_theme_size;
|
|
GHashTable *cursor_cache;
|
|
|
|
HWND hwnd;
|
|
HWND clipboard_hwnd;
|
|
|
|
/* WGL/OpenGL Items */
|
|
guint have_wgl : 1;
|
|
guint gl_version;
|
|
HDC gl_hdc;
|
|
HWND gl_hwnd;
|
|
|
|
GPtrArray *monitors;
|
|
|
|
guint hasWglARBCreateContext : 1;
|
|
guint hasWglEXTSwapControl : 1;
|
|
guint hasWglOMLSyncControl : 1;
|
|
guint hasWglARBPixelFormat : 1;
|
|
guint hasWglARBmultisample : 1;
|
|
};
|
|
|
|
struct _GdkWin32DisplayClass
|
|
{
|
|
GdkDisplayClass display_class;
|
|
};
|
|
|
|
gboolean _gdk_win32_display_init_monitors (GdkWin32Display *display);
|
|
|
|
GPtrArray *_gdk_win32_display_get_monitor_list (GdkWin32Display *display);
|
|
|
|
#endif /* __GDK_DISPLAY__WIN32_H__ */
|