mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
Last stubbing we need for mesa icd interface was done by Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth)
---------------------------------------------------------------------------------------------------------------------- svn path=/trunk/; revision=30823
This commit is contained in:
parent
c4ca0c166c
commit
d747ce2059
3 changed files with 177 additions and 15 deletions
|
@ -101,18 +101,41 @@ WGLAPI int GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, u
|
|||
WGLAPI int GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
|
||||
|
||||
#ifndef __MINGW32__
|
||||
|
||||
typedef void *HPBUFFERARB;
|
||||
|
||||
WGLAPI int GLAPIENTRY SwapBuffers(HDC);
|
||||
WGLAPI int GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *);
|
||||
WGLAPI int GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR);
|
||||
WGLAPI int GLAPIENTRY GetPixelFormat(HDC);
|
||||
WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *);
|
||||
|
||||
GLAPI const char * GLAPIENTRY wglGetExtensionsStringEXT (void);
|
||||
GLAPI BOOL GLAPIENTRY wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
|
||||
GLAPI BOOL GLAPIENTRY wglSwapIntervalEXT (int interval);
|
||||
GLAPI int GLAPIENTRY wglGetSwapIntervalEXT (void);
|
||||
GLAPI BOOL GLAPIENTRY wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
|
||||
GLAPI BOOL GLAPIENTRY wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
|
||||
GLAPI BOOL GLAPIENTRY wglMakeContextCurrentARB(HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
|
||||
GLAPI HANDLE GLAPIENTRY wglGetCurrentReadDCARB(void);
|
||||
GLAPI HPBUFFERARB GLAPIENTRY wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
|
||||
GLAPI HDC GLAPIENTRY wglGetPbufferDCARB (HPBUFFERARB hPbuffer);
|
||||
GLAPI int GLAPIENTRY wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC);
|
||||
GLAPI BOOL GLAPIENTRY wglDestroyPbufferARB (HPBUFFERARB hPbuffer);
|
||||
GLAPI BOOL GLAPIENTRY wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
|
||||
GLAPI HANDLE GLAPIENTRY wglCreateBufferRegionARB(HDC hDC, int iLayerPlane, UINT uType);
|
||||
GLAPI VOID GLAPIENTRY wglDeleteBufferRegionARB(HANDLE hRegion);
|
||||
GLAPI BOOL GLAPIENTRY wglSaveBufferRegionARB(HANDLE hRegion, int x, int y, int width, int height);
|
||||
GLAPI BOOL GLAPIENTRY wglRestoreBufferRegionARB(HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
|
||||
GLAPI BOOL GLAPIENTRY wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList);
|
||||
GLAPI BOOL GLAPIENTRY wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
|
||||
GLAPI BOOL GLAPIENTRY wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
|
||||
#endif
|
||||
|
||||
#ifndef WGL_ARB_extensions_string
|
||||
#define WGL_ARB_extensions_string 1
|
||||
|
||||
WGLAPI const char * GLAPIENTRY wglGetExtensionsStringARB(HDC hdc);
|
||||
|
||||
#endif /* WGL_ARB_extensions_string */
|
||||
|
||||
|
||||
|
|
|
@ -795,3 +795,126 @@ wglGetPixelFormatAttribfvARB (HDC hdc,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglMakeContextCurrentARB(HDC hDrawDC,
|
||||
HDC hReadDC,
|
||||
HGLRC hglrc)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI HANDLE GLAPIENTRY
|
||||
wglGetCurrentReadDCARB(void)
|
||||
{
|
||||
SetLastError(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
typedef void *HPBUFFERARB;
|
||||
|
||||
/* WGL_ARB_pbuffer */
|
||||
GLAPI HPBUFFERARB GLAPIENTRY
|
||||
wglCreatePbufferARB (HDC hDC,
|
||||
int iPixelFormat,
|
||||
int iWidth,
|
||||
int iHeight,
|
||||
const int *piAttribList)
|
||||
{
|
||||
SetLastError(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GLAPI HDC GLAPIENTRY
|
||||
wglGetPbufferDCARB (HPBUFFERARB hPbuffer)
|
||||
{
|
||||
SetLastError(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GLAPI int GLAPIENTRY
|
||||
wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC)
|
||||
{
|
||||
SetLastError(0);
|
||||
return -1;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglDestroyPbufferARB (HPBUFFERARB hPbuffer)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglQueryPbufferARB (HPBUFFERARB hPbuffer,
|
||||
int iAttribute,
|
||||
int *piValue)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI HANDLE GLAPIENTRY
|
||||
wglCreateBufferRegionARB(HDC hDC,
|
||||
int iLayerPlane,
|
||||
UINT uType)
|
||||
{
|
||||
SetLastError(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GLAPI VOID GLAPIENTRY
|
||||
wglDeleteBufferRegionARB(HANDLE hRegion)
|
||||
{
|
||||
SetLastError(0);
|
||||
return;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglSaveBufferRegionARB(HANDLE hRegion,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglRestoreBufferRegionARB(HANDLE hRegion,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
int xSrc,
|
||||
int ySrc)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* WGL_ARB_render_texture */
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglSetPbufferAttribARB (HPBUFFERARB hPbuffer,
|
||||
const int *piAttribList)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GLAPI BOOL GLAPIENTRY
|
||||
wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer)
|
||||
{
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -49,12 +49,28 @@ extern "C" {
|
|||
#include "mtypes.h"
|
||||
#include "glapi.h"
|
||||
|
||||
typedef void *HPBUFFERARB;
|
||||
|
||||
GLAPI const char * GLAPIENTRY wglGetExtensionsStringEXT (void);
|
||||
GLAPI BOOL GLAPIENTRY wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
|
||||
GLAPI BOOL GLAPIENTRY wglSwapIntervalEXT (int interval);
|
||||
GLAPI int GLAPIENTRY wglGetSwapIntervalEXT (void);
|
||||
GLAPI BOOL GLAPIENTRY wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
|
||||
GLAPI BOOL GLAPIENTRY wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
|
||||
GLAPI BOOL GLAPIENTRY wglMakeContextCurrentARB(HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
|
||||
GLAPI HANDLE GLAPIENTRY wglGetCurrentReadDCARB(void);
|
||||
GLAPI HPBUFFERARB GLAPIENTRY wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
|
||||
GLAPI HDC GLAPIENTRY wglGetPbufferDCARB (HPBUFFERARB hPbuffer);
|
||||
GLAPI int GLAPIENTRY wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC);
|
||||
GLAPI BOOL GLAPIENTRY wglDestroyPbufferARB (HPBUFFERARB hPbuffer);
|
||||
GLAPI BOOL GLAPIENTRY wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
|
||||
GLAPI HANDLE GLAPIENTRY wglCreateBufferRegionARB(HDC hDC, int iLayerPlane, UINT uType);
|
||||
GLAPI VOID GLAPIENTRY wglDeleteBufferRegionARB(HANDLE hRegion);
|
||||
GLAPI BOOL GLAPIENTRY wglSaveBufferRegionARB(HANDLE hRegion, int x, int y, int width, int height);
|
||||
GLAPI BOOL GLAPIENTRY wglRestoreBufferRegionARB(HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
|
||||
GLAPI BOOL GLAPIENTRY wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList);
|
||||
GLAPI BOOL GLAPIENTRY wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
|
||||
GLAPI BOOL GLAPIENTRY wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
|
||||
|
||||
#define MAX_MESA_ATTRS 20
|
||||
|
||||
|
@ -325,20 +341,20 @@ static struct {
|
|||
{"wglGetPixelFormatAttribivARB", (PROC)wglGetPixelFormatAttribivARB},
|
||||
{"wglGetPixelFormatAttribfvARB", (PROC)wglGetPixelFormatAttribfvARB},
|
||||
{"wglChoosePixelFormatARB", (PROC)wglChoosePixelFormatARB},
|
||||
// {"wglCreatePbufferARB", (PROC)wglCreatePbufferARB},
|
||||
// {"wglGetPbufferDCARB", (PROC)wglGetPbufferDCARB},
|
||||
// {"wglReleasePbufferDCARB", (PROC)wglReleasePbufferDCARB},
|
||||
// {"wglDestroyPbufferARB", (PROC)wglDestroyPbufferARB},
|
||||
// {"wglQueryPbufferARB", (PROC)wglQueryPbufferARB},
|
||||
// {"wglSetPbufferAttribARB", (PROC)wglSetPbufferAttribARB},
|
||||
// {"wglBindTexImageARB", (PROC)wglBindTexImageARB},
|
||||
// {"wglReleaseTexImageARB", (PROC)wglReleaseTexImageARB},
|
||||
// {"wglCreateBufferRegionARB", (PROC)wglCreateBufferRegionARB},
|
||||
// {"wglDeleteBufferRegionARB", (PROC)wglDeleteBufferRegionARB},
|
||||
// {"wglSaveBufferRegionARB", (PROC)wglSaveBufferRegionARB},
|
||||
// {"wglRestoreBufferRegionARB", (PROC)wglRestoreBufferRegionARB},
|
||||
// {"wglMakeContextCurrentARB", (PROC)wglMakeContextCurrentARB},
|
||||
// {"wglGetCurrentReadDCARB", (PROC)wglGetCurrentReadDCARB},
|
||||
{"wglCreatePbufferARB", (PROC)wglCreatePbufferARB},
|
||||
{"wglGetPbufferDCARB", (PROC)wglGetPbufferDCARB},
|
||||
{"wglReleasePbufferDCARB", (PROC)wglReleasePbufferDCARB},
|
||||
{"wglDestroyPbufferARB", (PROC)wglDestroyPbufferARB},
|
||||
{"wglQueryPbufferARB", (PROC)wglQueryPbufferARB},
|
||||
{"wglSetPbufferAttribARB", (PROC)wglSetPbufferAttribARB},
|
||||
{"wglBindTexImageARB", (PROC)wglBindTexImageARB},
|
||||
{"wglReleaseTexImageARB", (PROC)wglReleaseTexImageARB},
|
||||
{"wglCreateBufferRegionARB", (PROC)wglCreateBufferRegionARB},
|
||||
{"wglDeleteBufferRegionARB", (PROC)wglDeleteBufferRegionARB},
|
||||
{"wglSaveBufferRegionARB", (PROC)wglSaveBufferRegionARB},
|
||||
{"wglRestoreBufferRegionARB", (PROC)wglRestoreBufferRegionARB},
|
||||
{"wglMakeContextCurrentARB", (PROC)wglMakeContextCurrentARB},
|
||||
{"wglGetCurrentReadDCARB", (PROC)wglGetCurrentReadDCARB},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue