;
; License Applicability. Except to the extent portions of this file are
; made subject to an alternative license as permitted in the SGI Free
; Software License B, Version 1.1 (the "License"), the contents of this
; file are subject only to the provisions of the License. You may not use
; this file except in compliance with the License. You may obtain a copy
; of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
; Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
;
; http://oss.sgi.com/projects/FreeB
;
; Note that, as provided in the License, the Software is distributed on an
; "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
; DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
; CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
; PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
;
; Original Code. The Original Code is: OpenGL Sample Implementation,
; Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
; Inc. The Original Code is Copyright (c) 1991-2002 Silicon Graphics, Inc.
; Copyright in any portions created by third parties is as indicated
; elsewhere herein. All Rights Reserved.
;
; Additional Notice Provisions: This software was created using the
; OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
; not been independently verified as being compliant with the OpenGL(R)
; version 1.2.1 Specification.
;
; Converted to asm by Franck Charlet.

;*************************************************************

; Header file version number
; wglext.h last updated 2002/03/22
; Current version at http://oss.sgi.com/projects/ogl-sample/registry/
WGL_WGLEXT_VERSION equ 4

ifndef WGL_ARB_buffer_region
WGL_FRONT_COLOR_BUFFER_BIT_ARB equ 000000001h
WGL_BACK_COLOR_BUFFER_BIT_ARB equ 000000002h
WGL_DEPTH_BUFFER_BIT_ARB equ 000000004h
WGL_STENCIL_BUFFER_BIT_ARB equ 000000008h
endif

ifndef WGL_ARB_multisample
WGL_SAMPLE_BUFFERS_ARB equ 02041h
WGL_SAMPLES_ARB equ 02042h
endif

ifndef WGL_ARB_pixel_format
WGL_NUMBER_PIXEL_FORMATS_ARB equ 02000h
WGL_DRAW_TO_WINDOW_ARB equ 02001h
WGL_DRAW_TO_BITMAP_ARB equ 02002h
WGL_ACCELERATION_ARB equ 02003h
WGL_NEED_PALETTE_ARB equ 02004h
WGL_NEED_SYSTEM_PALETTE_ARB equ 02005h
WGL_SWAP_LAYER_BUFFERS_ARB equ 02006h
WGL_SWAP_METHOD_ARB equ 02007h
WGL_NUMBER_OVERLAYS_ARB equ 02008h
WGL_NUMBER_UNDERLAYS_ARB equ 02009h
WGL_TRANSPARENT_ARB equ 0200Ah
WGL_TRANSPARENT_RED_VALUE_ARB equ 02037h
WGL_TRANSPARENT_GREEN_VALUE_ARB equ 02038h
WGL_TRANSPARENT_BLUE_VALUE_ARB equ 02039h
WGL_TRANSPARENT_ALPHA_VALUE_ARB equ 0203Ah
WGL_TRANSPARENT_INDEX_VALUE_ARB equ 0203Bh
WGL_SHARE_DEPTH_ARB equ 0200Ch
WGL_SHARE_STENCIL_ARB equ 0200Dh
WGL_SHARE_ACCUM_ARB equ 0200Eh
WGL_SUPPORT_GDI_ARB equ 0200Fh
WGL_SUPPORT_OPENGL_ARB equ 02010h
WGL_DOUBLE_BUFFER_ARB equ 02011h
WGL_STEREO_ARB equ 02012h
WGL_PIXEL_TYPE_ARB equ 02013h
WGL_COLOR_BITS_ARB equ 02014h
WGL_RED_BITS_ARB equ 02015h
WGL_RED_SHIFT_ARB equ 02016h
WGL_GREEN_BITS_ARB equ 02017h
WGL_GREEN_SHIFT_ARB equ 02018h
WGL_BLUE_BITS_ARB equ 02019h
WGL_BLUE_SHIFT_ARB equ 0201Ah
WGL_ALPHA_BITS_ARB equ 0201Bh
WGL_ALPHA_SHIFT_ARB equ 0201Ch
WGL_ACCUM_BITS_ARB equ 0201Dh
WGL_ACCUM_RED_BITS_ARB equ 0201Eh
WGL_ACCUM_GREEN_BITS_ARB equ 0201Fh
WGL_ACCUM_BLUE_BITS_ARB equ 02020h
WGL_ACCUM_ALPHA_BITS_ARB equ 02021h
WGL_DEPTH_BITS_ARB equ 02022h
WGL_STENCIL_BITS_ARB equ 02023h
WGL_AUX_BUFFERS_ARB equ 02024h
WGL_NO_ACCELERATION_ARB equ 02025h
WGL_GENERIC_ACCELERATION_ARB equ 02026h
WGL_FULL_ACCELERATION_ARB equ 02027h
WGL_SWAP_EXCHANGE_ARB equ 02028h
WGL_SWAP_COPY_ARB equ 02029h
WGL_SWAP_UNDEFINED_ARB equ 0202Ah
WGL_TYPE_RGBA_ARB equ 0202Bh
WGL_TYPE_COLORINDEX_ARB equ 0202Ch
endif

ifndef WGL_ARB_make_current_read
ERROR_INVALID_PIXEL_TYPE_ARB equ 02043h
ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB equ 02054h
endif

ifndef WGL_ARB_pbuffer
WGL_DRAW_TO_PBUFFER_ARB equ 0202Dh
WGL_MAX_PBUFFER_PIXELS_ARB equ 0202Eh
WGL_MAX_PBUFFER_WIDTH_ARB equ 0202Fh
WGL_MAX_PBUFFER_HEIGHT_ARB equ 02030h
WGL_PBUFFER_LARGEST_ARB equ 02033h
WGL_PBUFFER_WIDTH_ARB equ 02034h
WGL_PBUFFER_HEIGHT_ARB equ 02035h
WGL_PBUFFER_LOST_ARB equ 02036h
endif

ifndef WGL_ARB_render_texture
WGL_BIND_TO_TEXTURE_RGB_ARB equ 02070h
WGL_BIND_TO_TEXTURE_RGBA_ARB equ 02071h
WGL_TEXTURE_FORMAT_ARB equ 02072h
WGL_TEXTURE_TARGET_ARB equ 02073h
WGL_MIPMAP_TEXTURE_ARB equ 02074h
WGL_TEXTURE_RGB_ARB equ 02075h
WGL_TEXTURE_RGBA_ARB equ 02076h
WGL_NO_TEXTURE_ARB equ 02077h
WGL_TEXTURE_CUBE_MAP_ARB equ 02078h
WGL_TEXTURE_1D_ARB equ 02079h
WGL_TEXTURE_2D_ARB equ 0207Ah
WGL_MIPMAP_LEVEL_ARB equ 0207Bh
WGL_CUBE_MAP_FACE_ARB equ 0207Ch
WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB equ 0207Dh
WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB equ 0207Eh
WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB equ 0207Fh
WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB equ 02080h
WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB equ 02081h
WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB equ 02082h
WGL_FRONT_LEFT_ARB equ 02083h
WGL_FRONT_RIGHT_ARB equ 02084h
WGL_BACK_LEFT_ARB equ 02085h
WGL_BACK_RIGHT_ARB equ 02086h
WGL_AUX0_ARB equ 02087h
WGL_AUX1_ARB equ 02088h
WGL_AUX2_ARB equ 02089h
WGL_AUX3_ARB equ 0208Ah
WGL_AUX4_ARB equ 0208Bh
WGL_AUX5_ARB equ 0208Ch
WGL_AUX6_ARB equ 0208Dh
WGL_AUX7_ARB equ 0208Eh
WGL_AUX8_ARB equ 0208Fh
WGL_AUX9_ARB equ 02090h
endif

ifndef WGL_EXT_make_current_read
ERROR_INVALID_PIXEL_TYPE_EXT equ 02043h
endif

ifndef WGL_EXT_pixel_format
WGL_NUMBER_PIXEL_FORMATS_EXT equ 02000h
WGL_DRAW_TO_WINDOW_EXT equ 02001h
WGL_DRAW_TO_BITMAP_EXT equ 02002h
WGL_ACCELERATION_EXT equ 02003h
WGL_NEED_PALETTE_EXT equ 02004h
WGL_NEED_SYSTEM_PALETTE_EXT equ 02005h
WGL_SWAP_LAYER_BUFFERS_EXT equ 02006h
WGL_SWAP_METHOD_EXT equ 02007h
WGL_NUMBER_OVERLAYS_EXT equ 02008h
WGL_NUMBER_UNDERLAYS_EXT equ 02009h
WGL_TRANSPARENT_EXT equ 0200Ah
WGL_TRANSPARENT_VALUE_EXT equ 0200Bh
WGL_SHARE_DEPTH_EXT equ 0200Ch
WGL_SHARE_STENCIL_EXT equ 0200Dh
WGL_SHARE_ACCUM_EXT equ 0200Eh
WGL_SUPPORT_GDI_EXT equ 0200Fh
WGL_SUPPORT_OPENGL_EXT equ 02010h
WGL_DOUBLE_BUFFER_EXT equ 02011h
WGL_STEREO_EXT equ 02012h
WGL_PIXEL_TYPE_EXT equ 02013h
WGL_COLOR_BITS_EXT equ 02014h
WGL_RED_BITS_EXT equ 02015h
WGL_RED_SHIFT_EXT equ 02016h
WGL_GREEN_BITS_EXT equ 02017h
WGL_GREEN_SHIFT_EXT equ 02018h
WGL_BLUE_BITS_EXT equ 02019h
WGL_BLUE_SHIFT_EXT equ 0201Ah
WGL_ALPHA_BITS_EXT equ 0201Bh
WGL_ALPHA_SHIFT_EXT equ 0201Ch
WGL_ACCUM_BITS_EXT equ 0201Dh
WGL_ACCUM_RED_BITS_EXT equ 0201Eh
WGL_ACCUM_GREEN_BITS_EXT equ 0201Fh
WGL_ACCUM_BLUE_BITS_EXT equ 02020h
WGL_ACCUM_ALPHA_BITS_EXT equ 02021h
WGL_DEPTH_BITS_EXT equ 02022h
WGL_STENCIL_BITS_EXT equ 02023h
WGL_AUX_BUFFERS_EXT equ 02024h
WGL_NO_ACCELERATION_EXT equ 02025h
WGL_GENERIC_ACCELERATION_EXT equ 02026h
WGL_FULL_ACCELERATION_EXT equ 02027h
WGL_SWAP_EXCHANGE_EXT equ 02028h
WGL_SWAP_COPY_EXT equ 02029h
WGL_SWAP_UNDEFINED_EXT equ 0202Ah
WGL_TYPE_RGBA_EXT equ 0202Bh
WGL_TYPE_COLORINDEX_EXT equ 0202Ch
endif

ifndef WGL_EXT_pbuffer
WGL_DRAW_TO_PBUFFER_EXT equ 0202Dh
WGL_MAX_PBUFFER_PIXELS_EXT equ 0202Eh
WGL_MAX_PBUFFER_WIDTH_EXT equ 0202Fh
WGL_MAX_PBUFFER_HEIGHT_EXT equ 02030h
WGL_OPTIMAL_PBUFFER_WIDTH_EXT equ 02031h
WGL_OPTIMAL_PBUFFER_HEIGHT_EXT equ 02032h
WGL_PBUFFER_LARGEST_EXT equ 02033h
WGL_PBUFFER_WIDTH_EXT equ 02034h
WGL_PBUFFER_HEIGHT_EXT equ 02035h
endif

ifndef WGL_EXT_depth_float
WGL_DEPTH_FLOAT_EXT equ 02040h
endif

ifndef WGL_3DFX_multisample
WGL_SAMPLE_BUFFERS_3DFX equ 02060h
WGL_SAMPLES_3DFX equ 02061h
endif

ifndef WGL_EXT_multisample
WGL_SAMPLE_BUFFERS_EXT equ 02041h
WGL_SAMPLES_EXT equ 02042h
endif

ifndef WGL_I3D_digital_video_control
WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D equ 02050h
WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D equ 02051h
WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D equ 02052h
WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D equ 02053h
endif

ifndef WGL_I3D_gamma
WGL_GAMMA_TABLE_SIZE_I3D equ 0204Eh
WGL_GAMMA_EXCLUDE_DESKTOP_I3D equ 0204Fh
endif

ifndef WGL_I3D_genlock
WGL_GENLOCK_SOURCE_MULTIVIEW_I3D equ 02044h
WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D equ 02045h
WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D equ 02046h
WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D equ 02047h
WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D equ 02048h
WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D equ 02049h
WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D equ 0204Ah
WGL_GENLOCK_SOURCE_EDGE_RISING_I3D equ 0204Bh
WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D equ 0204Ch
endif

ifndef WGL_I3D_image_buffer
WGL_IMAGE_BUFFER_MIN_ACCESS_I3D equ 000000001h
WGL_IMAGE_BUFFER_LOCK_I3D equ 000000002h
endif

ifndef WGL_NV_render_depth_texture
WGL_BIND_TO_TEXTURE_DEPTH_NV equ 020A3h
WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV equ 020A4h
WGL_DEPTH_TEXTURE_FORMAT_NV equ 020A5h
WGL_TEXTURE_DEPTH_COMPONENT_NV equ 020A6h
WGL_DEPTH_COMPONENT_NV equ 020A7h
endif

ifndef WGL_NV_render_texture_rectangle
WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV equ 020A0h
WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV equ 020A1h
WGL_TEXTURE_RECTANGLE_NV equ 020A2h
endif

ifndef WGL_NV_float_buffer
WGL_FLOAT_COMPONENTS_NV equ 020B0h
WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV equ 020B1h
WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV equ 020B2h
WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV equ 020B3h
WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV equ 020B4h
WGL_TEXTURE_FLOAT_R_NV equ 020B5h
WGL_TEXTURE_FLOAT_RG_NV equ 020B6h
WGL_TEXTURE_FLOAT_RGB_NV equ 020B7h
WGL_TEXTURE_FLOAT_RGBA_NV equ 020B8h
endif

;*************************************************************

;ifndef WGL_ARB_pbuffer
;DECLARE_HANDLE(HPBUFFERARB);
;endif
;ifndef WGL_EXT_pbuffer
;DECLARE_HANDLE(HPBUFFEREXT);
;endif

ifndef WGL_ARB_buffer_region
WGL_ARB_buffer_region equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglCreateBufferRegionARB proto :dword, :dword, :dword
wglDeleteBufferRegionARB proto :dword
wglSaveBufferRegionARB proto :dword, :dword, :dword, :dword, :dword
wglRestoreBufferRegionARB proto :dword, :dword, :dword, :dword, :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLCREATEBUFFERREGIONARBPROC_proto typedef proto :dword, :dword, :dword
PFNWGLCREATEBUFFERREGIONARBPROC typedef ptr PFNWGLCREATEBUFFERREGIONARBPROC_proto
PFNWGLDELETEBUFFERREGIONARBPROC_proto typedef proto :dword
PFNWGLDELETEBUFFERREGIONARBPROC typedef ptr PFNWGLDELETEBUFFERREGIONARBPROC_proto
PFNWGLSAVEBUFFERREGIONARBPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword
PFNWGLSAVEBUFFERREGIONARBPROC typedef ptr PFNWGLSAVEBUFFERREGIONARBPROC_proto
PFNWGLRESTOREBUFFERREGIONARBPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLRESTOREBUFFERREGIONARBPROC typedef ptr PFNWGLRESTOREBUFFERREGIONARBPROC_proto
endif

ifndef WGL_ARB_multisample
WGL_ARB_multisample equ 1
endif

ifndef WGL_ARB_extensions_string
WGL_ARB_extensions_string equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetExtensionsStringARB proto :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETEXTENSIONSSTRINGARBPROC_proto typedef proto :dword
PFNWGLGETEXTENSIONSSTRINGARBPROC typedef ptr PFNWGLGETEXTENSIONSSTRINGARBPROC_proto
endif

ifndef WGL_ARB_pixel_format
WGL_ARB_pixel_format equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetPixelFormatAttribivARB proto :dword, :dword, :dword, :dword, :dword, :dword
wglGetPixelFormatAttribfvARB proto :dword, :dword, :dword, :dword, :dword, :dword
wglChoosePixelFormatARB proto :dword, :dword, :dword, :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETPIXELFORMATATTRIBIVARBPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLGETPIXELFORMATATTRIBIVARBPROC typedef ptr PFNWGLGETPIXELFORMATATTRIBIVARBPROC_proto
PFNWGLGETPIXELFORMATATTRIBFVARBPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLGETPIXELFORMATATTRIBFVARBPROC typedef ptr PFNWGLGETPIXELFORMATATTRIBFVARBPROC_proto
PFNWGLCHOOSEPIXELFORMATARBPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLCHOOSEPIXELFORMATARBPROC typedef ptr PFNWGLCHOOSEPIXELFORMATARBPROC_proto
endif

ifndef WGL_ARB_make_current_read
WGL_ARB_make_current_read equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglMakeContextCurrentARB proto :dword, :dword, :dword
wglGetCurrentReadDCARB proto
endif ;* WGL_WGLEXT_PROTOTYPES
PFNWGLMAKECONTEXTCURRENTARBPROC_proto typedef proto :dword, :dword, :dword
PFNWGLMAKECONTEXTCURRENTARBPROC typedef ptr PFNWGLMAKECONTEXTCURRENTARBPROC_proto
PFNWGLGETCURRENTREADDCARBPROC_proto typedef proto
PFNWGLGETCURRENTREADDCARBPROC typedef ptr PFNWGLGETCURRENTREADDCARBPROC_proto
endif

ifndef WGL_ARB_pbuffer
WGL_ARB_pbuffer equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglCreatePbufferARB proto :dword, :dword, :dword, :dword, :dword
wglGetPbufferDCARB proto :dword
wglReleasePbufferDCARB proto :dword, :dword
wglDestroyPbufferARB proto :dword
wglQueryPbufferARB proto :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLCREATEPBUFFERARBPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword
PFNWGLCREATEPBUFFERARBPROC typedef ptr PFNWGLCREATEPBUFFERARBPROC_proto
PFNWGLGETPBUFFERDCARBPROC_proto typedef proto :dword
PFNWGLGETPBUFFERDCARBPROC typedef ptr PFNWGLGETPBUFFERDCARBPROC_proto
PFNWGLRELEASEPBUFFERDCARBPROC_proto typedef proto :dword, :dword
PFNWGLRELEASEPBUFFERDCARBPROC typedef ptr PFNWGLRELEASEPBUFFERDCARBPROC_proto
PFNWGLDESTROYPBUFFERARBPROC_proto typedef proto :dword
PFNWGLDESTROYPBUFFERARBPROC typedef ptr PFNWGLDESTROYPBUFFERARBPROC_proto
PFNWGLQUERYPBUFFERARBPROC_proto typedef proto :dword, :dword, :dword
PFNWGLQUERYPBUFFERARBPROC typedef ptr PFNWGLQUERYPBUFFERARBPROC_proto
endif

ifndef WGL_ARB_render_texture
WGL_ARB_render_texture equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglBindTexImageARB proto :dword, :dword
wglReleaseTexImageARB proto :dword, :dword
wglSetPbufferAttribARB proto :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLBINDTEXIMAGEARBPROC_proto typedef proto :dword, :dword
PFNWGLBINDTEXIMAGEARBPROC typedef ptr PFNWGLBINDTEXIMAGEARBPROC_proto
PFNWGLRELEASETEXIMAGEARBPROC_proto typedef proto :dword, :dword
PFNWGLRELEASETEXIMAGEARBPROC typedef ptr PFNWGLRELEASETEXIMAGEARBPROC_proto
PFNWGLSETPBUFFERATTRIBARBPROC_proto typedef proto :dword, :dword
PFNWGLSETPBUFFERATTRIBARBPROC typedef ptr PFNWGLSETPBUFFERATTRIBARBPROC_proto
endif

ifndef WGL_EXT_display_color_table
WGL_EXT_display_color_table equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglCreateDisplayColorTableEXT proto :dword
wglLoadDisplayColorTableEXT proto :dword, :dword
wglBindDisplayColorTableEXT proto :dword
wglDestroyDisplayColorTableEXT proto :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC_proto typedef proto :dword
PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC typedef ptr PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC_proto
PFNWGLLOADDISPLAYCOLORTABLEEXTPROC_proto typedef proto :dword, :dword
PFNWGLLOADDISPLAYCOLORTABLEEXTPROC typedef ptr PFNWGLLOADDISPLAYCOLORTABLEEXTPROC_proto
PFNWGLBINDDISPLAYCOLORTABLEEXTPROC_proto typedef proto :dword
PFNWGLBINDDISPLAYCOLORTABLEEXTPROC typedef ptr PFNWGLBINDDISPLAYCOLORTABLEEXTPROC_proto
PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC_proto typedef proto :dword
PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC typedef ptr PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC_proto
endif

ifndef WGL_EXT_extensions_string
WGL_EXT_extensions_string equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetExtensionsStringEXT proto
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETEXTENSIONSSTRINGEXTPROC_proto typedef proto
PFNWGLGETEXTENSIONSSTRINGEXTPROC typedef ptr PFNWGLGETEXTENSIONSSTRINGEXTPROC_proto
endif

ifndef WGL_EXT_make_current_read
WGL_EXT_make_current_read equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglMakeContextCurrentEXT proto :dword, :dword, :dword
wglGetCurrentReadDCEXT proto
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLMAKECONTEXTCURRENTEXTPROC_proto typedef proto :dword, :dword, :dword
PFNWGLMAKECONTEXTCURRENTEXTPROC typedef ptr PFNWGLMAKECONTEXTCURRENTEXTPROC_proto
PFNWGLGETCURRENTREADDCEXTPROC_proto typedef proto
PFNWGLGETCURRENTREADDCEXTPROC typedef ptr PFNWGLGETCURRENTREADDCEXTPROC_proto
endif

ifndef WGL_EXT_pbuffer
WGL_EXT_pbuffer equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglCreatePbufferEXT proto :dword, :dword, :dword, :dword, :dword
wglGetPbufferDCEXT proto :dword
wglReleasePbufferDCEXT proto :dword, :dword
wglDestroyPbufferEXT proto :dword
wglQueryPbufferEXT proto :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLCREATEPBUFFEREXTPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword
PFNWGLCREATEPBUFFEREXTPROC typedef ptr PFNWGLCREATEPBUFFEREXTPROC_proto
PFNWGLGETPBUFFERDCEXTPROC_proto typedef proto :dword
PFNWGLGETPBUFFERDCEXTPROC typedef ptr PFNWGLGETPBUFFERDCEXTPROC_proto
PFNWGLRELEASEPBUFFERDCEXTPROC_proto typedef proto :dword, :dword
PFNWGLRELEASEPBUFFERDCEXTPROC typedef ptr PFNWGLRELEASEPBUFFERDCEXTPROC_proto
PFNWGLDESTROYPBUFFEREXTPROC_proto typedef proto :dword
PFNWGLDESTROYPBUFFEREXTPROC typedef ptr PFNWGLDESTROYPBUFFEREXTPROC_proto
PFNWGLQUERYPBUFFEREXTPROC_proto typedef proto :dword, :dword, :dword
PFNWGLQUERYPBUFFEREXTPROC typedef ptr PFNWGLQUERYPBUFFEREXTPROC_proto
endif

ifndef WGL_EXT_pixel_format
WGL_EXT_pixel_format equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetPixelFormatAttribivEXT proto :dword, :dword, :dword, :dword, :dword, :dword
wglGetPixelFormatAttribfvEXT proto :dword, :dword, :dword, :dword, :dword, :dword
wglChoosePixelFormatEXT proto :dword, :dword, :dword, :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETPIXELFORMATATTRIBIVEXTPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLGETPIXELFORMATATTRIBIVEXTPROC typedef ptr PFNWGLGETPIXELFORMATATTRIBIVEXTPROC_proto
PFNWGLGETPIXELFORMATATTRIBFVEXTPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLGETPIXELFORMATATTRIBFVEXTPROC typedef ptr PFNWGLGETPIXELFORMATATTRIBFVEXTPROC_proto
PFNWGLCHOOSEPIXELFORMATEXTPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword, :dword
PFNWGLCHOOSEPIXELFORMATEXTPROC typedef ptr PFNWGLCHOOSEPIXELFORMATEXTPROC_proto
endif

ifndef WGL_EXT_swap_control
WGL_EXT_swap_control equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglSwapIntervalEXT proto :dword
wglGetSwapIntervalEXT proto
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLSWAPINTERVALEXTPROC_proto typedef proto :dword
PFNWGLSWAPINTERVALEXTPROC typedef ptr PFNWGLSWAPINTERVALEXTPROC_proto
PFNWGLGETSWAPINTERVALEXTPROC_proto typedef proto
PFNWGLGETSWAPINTERVALEXTPROC typedef ptr PFNWGLGETSWAPINTERVALEXTPROC_proto
endif

ifndef WGL_EXT_depth_float
WGL_EXT_depth_float equ 1
endif

ifndef WGL_NV_vertex_array_range
WGL_NV_vertex_array_range equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglAllocateMemoryNV proto :dword, :dword, :dword, :dword
wglFreeMemoryNV proto :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLALLOCATEMEMORYNVPROC_proto typedef proto :dword, :dword, :dword, :dword
PFNWGLALLOCATEMEMORYNVPROC typedef ptr PFNWGLALLOCATEMEMORYNVPROC_proto
PFNWGLFREEMEMORYNVPROC_proto typedef proto :dword
PFNWGLFREEMEMORYNVPROC typedef ptr PFNWGLFREEMEMORYNVPROC_proto
endif

ifndef WGL_3DFX_multisample
WGL_3DFX_multisample equ 1
endif

ifndef WGL_EXT_multisample
WGL_EXT_multisample equ 1
endif

ifndef WGL_OML_sync_control
WGL_OML_sync_control equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetSyncValuesOML proto :dword, :dword, :dword, :dword
wglGetMscRateOML proto :dword, :dword, :dword
wglSwapBuffersMscOML proto :dword, qword, qword, qword
wglSwapLayerBuffersMscOML proto :dword, :dword, qword, qword, qword
wglWaitForMscOML proto :dword, qword, qword, qword, :dword, :dword, :dword
wglWaitForSbcOML proto :dword, qword, :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETSYNCVALUESOMLPROC_proto typedef proto :dword, :dword, :dword, :dword
PFNWGLGETSYNCVALUESOMLPROC typedef ptr PFNWGLGETSYNCVALUESOMLPROC_proto
PFNWGLGETMSCRATEOMLPROC_proto typedef proto :dword, :dword, :dword
PFNWGLGETMSCRATEOMLPROC typedef ptr PFNWGLGETMSCRATEOMLPROC_proto
PFNWGLSWAPBUFFERSMSCOMLPROC_proto typedef proto :dword, :qword, :qword , :qword
PFNWGLSWAPBUFFERSMSCOMLPROC typedef ptr PFNWGLSWAPBUFFERSMSCOMLPROC_proto
PFNWGLSWAPLAYERBUFFERSMSCOMLPROC_proto typedef proto :dword, :dword, :qword, :qword, :qword
PFNWGLSWAPLAYERBUFFERSMSCOMLPROC typedef ptr PFNWGLSWAPLAYERBUFFERSMSCOMLPROC_proto
PFNWGLWAITFORMSCOMLPROC_proto typedef proto :dword, :qword, :qword, :qword, :dword, :dword, :dword
PFNWGLWAITFORMSCOMLPROC typedef ptr PFNWGLWAITFORMSCOMLPROC_proto
PFNWGLWAITFORSBCOMLPROC_proto typedef proto :dword, :qword, :dword, :dword, :dword
PFNWGLWAITFORSBCOMLPROC typedef ptr PFNWGLWAITFORSBCOMLPROC_proto
endif

ifndef WGL_I3D_digital_video_control
WGL_I3D_digital_video_control equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetDigitalVideoParametersI3D proto :dword, :dword, :dword
wglSetDigitalVideoParametersI3D proto :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC typedef ptr PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC_proto
PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC typedef ptr PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC_proto
endif

ifndef WGL_I3D_gamma
WGL_I3D_gamma equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetGammaTableParametersI3D proto :dword, :dword, :dword
wglSetGammaTableParametersI3D proto :dword, :dword, :dword
wglGetGammaTableI3D proto :dword, :dword, :dword, :dword, :dword
wglSetGammaTableI3D proto :dword, :dword, :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETGAMMATABLEPARAMETERSI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLGETGAMMATABLEPARAMETERSI3DPROC typedef ptr PFNWGLGETGAMMATABLEPARAMETERSI3DPROC_proto
PFNWGLSETGAMMATABLEPARAMETERSI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLSETGAMMATABLEPARAMETERSI3DPROC typedef ptr PFNWGLSETGAMMATABLEPARAMETERSI3DPROC_proto
PFNWGLGETGAMMATABLEI3DPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword
PFNWGLGETGAMMATABLEI3DPROC typedef ptr PFNWGLGETGAMMATABLEI3DPROC_proto
PFNWGLSETGAMMATABLEI3DPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword
PFNWGLSETGAMMATABLEI3DPROC typedef ptr PFNWGLSETGAMMATABLEI3DPROC_proto
endif

ifndef WGL_I3D_genlock
WGL_I3D_genlock equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglEnableGenlockI3D proto :dword
wglDisableGenlockI3D proto :dword
wglIsEnabledGenlockI3D proto :dword, :dword
wglGenlockSourceI3D proto :dword, :dword
wglGetGenlockSourceI3D proto :dword, :dword
wglGenlockSourceEdgeI3D proto :dword, :dword
wglGetGenlockSourceEdgeI3D proto :dword, :dword
wglGenlockSampleRateI3D proto :dword, :dword
wglGetGenlockSampleRateI3D proto :dword, :dword
wglGenlockSourceDelayI3D proto :dword, :dword
wglGetGenlockSourceDelayI3D proto :dword, :dword
wglQueryGenlockMaxSourceDelayI3D proto :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLENABLEGENLOCKI3DPROC_proto typedef proto :dword
PFNWGLENABLEGENLOCKI3DPROC typedef ptr PFNWGLENABLEGENLOCKI3DPROC_proto
PFNWGLDISABLEGENLOCKI3DPROC_proto typedef proto :dword
PFNWGLDISABLEGENLOCKI3DPROC typedef ptr PFNWGLDISABLEGENLOCKI3DPROC_proto
PFNWGLISENABLEDGENLOCKI3DPROC_proto typedef proto :dword, :dword
PFNWGLISENABLEDGENLOCKI3DPROC typedef ptr PFNWGLISENABLEDGENLOCKI3DPROC_proto
PFNWGLGENLOCKSOURCEI3DPROC_proto typedef proto :dword, :dword
PFNWGLGENLOCKSOURCEI3DPROC typedef ptr PFNWGLGENLOCKSOURCEI3DPROC_proto
PFNWGLGETGENLOCKSOURCEI3DPROC_proto typedef proto :dword, :dword
PFNWGLGETGENLOCKSOURCEI3DPROC typedef ptr PFNWGLGETGENLOCKSOURCEI3DPROC_proto
PFNWGLGENLOCKSOURCEEDGEI3DPROC_proto typedef proto :dword, :dword
PFNWGLGENLOCKSOURCEEDGEI3DPROC typedef ptr PFNWGLGENLOCKSOURCEEDGEI3DPROC_proto
PFNWGLGETGENLOCKSOURCEEDGEI3DPROC_proto typedef proto :dword, :dword
PFNWGLGETGENLOCKSOURCEEDGEI3DPROC typedef ptr PFNWGLGETGENLOCKSOURCEEDGEI3DPROC_proto
PFNWGLGENLOCKSAMPLERATEI3DPROC_proto typedef proto :dword, :dword
PFNWGLGENLOCKSAMPLERATEI3DPROC typedef ptr PFNWGLGENLOCKSAMPLERATEI3DPROC_proto
PFNWGLGETGENLOCKSAMPLERATEI3DPROC_proto typedef proto :dword, :dword
PFNWGLGETGENLOCKSAMPLERATEI3DPROC typedef ptr PFNWGLGETGENLOCKSAMPLERATEI3DPROC_proto
PFNWGLGENLOCKSOURCEDELAYI3DPROC_proto typedef proto :dword, :dword
PFNWGLGENLOCKSOURCEDELAYI3DPROC typedef ptr PFNWGLGENLOCKSOURCEDELAYI3DPROC_proto
PFNWGLGETGENLOCKSOURCEDELAYI3DPROC_proto typedef proto :dword, :dword
PFNWGLGETGENLOCKSOURCEDELAYI3DPROC typedef ptr PFNWGLGETGENLOCKSOURCEDELAYI3DPROC_proto
PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC typedef ptr PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC_proto
endif

ifndef WGL_I3D_image_buffer
WGL_I3D_image_buffer equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglCreateImageBufferI3D proto :dword, :dword, :dword
wglDestroyImageBufferI3D proto :dword, :dword
wglAssociateImageBufferEventsI3D proto :dword, :dword, :dword, :dword, :dword
wglReleaseImageBufferEventsI3D proto :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLCREATEIMAGEBUFFERI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLCREATEIMAGEBUFFERI3DPROC typedef ptr PFNWGLCREATEIMAGEBUFFERI3DPROC_proto
PFNWGLDESTROYIMAGEBUFFERI3DPROC_proto typedef proto :dword, :dword
PFNWGLDESTROYIMAGEBUFFERI3DPROC typedef ptr PFNWGLDESTROYIMAGEBUFFERI3DPROC_proto
PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC_proto typedef proto :dword, :dword, :dword, :dword, :dword
PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC typedef ptr PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC_proto
PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC typedef ptr PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC_proto
endif

ifndef WGL_I3D_swap_frame_lock
WGL_I3D_swap_frame_lock equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglEnableFrameLockI3D proto
wglDisableFrameLockI3D proto
wglIsEnabledFrameLockI3D proto :dword
wglQueryFrameLockMasterI3D proto :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLENABLEFRAMELOCKI3DPROC_proto typedef proto
PFNWGLENABLEFRAMELOCKI3DPROC typedef ptr PFNWGLENABLEFRAMELOCKI3DPROC_proto
PFNWGLDISABLEFRAMELOCKI3DPROC_proto typedef proto
PFNWGLDISABLEFRAMELOCKI3DPROC typedef ptr PFNWGLDISABLEFRAMELOCKI3DPROC_proto
PFNWGLISENABLEDFRAMELOCKI3DPROC_proto typedef proto :dword
PFNWGLISENABLEDFRAMELOCKI3DPROC typedef ptr PFNWGLISENABLEDFRAMELOCKI3DPROC_proto
PFNWGLQUERYFRAMELOCKMASTERI3DPROC_proto typedef proto :dword
PFNWGLQUERYFRAMELOCKMASTERI3DPROC typedef ptr PFNWGLQUERYFRAMELOCKMASTERI3DPROC_proto
endif

ifndef WGL_I3D_swap_frame_usage
WGL_I3D_swap_frame_usage equ 1
ifdef WGL_WGLEXT_PROTOTYPES
wglGetFrameUsageI3D proto :dword
wglBeginFrameTrackingI3D proto
wglEndFrameTrackingI3D proto
wglQueryFrameTrackingI3D proto :dword, :dword, :dword
endif ; WGL_WGLEXT_PROTOTYPES
PFNWGLGETFRAMEUSAGEI3DPROC_proto typedef proto :dword
PFNWGLGETFRAMEUSAGEI3DPROC typedef ptr PFNWGLGETFRAMEUSAGEI3DPROC_proto
PFNWGLBEGINFRAMETRACKINGI3DPROC_proto typedef proto
PFNWGLBEGINFRAMETRACKINGI3DPROC typedef ptr PFNWGLBEGINFRAMETRACKINGI3DPROC_proto
PFNWGLENDFRAMETRACKINGI3DPROC_proto typedef proto
PFNWGLENDFRAMETRACKINGI3DPROC typedef ptr PFNWGLENDFRAMETRACKINGI3DPROC_proto
PFNWGLQUERYFRAMETRACKINGI3DPROC_proto typedef proto :dword, :dword, :dword
PFNWGLQUERYFRAMETRACKINGI3DPROC typedef ptr PFNWGLQUERYFRAMETRACKINGI3DPROC_proto
endif
