2 * OpenGL function forwarding to the display driver
4 * Copyright (c) 1999 Lionel Ulmer
5 * Copyright (c) 2005 Raphael Junqueira
6 * Copyright (c) 2006 Roderick Colenbrander
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "wine/port.h"
35 #include "gdi_private.h"
36 #include "wine/debug.h"
38 WINE_DEFAULT_DEBUG_CHANNEL(wgl);
40 /***********************************************************************
41 * wglCreateContext (OPENGL32.@)
43 HGLRC WINAPI wglCreateContext(HDC hdc)
46 DC * dc = DC_GetDCPtr( hdc );
52 if (!dc->funcs->pwglCreateContext) FIXME(" :stub\n");
53 else ret = dc->funcs->pwglCreateContext(dc->physDev);
55 GDI_ReleaseObj( hdc );
59 /***********************************************************************
60 * wglMakeCurrent (OPENGL32.@)
62 BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
65 DC * dc = DC_GetDCPtr( hdc );
67 TRACE("hdc: (%p), hglrc: (%p)\n", hdc, hglrc);
69 if (!dc) return FALSE;
71 if (!dc->funcs->pwglMakeCurrent) FIXME(" :stub\n");
72 else ret = dc->funcs->pwglMakeCurrent(dc->physDev,hglrc);
78 /***********************************************************************
79 * wglUseFontBitmapsA (OPENGL32.@)
81 BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase)
84 DC * dc = DC_GetDCPtr( hdc );
86 TRACE("(%p, %ld, %ld, %ld)\n", hdc, first, count, listBase);
88 if (!dc) return FALSE;
90 if (!dc->funcs->pwglUseFontBitmapsA) FIXME(" :stub\n");
91 else ret = dc->funcs->pwglUseFontBitmapsA(dc->physDev, first, count, listBase);
97 /***********************************************************************
98 * wglUseFontBitmapsW (OPENGL32.@)
100 BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase)
103 DC * dc = DC_GetDCPtr( hdc );
105 TRACE("(%p, %ld, %ld, %ld)\n", hdc, first, count, listBase);
107 if (!dc) return FALSE;
109 if (!dc->funcs->pwglUseFontBitmapsW) FIXME(" :stub\n");
110 else ret = dc->funcs->pwglUseFontBitmapsW(dc->physDev, first, count, listBase);
112 GDI_ReleaseObj( hdc);