/[pcsx2_0.9.7]/trunk/3rdparty/GL/wglew.h
ViewVC logotype

Diff of /trunk/3rdparty/GL/wglew.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 61 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 4  Line 4 
4  ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>  ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
5  ** Copyright (C) 2002, Lev Povalahev  ** Copyright (C) 2002, Lev Povalahev
6  ** All rights reserved.  ** All rights reserved.
7  **  **
8  ** Redistribution and use in source and binary forms, with or without  ** Redistribution and use in source and binary forms, with or without
9  ** modification, are permitted provided that the following conditions are met:  ** modification, are permitted provided that the following conditions are met:
10  **  **
11  ** * Redistributions of source code must retain the above copyright notice,  ** * Redistributions of source code must retain the above copyright notice,
12  **   this list of conditions and the following disclaimer.  **   this list of conditions and the following disclaimer.
13  ** * Redistributions in binary form must reproduce the above copyright notice,  ** * Redistributions in binary form must reproduce the above copyright notice,
14  **   this list of conditions and the following disclaimer in the documentation  **   this list of conditions and the following disclaimer in the documentation
15  **   and/or other materials provided with the distribution.  **   and/or other materials provided with the distribution.
16  ** * The name of the author may be used to endorse or promote products  ** * The name of the author may be used to endorse or promote products
17  **   derived from this software without specific prior written permission.  **   derived from this software without specific prior written permission.
18  **  **
19  ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE  ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE  ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE  ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR  ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS  ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)  ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# Line 31  Line 31 
31    
32  /*  /*
33  ** Copyright (c) 2007 The Khronos Group Inc.  ** Copyright (c) 2007 The Khronos Group Inc.
34  **  **
35  ** Permission is hereby granted, free of charge, to any person obtaining a  ** Permission is hereby granted, free of charge, to any person obtaining a
36  ** copy of this software and/or associated documentation files (the  ** copy of this software and/or associated documentation files (the
37  ** "Materials"), to deal in the Materials without restriction, including  ** "Materials"), to deal in the Materials without restriction, including
# Line 39  Line 39 
39  ** distribute, sublicense, and/or sell copies of the Materials, and to  ** distribute, sublicense, and/or sell copies of the Materials, and to
40  ** permit persons to whom the Materials are furnished to do so, subject to  ** permit persons to whom the Materials are furnished to do so, subject to
41  ** the following conditions:  ** the following conditions:
42  **  **
43  ** The above copyright notice and this permission notice shall be included  ** The above copyright notice and this permission notice shall be included
44  ** in all copies or substantial portions of the Materials.  ** in all copies or substantial portions of the Materials.
45  **  **
46  ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,  ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
47  ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF  ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
48  ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# Line 62  Line 62 
62    
63  #define __wglext_h_  #define __wglext_h_
64    
65  #if !defined(APIENTRY) && !defined(__CYGWIN__)  #if !defined(WINAPI)
66  #  ifndef WIN32_LEAN_AND_MEAN  #  ifndef WIN32_LEAN_AND_MEAN
67  #    define WIN32_LEAN_AND_MEAN 1  #    define WIN32_LEAN_AND_MEAN 1
68  #  endif  #  endif
69  #include <windows.h>  #include <windows.h>
70    #  undef WIN32_LEAN_AND_MEAN
71  #endif  #endif
72    
73  /*  /*
# Line 117  typedef BOOL (WINAPI * PFNWGLSETSTEREOEM Line 118  typedef BOOL (WINAPI * PFNWGLSETSTEREOEM
118    
119  #endif /* WGL_3DL_stereo_control */  #endif /* WGL_3DL_stereo_control */
120    
121    /* ------------------------ WGL_AMD_gpu_association ------------------------ */
122    
123    #ifndef WGL_AMD_gpu_association
124    #define WGL_AMD_gpu_association 1
125    
126    #define WGL_GPU_VENDOR_AMD 0x1F00
127    #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
128    #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
129    #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
130    #define WGL_GPU_RAM_AMD 0x21A3
131    #define WGL_GPU_CLOCK_AMD 0x21A4
132    #define WGL_GPU_NUM_PIPES_AMD 0x21A5
133    #define WGL_GPU_NUM_SIMD_AMD 0x21A6
134    #define WGL_GPU_NUM_RB_AMD 0x21A7
135    #define WGL_GPU_NUM_SPI_AMD 0x21A8
136    
137    typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
138    typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
139    typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList);
140    typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
141    typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
142    typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
143    typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids);
144    typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data);
145    typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
146    
147    #define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD)
148    #define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD)
149    #define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD)
150    #define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD)
151    #define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD)
152    #define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD)
153    #define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD)
154    #define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD)
155    #define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD)
156    
157    #define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association)
158    
159    #endif /* WGL_AMD_gpu_association */
160    
161  /* ------------------------- WGL_ARB_buffer_region ------------------------- */  /* ------------------------- WGL_ARB_buffer_region ------------------------- */
162    
163  #ifndef WGL_ARB_buffer_region  #ifndef WGL_ARB_buffer_region
# Line 161  typedef HGLRC (WINAPI * PFNWGLCREATECONT Line 202  typedef HGLRC (WINAPI * PFNWGLCREATECONT
202    
203  #endif /* WGL_ARB_create_context */  #endif /* WGL_ARB_create_context */
204    
205    /* --------------------- WGL_ARB_create_context_profile -------------------- */
206    
207    #ifndef WGL_ARB_create_context_profile
208    #define WGL_ARB_create_context_profile 1
209    
210    #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
211    #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
212    #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
213    
214    #define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile)
215    
216    #endif /* WGL_ARB_create_context_profile */
217    
218  /* ----------------------- WGL_ARB_extensions_string ----------------------- */  /* ----------------------- WGL_ARB_extensions_string ----------------------- */
219    
220  #ifndef WGL_ARB_extensions_string  #ifndef WGL_ARB_extensions_string
# Line 752  typedef BOOL (WINAPI * PFNWGLQUERYFRAMET Line 806  typedef BOOL (WINAPI * PFNWGLQUERYFRAMET
806    
807  #endif /* WGL_I3D_swap_frame_usage */  #endif /* WGL_I3D_swap_frame_usage */
808    
809    /* --------------------------- WGL_NV_copy_image --------------------------- */
810    
811    #ifndef WGL_NV_copy_image
812    #define WGL_NV_copy_image 1
813    
814    typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
815    
816    #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
817    
818    #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
819    
820    #endif /* WGL_NV_copy_image */
821    
822  /* -------------------------- WGL_NV_float_buffer -------------------------- */  /* -------------------------- WGL_NV_float_buffer -------------------------- */
823    
824  #ifndef WGL_NV_float_buffer  #ifndef WGL_NV_float_buffer
# Line 781  typedef BOOL (WINAPI * PFNWGLQUERYFRAMET Line 848  typedef BOOL (WINAPI * PFNWGLQUERYFRAMET
848    
849  DECLARE_HANDLE(HGPUNV);  DECLARE_HANDLE(HGPUNV);
850  typedef struct _GPU_DEVICE {  typedef struct _GPU_DEVICE {
851    DWORD cb;    DWORD cb;
852    CHAR DeviceName[32];    CHAR DeviceName[32];
853    CHAR DeviceString[128];    CHAR DeviceString[128];
854    DWORD Flags;    DWORD Flags;
855    RECT rcVirtualScreen;    RECT rcVirtualScreen;
856  } GPU_DEVICE, *PGPU_DEVICE;  } GPU_DEVICE, *PGPU_DEVICE;
857    
858  typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);  typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
# Line 863  typedef BOOL (WINAPI * PFNWGLBINDSWAPBAR Line 930  typedef BOOL (WINAPI * PFNWGLBINDSWAPBAR
930  typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);  typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
931  typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);  typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
932  typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);  typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
933  typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group);  typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
934  typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);  typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
935    
936  #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)  #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
# Line 969  struct WGLEWContextStruct Line 1036  struct WGLEWContextStruct
1036    
1037  WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;  WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
1038    
1039    WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
1040    WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
1041    WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
1042    WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
1043    WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
1044    WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
1045    WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
1046    WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
1047    WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
1048    
1049  WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;  WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
1050  WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;  WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
1051  WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;  WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
# Line 1054  WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPR Line 1131  WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPR
1131  WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;  WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
1132  WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;  WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
1133    
1134    WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
1135    
1136  WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;  WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
1137  WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;  WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
1138  WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;  WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
# Line 1089  WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __w Line 1168  WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __w
1168  WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;  WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
1169  WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;  WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
1170  WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;  WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
1171    WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association;
1172  WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;  WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
1173  WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context;  WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context;
1174    WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
1175  WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;  WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
1176  WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;  WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
1177  WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;  WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
# Line 1117  WGLEW_EXPORT GLboolean __WGLEW_I3D_genlo Line 1198  WGLEW_EXPORT GLboolean __WGLEW_I3D_genlo
1198  WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;  WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
1199  WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;  WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
1200  WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;  WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
1201    WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image;
1202  WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;  WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
1203  WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity;  WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
1204  WGLEW_EXPORT GLboolean __WGLEW_NV_present_video;  WGLEW_EXPORT GLboolean __WGLEW_NV_present_video;

Legend:
Removed from v.61  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22