Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. SDL-1.3
authorSam Lantinga <slouken@libsdl.org>
Sun, 28 May 2006 13:04:16 +0000
branchSDL-1.3
changeset 1662782fd950bd46
parent 1661 281d3f4870e5
child 1663 11775724e3fe
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.

WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.

The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce

The headers are being converted to automatically generate doxygen documentation.
.indent.pro
Makefile.in
UNDER_CONSTRUCTION.txt
include/SDL.h
include/SDL_active.h
include/SDL_audio.h
include/SDL_byteorder.h
include/SDL_cdrom.h
include/SDL_compat.h
include/SDL_config_macos.h
include/SDL_config_os2.h
include/SDL_config_win32.h
include/SDL_copying.h
include/SDL_cpuinfo.h
include/SDL_endian.h
include/SDL_error.h
include/SDL_events.h
include/SDL_getenv.h
include/SDL_joystick.h
include/SDL_keyboard.h
include/SDL_keysym.h
include/SDL_loadso.h
include/SDL_main.h
include/SDL_mouse.h
include/SDL_mutex.h
include/SDL_opengl.h
include/SDL_pixels.h
include/SDL_quit.h
include/SDL_rwops.h
include/SDL_stdinc.h
include/SDL_syswm.h
include/SDL_thread.h
include/SDL_timer.h
include/SDL_version.h
include/SDL_video.h
include/begin_code.h
include/close_code.h
include/doxyfile
src/SDL.c
src/SDL_error.c
src/SDL_error_c.h
src/SDL_fatal.c
src/SDL_fatal.h
src/audio/SDL_audio.c
src/audio/SDL_audio_c.h
src/audio/SDL_audiocvt.c
src/audio/SDL_audiodev.c
src/audio/SDL_audiodev_c.h
src/audio/SDL_audiomem.h
src/audio/SDL_mixer.c
src/audio/SDL_mixer_MMX.c
src/audio/SDL_mixer_MMX.h
src/audio/SDL_mixer_MMX_VC.c
src/audio/SDL_mixer_MMX_VC.h
src/audio/SDL_mixer_m68k.c
src/audio/SDL_mixer_m68k.h
src/audio/SDL_sysaudio.h
src/audio/SDL_wave.c
src/audio/SDL_wave.h
src/audio/alsa/SDL_alsa_audio.c
src/audio/alsa/SDL_alsa_audio.h
src/audio/amigaos/SDL_ahiaudio.c
src/audio/amigaos/SDL_ahiaudio.h
src/audio/arts/SDL_artsaudio.c
src/audio/arts/SDL_artsaudio.h
src/audio/baudio/SDL_beaudio.cc
src/audio/baudio/SDL_beaudio.h
src/audio/bsd/SDL_bsdaudio.c
src/audio/bsd/SDL_bsdaudio.h
src/audio/dart/SDL_dart.c
src/audio/dart/SDL_dart.h
src/audio/dc/SDL_dcaudio.c
src/audio/dc/SDL_dcaudio.h
src/audio/dc/aica.c
src/audio/dc/aica.h
src/audio/disk/SDL_diskaudio.c
src/audio/disk/SDL_diskaudio.h
src/audio/dma/SDL_dmaaudio.c
src/audio/dma/SDL_dmaaudio.h
src/audio/dmedia/SDL_irixaudio.c
src/audio/dmedia/SDL_irixaudio.h
src/audio/dsp/SDL_dspaudio.c
src/audio/dsp/SDL_dspaudio.h
src/audio/dummy/SDL_dummyaudio.c
src/audio/dummy/SDL_dummyaudio.h
src/audio/esd/SDL_esdaudio.c
src/audio/esd/SDL_esdaudio.h
src/audio/macosx/SDL_coreaudio.c
src/audio/macosx/SDL_coreaudio.h
src/audio/macrom/SDL_romaudio.c
src/audio/macrom/SDL_romaudio.h
src/audio/mint/SDL_mintaudio.c
src/audio/mint/SDL_mintaudio.h
src/audio/mint/SDL_mintaudio_dma8.c
src/audio/mint/SDL_mintaudio_dma8.h
src/audio/mint/SDL_mintaudio_gsxb.c
src/audio/mint/SDL_mintaudio_gsxb.h
src/audio/mint/SDL_mintaudio_mcsn.c
src/audio/mint/SDL_mintaudio_mcsn.h
src/audio/mint/SDL_mintaudio_stfa.c
src/audio/mint/SDL_mintaudio_stfa.h
src/audio/mint/SDL_mintaudio_xbios.c
src/audio/mme/SDL_mmeaudio.c
src/audio/mme/SDL_mmeaudio.h
src/audio/nas/SDL_nasaudio.c
src/audio/nas/SDL_nasaudio.h
src/audio/nto/SDL_nto_audio.c
src/audio/nto/SDL_nto_audio.h
src/audio/paudio/SDL_paudio.c
src/audio/paudio/SDL_paudio.h
src/audio/sun/SDL_sunaudio.c
src/audio/sun/SDL_sunaudio.h
src/audio/ums/SDL_umsaudio.c
src/audio/ums/SDL_umsaudio.h
src/audio/windib/SDL_dibaudio.c
src/audio/windib/SDL_dibaudio.h
src/audio/windx5/SDL_dx5audio.c
src/audio/windx5/SDL_dx5audio.h
src/audio/windx5/directx.h
src/cdrom/SDL_cdrom.c
src/cdrom/SDL_syscdrom.h
src/cdrom/aix/SDL_syscdrom.c
src/cdrom/beos/SDL_syscdrom.cc
src/cdrom/bsdi/SDL_syscdrom.c
src/cdrom/dc/SDL_syscdrom.c
src/cdrom/dummy/SDL_syscdrom.c
src/cdrom/freebsd/SDL_syscdrom.c
src/cdrom/linux/SDL_syscdrom.c
src/cdrom/macos/SDL_syscdrom.c
src/cdrom/macos/SDL_syscdrom_c.h
src/cdrom/macosx/AudioFilePlayer.c
src/cdrom/macosx/AudioFilePlayer.h
src/cdrom/macosx/AudioFileReaderThread.c
src/cdrom/macosx/CDPlayer.c
src/cdrom/macosx/CDPlayer.h
src/cdrom/macosx/SDLOSXCAGuard.c
src/cdrom/macosx/SDLOSXCAGuard.h
src/cdrom/macosx/SDL_syscdrom.c
src/cdrom/macosx/SDL_syscdrom_c.h
src/cdrom/mint/SDL_syscdrom.c
src/cdrom/openbsd/SDL_syscdrom.c
src/cdrom/os2/SDL_syscdrom.c
src/cdrom/osf/SDL_syscdrom.c
src/cdrom/qnx/SDL_syscdrom.c
src/cdrom/win32/SDL_syscdrom.c
src/cpuinfo/SDL_cpuinfo.c
src/events/SDL_active.c
src/events/SDL_events.c
src/events/SDL_events_c.h
src/events/SDL_expose.c
src/events/SDL_keyboard.c
src/events/SDL_mouse.c
src/events/SDL_quit.c
src/events/SDL_resize.c
src/events/SDL_sysevents.h
src/events/SDL_windowevents.c
src/file/SDL_rwops.c
src/hermes/HeadMMX.h
src/hermes/HeadX86.h
src/joystick/SDL_joystick.c
src/joystick/SDL_joystick_c.h
src/joystick/SDL_sysjoystick.h
src/joystick/amigaos/SDL_sysjoystick.c
src/joystick/beos/SDL_bejoystick.cc
src/joystick/bsd/SDL_sysjoystick.c
src/joystick/darwin/SDL_sysjoystick.c
src/joystick/dc/SDL_sysjoystick.c
src/joystick/dummy/SDL_sysjoystick.c
src/joystick/linux/SDL_sysjoystick.c
src/joystick/macos/SDL_sysjoystick.c
src/joystick/mint/SDL_sysjoystick.c
src/joystick/os2/SDL_sysjoystick.c
src/joystick/os2/joyos2.h
src/joystick/riscos/SDL_sysjoystick.c
src/joystick/win32/SDL_dxjoystick.c
src/joystick/win32/SDL_mmjoystick.c
src/loadso/beos/SDL_sysloadso.c
src/loadso/dlopen/SDL_sysloadso.c
src/loadso/dummy/SDL_sysloadso.c
src/loadso/macos/SDL_sysloadso.c
src/loadso/macosx/SDL_dlcompat.c
src/loadso/mint/SDL_sysloadso.c
src/loadso/os2/SDL_sysloadso.c
src/loadso/win32/SDL_sysloadso.c
src/main/beos/SDL_BeApp.cc
src/main/beos/SDL_BeApp.h
src/main/dummy/SDL_dummy_main.c
src/main/macos/SDL_main.c
src/main/macosx/SDLMain.h
src/main/macosx/SDLMain.m
src/main/qtopia/SDL_qtopia_main.cc
src/main/win32/SDL_win32_main.c
src/stdlib/SDL_getenv.c
src/stdlib/SDL_iconv.c
src/stdlib/SDL_malloc.c
src/stdlib/SDL_qsort.c
src/stdlib/SDL_stdlib.c
src/stdlib/SDL_string.c
src/thread/SDL_systhread.h
src/thread/SDL_thread.c
src/thread/SDL_thread_c.h
src/thread/amigaos/SDL_syssem.c
src/thread/amigaos/SDL_systhread.c
src/thread/amigaos/SDL_systhread_c.h
src/thread/amigaos/SDL_thread.c
src/thread/beos/SDL_syssem.c
src/thread/beos/SDL_systhread.c
src/thread/beos/SDL_systhread_c.h
src/thread/dc/SDL_syscond.c
src/thread/dc/SDL_syscond_c.h
src/thread/dc/SDL_sysmutex.c
src/thread/dc/SDL_sysmutex_c.h
src/thread/dc/SDL_syssem.c
src/thread/dc/SDL_syssem_c.h
src/thread/dc/SDL_systhread.c
src/thread/dc/SDL_systhread_c.h
src/thread/epoc/SDL_systhread_c.h
src/thread/generic/SDL_syscond.c
src/thread/generic/SDL_sysmutex.c
src/thread/generic/SDL_sysmutex_c.h
src/thread/generic/SDL_syssem.c
src/thread/generic/SDL_systhread.c
src/thread/generic/SDL_systhread_c.h
src/thread/irix/SDL_syssem.c
src/thread/irix/SDL_systhread.c
src/thread/irix/SDL_systhread_c.h
src/thread/os2/SDL_syscond.c
src/thread/os2/SDL_syscond_c.h
src/thread/os2/SDL_sysmutex.c
src/thread/os2/SDL_syssem.c
src/thread/os2/SDL_systhread.c
src/thread/os2/SDL_systhread_c.h
src/thread/pth/SDL_syscond.c
src/thread/pth/SDL_sysmutex.c
src/thread/pth/SDL_sysmutex_c.h
src/thread/pth/SDL_systhread.c
src/thread/pth/SDL_systhread_c.h
src/thread/pthread/SDL_syscond.c
src/thread/pthread/SDL_sysmutex.c
src/thread/pthread/SDL_sysmutex_c.h
src/thread/pthread/SDL_syssem.c
src/thread/pthread/SDL_systhread.c
src/thread/pthread/SDL_systhread_c.h
src/thread/riscos/SDL_syscond.c
src/thread/riscos/SDL_sysmutex.c
src/thread/riscos/SDL_sysmutex_c.h
src/thread/riscos/SDL_syssem.c
src/thread/riscos/SDL_systhread.c
src/thread/riscos/SDL_systhread_c.h
src/thread/win32/SDL_sysmutex.c
src/thread/win32/SDL_syssem.c
src/thread/win32/SDL_systhread.c
src/thread/win32/SDL_systhread_c.h
src/thread/win32/win_ce_semaphore.c
src/thread/win32/win_ce_semaphore.h
src/timer/SDL_systimer.h
src/timer/SDL_timer.c
src/timer/SDL_timer_c.h
src/timer/amigaos/SDL_systimer.c
src/timer/beos/SDL_systimer.c
src/timer/dc/SDL_systimer.c
src/timer/dummy/SDL_systimer.c
src/timer/macos/FastTimes.c
src/timer/macos/FastTimes.h
src/timer/macos/SDL_MPWtimer.c
src/timer/macos/SDL_systimer.c
src/timer/mint/SDL_systimer.c
src/timer/mint/SDL_vbltimer_s.h
src/timer/os2/SDL_systimer.c
src/timer/riscos/SDL_systimer.c
src/timer/unix/SDL_systimer.c
src/timer/win32/SDL_systimer.c
src/timer/wince/SDL_systimer.c
src/video/SDL_RLEaccel.c
src/video/SDL_RLEaccel_c.h
src/video/SDL_blit.c
src/video/SDL_blit.h
src/video/SDL_blit_0.c
src/video/SDL_blit_1.c
src/video/SDL_blit_A.c
src/video/SDL_blit_N.c
src/video/SDL_bmp.c
src/video/SDL_cursor.c
src/video/SDL_cursor_c.h
src/video/SDL_gamma.c
src/video/SDL_glfuncs.h
src/video/SDL_leaks.h
src/video/SDL_pixels.c
src/video/SDL_pixels_c.h
src/video/SDL_stretch.c
src/video/SDL_stretch_c.h
src/video/SDL_surface.c
src/video/SDL_sysvideo.h
src/video/SDL_video.c
src/video/SDL_yuv.c
src/video/SDL_yuv_mmx.c
src/video/SDL_yuv_sw.c
src/video/SDL_yuv_sw_c.h
src/video/SDL_yuvfuncs.h
src/video/Xext/XME/xme.c
src/video/Xext/Xinerama/Xinerama.c
src/video/Xext/Xv/Xv.c
src/video/Xext/Xv/Xvlibint.h
src/video/Xext/Xxf86dga/XF86DGA.c
src/video/Xext/Xxf86dga/XF86DGA2.c
src/video/Xext/Xxf86vm/XF86VMode.c
src/video/Xext/extensions/Xext.h
src/video/Xext/extensions/Xinerama.h
src/video/Xext/extensions/Xv.h
src/video/Xext/extensions/Xvlib.h
src/video/Xext/extensions/Xvproto.h
src/video/Xext/extensions/extutil.h
src/video/Xext/extensions/panoramiXext.h
src/video/Xext/extensions/panoramiXproto.h
src/video/Xext/extensions/xf86dga.h
src/video/Xext/extensions/xf86dga1.h
src/video/Xext/extensions/xf86dga1str.h
src/video/Xext/extensions/xf86dgastr.h
src/video/Xext/extensions/xf86vmode.h
src/video/Xext/extensions/xf86vmstr.h
src/video/Xext/extensions/xme.h
src/video/aalib/SDL_aaevents.c
src/video/aalib/SDL_aaevents_c.h
src/video/aalib/SDL_aamouse.c
src/video/aalib/SDL_aamouse_c.h
src/video/aalib/SDL_aavideo.c
src/video/aalib/SDL_aavideo.h
src/video/ataricommon/SDL_ataric2p_s.h
src/video/ataricommon/SDL_ataridevmouse.c
src/video/ataricommon/SDL_ataridevmouse_c.h
src/video/ataricommon/SDL_atarieddi_s.h
src/video/ataricommon/SDL_atarievents.c
src/video/ataricommon/SDL_atarievents_c.h
src/video/ataricommon/SDL_atarigl.c
src/video/ataricommon/SDL_atarigl_c.h
src/video/ataricommon/SDL_atarikeys.h
src/video/ataricommon/SDL_atarimxalloc.c
src/video/ataricommon/SDL_atarimxalloc_c.h
src/video/ataricommon/SDL_biosevents.c
src/video/ataricommon/SDL_biosevents_c.h
src/video/ataricommon/SDL_gemdosevents.c
src/video/ataricommon/SDL_gemdosevents_c.h
src/video/ataricommon/SDL_ikbdevents.c
src/video/ataricommon/SDL_ikbdevents_c.h
src/video/ataricommon/SDL_ikbdinterrupt_s.h
src/video/ataricommon/SDL_xbiosevents.c
src/video/ataricommon/SDL_xbiosevents_c.h
src/video/ataricommon/SDL_xbiosinterrupt_s.h
src/video/blank_cursor.h
src/video/bwindow/SDL_BView.h
src/video/bwindow/SDL_BWin.h
src/video/bwindow/SDL_lowvideo.h
src/video/bwindow/SDL_sysevents.cc
src/video/bwindow/SDL_sysevents_c.h
src/video/bwindow/SDL_sysmouse.cc
src/video/bwindow/SDL_sysmouse_c.h
src/video/bwindow/SDL_sysvideo.cc
src/video/bwindow/SDL_syswm.cc
src/video/bwindow/SDL_syswm_c.h
src/video/bwindow/SDL_sysyuv.cc
src/video/bwindow/SDL_sysyuv.h
src/video/cybergfx/SDL_amigaevents.c
src/video/cybergfx/SDL_amigaevents_c.h
src/video/cybergfx/SDL_amigamouse.c
src/video/cybergfx/SDL_amigamouse_c.h
src/video/cybergfx/SDL_cgxaccel.c
src/video/cybergfx/SDL_cgxgl.c
src/video/cybergfx/SDL_cgxgl_c.h
src/video/cybergfx/SDL_cgximage.c
src/video/cybergfx/SDL_cgximage_c.h
src/video/cybergfx/SDL_cgxmodes.c
src/video/cybergfx/SDL_cgxmodes_c.h
src/video/cybergfx/SDL_cgxvideo.c
src/video/cybergfx/SDL_cgxvideo.h
src/video/cybergfx/SDL_cgxwm.c
src/video/cybergfx/SDL_cgxwm_c.h
src/video/dc/SDL_dcevents.c
src/video/dc/SDL_dcevents_c.h
src/video/dc/SDL_dcmouse.c
src/video/dc/SDL_dcmouse_c.h
src/video/dc/SDL_dcvideo.c
src/video/dc/SDL_dcvideo.h
src/video/default_cursor.h
src/video/dga/SDL_dgaevents.c
src/video/dga/SDL_dgaevents_c.h
src/video/dga/SDL_dgamouse.c
src/video/dga/SDL_dgamouse_c.h
src/video/dga/SDL_dgavideo.c
src/video/dga/SDL_dgavideo.h
src/video/directfb/SDL_DirectFB_events.c
src/video/directfb/SDL_DirectFB_events.h
src/video/directfb/SDL_DirectFB_keys.h
src/video/directfb/SDL_DirectFB_video.c
src/video/directfb/SDL_DirectFB_video.h
src/video/directfb/SDL_DirectFB_yuv.c
src/video/directfb/SDL_DirectFB_yuv.h
src/video/dummy/SDL_nullevents.c
src/video/dummy/SDL_nullevents_c.h
src/video/dummy/SDL_nullmouse.c
src/video/dummy/SDL_nullmouse_c.h
src/video/dummy/SDL_nullvideo.c
src/video/dummy/SDL_nullvideo.h
src/video/e_log.h
src/video/e_pow.h
src/video/e_sqrt.h
src/video/epoc/SDL_epocevents_c.h
src/video/epoc/SDL_epocvideo.h
src/video/fbcon/3dfx_mmio.h
src/video/fbcon/3dfx_regs.h
src/video/fbcon/SDL_fb3dfx.c
src/video/fbcon/SDL_fb3dfx.h
src/video/fbcon/SDL_fbelo.c
src/video/fbcon/SDL_fbelo.h
src/video/fbcon/SDL_fbevents.c
src/video/fbcon/SDL_fbevents_c.h
src/video/fbcon/SDL_fbkeys.h
src/video/fbcon/SDL_fbmatrox.c
src/video/fbcon/SDL_fbmatrox.h
src/video/fbcon/SDL_fbmouse.c
src/video/fbcon/SDL_fbmouse_c.h
src/video/fbcon/SDL_fbriva.c
src/video/fbcon/SDL_fbriva.h
src/video/fbcon/SDL_fbvideo.c
src/video/fbcon/SDL_fbvideo.h
src/video/fbcon/matrox_mmio.h
src/video/fbcon/matrox_regs.h
src/video/fbcon/riva_mmio.h
src/video/fbcon/riva_regs.h
src/video/gapi/SDL_gapivideo.c
src/video/gapi/SDL_gapivideo.h
src/video/gem/SDL_gemevents.c
src/video/gem/SDL_gemevents_c.h
src/video/gem/SDL_gemmouse.c
src/video/gem/SDL_gemmouse_c.h
src/video/gem/SDL_gemvideo.c
src/video/gem/SDL_gemvideo.h
src/video/gem/SDL_gemwm.c
src/video/gem/SDL_gemwm_c.h
src/video/ggi/SDL_ggievents.c
src/video/ggi/SDL_ggievents_c.h
src/video/ggi/SDL_ggikeys.h
src/video/ggi/SDL_ggimouse.c
src/video/ggi/SDL_ggimouse_c.h
src/video/ggi/SDL_ggivideo.c
src/video/ggi/SDL_ggivideo.h
src/video/glsdl/SDL_glsdl.c
src/video/glsdl/SDL_glsdl.h
src/video/ipod/SDL_ipodvideo.c
src/video/ipod/SDL_ipodvideo.h
src/video/maccommon/SDL_lowvideo.h
src/video/maccommon/SDL_macevents.c
src/video/maccommon/SDL_macevents_c.h
src/video/maccommon/SDL_macgl.c
src/video/maccommon/SDL_macgl_c.h
src/video/maccommon/SDL_mackeys.h
src/video/maccommon/SDL_macmouse.c
src/video/maccommon/SDL_macmouse_c.h
src/video/maccommon/SDL_macwm.c
src/video/maccommon/SDL_macwm_c.h
src/video/macdsp/SDL_dspvideo.c
src/video/macdsp/SDL_dspvideo.h
src/video/macrom/SDL_romvideo.c
src/video/macrom/SDL_romvideo.h
src/video/math_private.h
src/video/mmx.h
src/video/nanox/SDL_nxevents.c
src/video/nanox/SDL_nxevents_c.h
src/video/nanox/SDL_nximage.c
src/video/nanox/SDL_nximage_c.h
src/video/nanox/SDL_nxmodes.c
src/video/nanox/SDL_nxmodes_c.h
src/video/nanox/SDL_nxmouse.c
src/video/nanox/SDL_nxmouse_c.h
src/video/nanox/SDL_nxvideo.c
src/video/nanox/SDL_nxvideo.h
src/video/nanox/SDL_nxwm.c
src/video/nanox/SDL_nxwm_c.h
src/video/os2fslib/SDL_os2fslib.c
src/video/os2fslib/SDL_os2fslib.h
src/video/os2fslib/SDL_vkeys.h
src/video/photon/SDL_ph_events.c
src/video/photon/SDL_ph_events_c.h
src/video/photon/SDL_ph_gl.c
src/video/photon/SDL_ph_gl.h
src/video/photon/SDL_ph_image.c
src/video/photon/SDL_ph_image_c.h
src/video/photon/SDL_ph_modes.c
src/video/photon/SDL_ph_modes_c.h
src/video/photon/SDL_ph_mouse.c
src/video/photon/SDL_ph_mouse_c.h
src/video/photon/SDL_ph_video.c
src/video/photon/SDL_ph_video.h
src/video/photon/SDL_ph_wm.c
src/video/photon/SDL_ph_wm_c.h
src/video/photon/SDL_phyuv.c
src/video/photon/SDL_phyuv_c.h
src/video/picogui/SDL_pgevents.c
src/video/picogui/SDL_pgevents_c.h
src/video/picogui/SDL_pgvideo.c
src/video/picogui/SDL_pgvideo.h
src/video/ps2gs/SDL_gsevents.c
src/video/ps2gs/SDL_gsevents_c.h
src/video/ps2gs/SDL_gskeys.h
src/video/ps2gs/SDL_gsmouse.c
src/video/ps2gs/SDL_gsmouse_c.h
src/video/ps2gs/SDL_gsvideo.c
src/video/ps2gs/SDL_gsvideo.h
src/video/ps2gs/SDL_gsyuv.c
src/video/ps2gs/SDL_gsyuv_c.h
src/video/qtopia/SDL_QPEApp.cc
src/video/qtopia/SDL_QPEApp.h
src/video/qtopia/SDL_QWin.cc
src/video/qtopia/SDL_QWin.h
src/video/qtopia/SDL_lowvideo.h
src/video/qtopia/SDL_sysevents.cc
src/video/qtopia/SDL_sysevents_c.h
src/video/qtopia/SDL_sysmouse.cc
src/video/qtopia/SDL_sysmouse_c.h
src/video/qtopia/SDL_sysvideo.cc
src/video/qtopia/SDL_syswm.cc
src/video/qtopia/SDL_syswm_c.h
src/video/quartz/CGS.h
src/video/quartz/SDL_QuartzEvents.m
src/video/quartz/SDL_QuartzGL.m
src/video/quartz/SDL_QuartzKeys.h
src/video/quartz/SDL_QuartzVideo.h
src/video/quartz/SDL_QuartzVideo.m
src/video/quartz/SDL_QuartzWM.m
src/video/quartz/SDL_QuartzWindow.h
src/video/quartz/SDL_QuartzWindow.m
src/video/quartz/SDL_QuartzYUV.m
src/video/riscos/SDL_riscosFullScreenVideo.c
src/video/riscos/SDL_riscosevents.c
src/video/riscos/SDL_riscosevents_c.h
src/video/riscos/SDL_riscosmouse.c
src/video/riscos/SDL_riscosmouse_c.h
src/video/riscos/SDL_riscossprite.c
src/video/riscos/SDL_riscostask.c
src/video/riscos/SDL_riscostask.h
src/video/riscos/SDL_riscosvideo.c
src/video/riscos/SDL_riscosvideo.h
src/video/riscos/SDL_wimppoll.c
src/video/riscos/SDL_wimpvideo.c
src/video/svga/SDL_svgaevents.c
src/video/svga/SDL_svgaevents_c.h
src/video/svga/SDL_svgamouse.c
src/video/svga/SDL_svgamouse_c.h
src/video/svga/SDL_svgavideo.c
src/video/svga/SDL_svgavideo.h
src/video/vgl/SDL_vglevents.c
src/video/vgl/SDL_vglevents_c.h
src/video/vgl/SDL_vglmouse.c
src/video/vgl/SDL_vglmouse_c.h
src/video/vgl/SDL_vglvideo.c
src/video/vgl/SDL_vglvideo.h
src/video/wincommon/SDL_lowvideo.h
src/video/wincommon/SDL_sysevents.c
src/video/wincommon/SDL_sysmouse.c
src/video/wincommon/SDL_sysmouse_c.h
src/video/wincommon/SDL_syswm.c
src/video/wincommon/SDL_syswm_c.h
src/video/wincommon/SDL_wingl.c
src/video/wincommon/SDL_wingl_c.h
src/video/wincommon/wmmsg.h
src/video/windib/SDL_dibevents.c
src/video/windib/SDL_dibevents_c.h
src/video/windib/SDL_dibvideo.c
src/video/windib/SDL_dibvideo.h
src/video/windib/SDL_vkeys.h
src/video/windx5/SDL_dx5events.c
src/video/windx5/SDL_dx5events_c.h
src/video/windx5/SDL_dx5video.c
src/video/windx5/SDL_dx5video.h
src/video/windx5/SDL_dx5yuv.c
src/video/windx5/SDL_dx5yuv_c.h
src/video/windx5/directx.h
src/video/wscons/SDL_wsconsevents.c
src/video/wscons/SDL_wsconsevents_c.h
src/video/wscons/SDL_wsconsmouse.c
src/video/wscons/SDL_wsconsmouse_c.h
src/video/wscons/SDL_wsconsvideo.c
src/video/wscons/SDL_wsconsvideo.h
src/video/x11/SDL_x11dga.c
src/video/x11/SDL_x11dga_c.h
src/video/x11/SDL_x11dyn.c
src/video/x11/SDL_x11dyn.h
src/video/x11/SDL_x11events.c
src/video/x11/SDL_x11events_c.h
src/video/x11/SDL_x11gamma.c
src/video/x11/SDL_x11gamma_c.h
src/video/x11/SDL_x11gl.c
src/video/x11/SDL_x11gl_c.h
src/video/x11/SDL_x11image.c
src/video/x11/SDL_x11image_c.h
src/video/x11/SDL_x11modes.c
src/video/x11/SDL_x11modes_c.h
src/video/x11/SDL_x11mouse.c
src/video/x11/SDL_x11mouse_c.h
src/video/x11/SDL_x11sym.h
src/video/x11/SDL_x11video.c
src/video/x11/SDL_x11video.h
src/video/x11/SDL_x11wm.c
src/video/x11/SDL_x11wm_c.h
src/video/x11/SDL_x11yuv.c
src/video/x11/SDL_x11yuv_c.h
src/video/xbios/SDL_xbios.c
src/video/xbios/SDL_xbios.h
src/video/xbios/SDL_xbios_blowup.c
src/video/xbios/SDL_xbios_blowup.h
src/video/xbios/SDL_xbios_centscreen.c
src/video/xbios/SDL_xbios_centscreen.h
src/video/xbios/SDL_xbios_sb3.c
src/video/xbios/SDL_xbios_sb3.h
test/checkkeys.c
test/graywin.c
test/loopwave.c
test/testalpha.c
test/testbitmap.c
test/testblitspeed.c
test/testcdrom.c
test/testdyngl.c
test/testerror.c
test/testfile.c
test/testgamma.c
test/testgl.c
test/testhread.c
test/testiconv.c
test/testjoystick.c
test/testkeys.c
test/testlock.c
test/testoverlay.c
test/testoverlay2.c
test/testpalette.c
test/testplatform.c
test/testsem.c
test/testsprite.c
test/testtimer.c
test/testver.c
test/testvidinfo.c
test/testwin.c
test/testwm.c
test/threadwin.c
test/torturethread.c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.indent.pro	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -0,0 +1,1 @@
     1.4 +-i4 -nut -nsc -br -ce
     2.1 --- a/Makefile.in	Sun May 21 17:27:13 2006 +0000
     2.2 +++ b/Makefile.in	Sun May 28 13:04:16 2006 +0000
     2.3 @@ -125,6 +125,15 @@
     2.4  	    rm -f $(mandir)/man3/$$file; \
     2.5  	done
     2.6  
     2.7 +indent:
     2.8 +	cd $(srcdir) && \
     2.9 +	find . \( \
    2.10 +	    -name '*.h' -o \
    2.11 +	    -name '*.c' -o \
    2.12 +	    -name '*.cc' -o \
    2.13 +	    -name '*.m' \) \
    2.14 +	    -exec indent {} \;
    2.15 +
    2.16  clean:
    2.17  	rm -rf $(objects)
    2.18  	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/UNDER_CONSTRUCTION.txt	Sun May 28 13:04:16 2006 +0000
     3.3 @@ -0,0 +1,1 @@
     3.4 +WARNING: This code is under construction, may not build, and is unstable!
     4.1 --- a/include/SDL.h	Sun May 21 17:27:13 2006 +0000
     4.2 +++ b/include/SDL.h	Sun May 28 13:04:16 2006 +0000
     4.3 @@ -20,7 +20,56 @@
     4.4      slouken@libsdl.org
     4.5  */
     4.6  
     4.7 -/* Main include header for the SDL library */
     4.8 +/**
     4.9 + * \file SDL.h
    4.10 + *
    4.11 + * Main include header for the SDL library
    4.12 + */
    4.13 +/**
    4.14 + * \mainpage Simple DirectMedia Layer (SDL)
    4.15 +
    4.16 +http://www.libsdl.org/
    4.17 +
    4.18 +* \section intro_sec Introduction
    4.19 +
    4.20 +This is the Simple DirectMedia Layer, a general API that provides low
    4.21 +level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
    4.22 +and 2D framebuffer across multiple platforms.
    4.23 +
    4.24 +The current version supports Linux, Windows, Windows CE, BeOS, MacOS,
    4.25 +Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.
    4.26 +The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64,
    4.27 +RISC OS, SymbianOS, and OS/2, but these are not officially supported.
    4.28 +
    4.29 +SDL is written in C, but works with C++ natively, and has bindings to
    4.30 +several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
    4.31 +Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
    4.32 +Pike, Pliant, Python, Ruby, and Smalltalk.
    4.33 +
    4.34 +This library is distributed under GNU LGPL version 2, which can be
    4.35 +found in the file  "COPYING".  This license allows you to use SDL
    4.36 +freely in commercial programs as long as you link with the dynamic
    4.37 +library.
    4.38 +
    4.39 +The best way to learn how to use SDL is to check out the header files in
    4.40 +the "include" subdirectory and the programs in the "test" subdirectory.
    4.41 +The header files and test programs are well commented and always up to date.
    4.42 +More documentation is available in HTML format in "docs/index.html", and
    4.43 +a documentation wiki is available online at:
    4.44 +	http://www.libsdl.org/cgi/docwiki.cgi
    4.45 +
    4.46 +The test programs in the "test" subdirectory are in the public domain.
    4.47 +
    4.48 +Frequently asked questions are answered online:
    4.49 +	http://www.libsdl.org/faq.php
    4.50 +
    4.51 +If you need help with the library, or just want to discuss SDL related
    4.52 +issues, you can join the developers mailing list:
    4.53 +	http://www.libsdl.org/mailing-list.php
    4.54 +
    4.55 +Enjoy!
    4.56 +	Sam Lantinga				(slouken@libsdl.org)
    4.57 + */
    4.58  
    4.59  #ifndef _SDL_H
    4.60  #define _SDL_H
    4.61 @@ -40,11 +89,14 @@
    4.62  #include "SDL_timer.h"
    4.63  #include "SDL_video.h"
    4.64  #include "SDL_version.h"
    4.65 +#include "SDL_compat.h"
    4.66  
    4.67  #include "begin_code.h"
    4.68  /* Set up for C function definitions, even when using C++ */
    4.69  #ifdef __cplusplus
    4.70 +/* *INDENT-OFF* */
    4.71  extern "C" {
    4.72 +/* *INDENT-ON* */
    4.73  #endif
    4.74  
    4.75  /* As of version 0.5, SDL is loaded dynamically into the application */
    4.76 @@ -57,8 +109,8 @@
    4.77  #define SDL_INIT_VIDEO		0x00000020
    4.78  #define SDL_INIT_CDROM		0x00000100
    4.79  #define SDL_INIT_JOYSTICK	0x00000200
    4.80 -#define SDL_INIT_NOPARACHUTE	0x00100000	/* Don't catch fatal signals */
    4.81 -#define SDL_INIT_EVENTTHREAD	0x01000000	/* Not supported on all OS's */
    4.82 +#define SDL_INIT_NOPARACHUTE	0x00100000      /* Don't catch fatal signals */
    4.83 +#define SDL_INIT_EVENTTHREAD	0x01000000      /* Not supported on all OS's */
    4.84  #define SDL_INIT_EVERYTHING	0x0000FFFF
    4.85  
    4.86  /* This function loads the SDL dynamically linked library and initializes 
    4.87 @@ -66,29 +118,33 @@
    4.88   * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
    4.89   * signal handlers for some commonly ignored fatal signals (like SIGSEGV)
    4.90   */
    4.91 -extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
    4.92 +extern DECLSPEC int SDLCALL SDL_Init (Uint32 flags);
    4.93  
    4.94  /* This function initializes specific SDL subsystems */
    4.95 -extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);
    4.96 +extern DECLSPEC int SDLCALL SDL_InitSubSystem (Uint32 flags);
    4.97  
    4.98  /* This function cleans up specific SDL subsystems */
    4.99 -extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);
   4.100 +extern DECLSPEC void SDLCALL SDL_QuitSubSystem (Uint32 flags);
   4.101  
   4.102  /* This function returns mask of the specified subsystems which have
   4.103     been initialized.
   4.104     If 'flags' is 0, it returns a mask of all initialized subsystems.
   4.105  */
   4.106 -extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);
   4.107 +extern DECLSPEC Uint32 SDLCALL SDL_WasInit (Uint32 flags);
   4.108  
   4.109  /* This function cleans up all initialized subsystems and unloads the
   4.110   * dynamically linked library.  You should call it upon all exit conditions.
   4.111   */
   4.112 -extern DECLSPEC void SDLCALL SDL_Quit(void);
   4.113 +extern DECLSPEC void SDLCALL SDL_Quit (void);
   4.114  
   4.115  /* Ends C function definitions when using C++ */
   4.116  #ifdef __cplusplus
   4.117 +/* *INDENT-OFF* */
   4.118  }
   4.119 +/* *INDENT-ON* */
   4.120  #endif
   4.121  #include "close_code.h"
   4.122  
   4.123  #endif /* _SDL_H */
   4.124 +
   4.125 +/* vi: set ts=4 sw=4 expandtab: */
     5.1 --- a/include/SDL_active.h	Sun May 21 17:27:13 2006 +0000
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,58 +0,0 @@
     5.4 -/*
     5.5 -    SDL - Simple DirectMedia Layer
     5.6 -    Copyright (C) 1997-2006 Sam Lantinga
     5.7 -
     5.8 -    This library is free software; you can redistribute it and/or
     5.9 -    modify it under the terms of the GNU Lesser General Public
    5.10 -    License as published by the Free Software Foundation; either
    5.11 -    version 2.1 of the License, or (at your option) any later version.
    5.12 -
    5.13 -    This library is distributed in the hope that it will be useful,
    5.14 -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    5.15 -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    5.16 -    Lesser General Public License for more details.
    5.17 -
    5.18 -    You should have received a copy of the GNU Lesser General Public
    5.19 -    License along with this library; if not, write to the Free Software
    5.20 -    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    5.21 -
    5.22 -    Sam Lantinga
    5.23 -    slouken@libsdl.org
    5.24 -*/
    5.25 -
    5.26 -/* Include file for SDL application focus event handling */
    5.27 -
    5.28 -#ifndef _SDL_active_h
    5.29 -#define _SDL_active_h
    5.30 -
    5.31 -#include "SDL_stdinc.h"
    5.32 -#include "SDL_error.h"
    5.33 -
    5.34 -#include "begin_code.h"
    5.35 -/* Set up for C function definitions, even when using C++ */
    5.36 -#ifdef __cplusplus
    5.37 -extern "C" {
    5.38 -#endif
    5.39 -
    5.40 -/* The available application states */
    5.41 -#define SDL_APPMOUSEFOCUS	0x01		/* The app has mouse coverage */
    5.42 -#define SDL_APPINPUTFOCUS	0x02		/* The app has input focus */
    5.43 -#define SDL_APPACTIVE		0x04		/* The application is active */
    5.44 -
    5.45 -/* Function prototypes */
    5.46 -/* 
    5.47 - * This function returns the current state of the application, which is a
    5.48 - * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and
    5.49 - * SDL_APPACTIVE.  If SDL_APPACTIVE is set, then the user is able to
    5.50 - * see your application, otherwise it has been iconified or disabled.
    5.51 - */
    5.52 -extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
    5.53 -
    5.54 -
    5.55 -/* Ends C function definitions when using C++ */
    5.56 -#ifdef __cplusplus
    5.57 -}
    5.58 -#endif
    5.59 -#include "close_code.h"
    5.60 -
    5.61 -#endif /* _SDL_active_h */
     6.1 --- a/include/SDL_audio.h	Sun May 21 17:27:13 2006 +0000
     6.2 +++ b/include/SDL_audio.h	Sun May 28 13:04:16 2006 +0000
     6.3 @@ -20,7 +20,11 @@
     6.4      slouken@libsdl.org
     6.5  */
     6.6  
     6.7 -/* Access to the raw audio mixing buffer for the SDL library */
     6.8 +/**
     6.9 + * \file SDL_audio.h
    6.10 + *
    6.11 + * Access to the raw audio mixing buffer for the SDL library
    6.12 + */
    6.13  
    6.14  #ifndef _SDL_audio_h
    6.15  #define _SDL_audio_h
    6.16 @@ -35,35 +39,38 @@
    6.17  #include "begin_code.h"
    6.18  /* Set up for C function definitions, even when using C++ */
    6.19  #ifdef __cplusplus
    6.20 +/* *INDENT-OFF* */
    6.21  extern "C" {
    6.22 +/* *INDENT-ON* */
    6.23  #endif
    6.24  
    6.25  /* The calculated values in this structure are calculated by SDL_OpenAudio() */
    6.26 -typedef struct SDL_AudioSpec {
    6.27 -	int freq;		/* DSP frequency -- samples per second */
    6.28 -	Uint16 format;		/* Audio data format */
    6.29 -	Uint8  channels;	/* Number of channels: 1 mono, 2 stereo */
    6.30 -	Uint8  silence;		/* Audio buffer silence value (calculated) */
    6.31 -	Uint16 samples;		/* Audio buffer size in samples (power of 2) */
    6.32 -	Uint16 padding;		/* Necessary for some compile environments */
    6.33 -	Uint32 size;		/* Audio buffer size in bytes (calculated) */
    6.34 -	/* This function is called when the audio device needs more data.
    6.35 -	   'stream' is a pointer to the audio data buffer
    6.36 -	   'len' is the length of that buffer in bytes.
    6.37 -	   Once the callback returns, the buffer will no longer be valid.
    6.38 -	   Stereo samples are stored in a LRLRLR ordering.
    6.39 -	*/
    6.40 -	void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len);
    6.41 -	void  *userdata;
    6.42 +typedef struct SDL_AudioSpec
    6.43 +{
    6.44 +    int freq;                   /* DSP frequency -- samples per second */
    6.45 +    Uint16 format;              /* Audio data format */
    6.46 +    Uint8 channels;             /* Number of channels: 1 mono, 2 stereo */
    6.47 +    Uint8 silence;              /* Audio buffer silence value (calculated) */
    6.48 +    Uint16 samples;             /* Audio buffer size in samples (power of 2) */
    6.49 +    Uint16 padding;             /* Necessary for some compile environments */
    6.50 +    Uint32 size;                /* Audio buffer size in bytes (calculated) */
    6.51 +    /* This function is called when the audio device needs more data.
    6.52 +       'stream' is a pointer to the audio data buffer
    6.53 +       'len' is the length of that buffer in bytes.
    6.54 +       Once the callback returns, the buffer will no longer be valid.
    6.55 +       Stereo samples are stored in a LRLRLR ordering.
    6.56 +     */
    6.57 +    void (SDLCALL * callback) (void *userdata, Uint8 * stream, int len);
    6.58 +    void *userdata;
    6.59  } SDL_AudioSpec;
    6.60  
    6.61  /* Audio format flags (defaults to LSB byte order) */
    6.62 -#define AUDIO_U8	0x0008	/* Unsigned 8-bit samples */
    6.63 -#define AUDIO_S8	0x8008	/* Signed 8-bit samples */
    6.64 -#define AUDIO_U16LSB	0x0010	/* Unsigned 16-bit samples */
    6.65 -#define AUDIO_S16LSB	0x8010	/* Signed 16-bit samples */
    6.66 -#define AUDIO_U16MSB	0x1010	/* As above, but big-endian byte order */
    6.67 -#define AUDIO_S16MSB	0x9010	/* As above, but big-endian byte order */
    6.68 +#define AUDIO_U8	0x0008  /* Unsigned 8-bit samples */
    6.69 +#define AUDIO_S8	0x8008  /* Signed 8-bit samples */
    6.70 +#define AUDIO_U16LSB	0x0010  /* Unsigned 16-bit samples */
    6.71 +#define AUDIO_S16LSB	0x8010  /* Signed 16-bit samples */
    6.72 +#define AUDIO_U16MSB	0x1010  /* As above, but big-endian byte order */
    6.73 +#define AUDIO_S16MSB	0x9010  /* As above, but big-endian byte order */
    6.74  #define AUDIO_U16	AUDIO_U16LSB
    6.75  #define AUDIO_S16	AUDIO_S16LSB
    6.76  
    6.77 @@ -78,18 +85,19 @@
    6.78  
    6.79  
    6.80  /* A structure to hold a set of audio conversion filters and buffers */
    6.81 -typedef struct SDL_AudioCVT {
    6.82 -	int needed;			/* Set to 1 if conversion possible */
    6.83 -	Uint16 src_format;		/* Source audio format */
    6.84 -	Uint16 dst_format;		/* Target audio format */
    6.85 -	double rate_incr;		/* Rate conversion increment */
    6.86 -	Uint8 *buf;			/* Buffer to hold entire audio data */
    6.87 -	int    len;			/* Length of original audio buffer */
    6.88 -	int    len_cvt;			/* Length of converted audio buffer */
    6.89 -	int    len_mult;		/* buffer must be len*len_mult big */
    6.90 -	double len_ratio; 	/* Given len, final size is len*len_ratio */
    6.91 -	void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
    6.92 -	int filter_index;		/* Current audio conversion function */
    6.93 +typedef struct SDL_AudioCVT
    6.94 +{
    6.95 +    int needed;                 /* Set to 1 if conversion possible */
    6.96 +    Uint16 src_format;          /* Source audio format */
    6.97 +    Uint16 dst_format;          /* Target audio format */
    6.98 +    double rate_incr;           /* Rate conversion increment */
    6.99 +    Uint8 *buf;                 /* Buffer to hold entire audio data */
   6.100 +    int len;                    /* Length of original audio buffer */
   6.101 +    int len_cvt;                /* Length of converted audio buffer */
   6.102 +    int len_mult;               /* buffer must be len*len_mult big */
   6.103 +    double len_ratio;           /* Given len, final size is len*len_ratio */
   6.104 +    void (SDLCALL * filters[10]) (struct SDL_AudioCVT * cvt, Uint16 format);
   6.105 +    int filter_index;           /* Current audio conversion function */
   6.106  } SDL_AudioCVT;
   6.107  
   6.108  
   6.109 @@ -98,20 +106,20 @@
   6.110  /* These functions return the list of built in video drivers, in the 
   6.111   * order that they are normally initialized by default.
   6.112   */
   6.113 -extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers(void);
   6.114 -extern DECLSPEC const char * SDLCALL SDL_GetAudioDriver(int index);
   6.115 +extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers (void);
   6.116 +extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver (int index);
   6.117  
   6.118  /* These functions are used internally, and should not be used unless you
   6.119   * have a specific need to specify the audio driver you want to use.
   6.120   * You should normally use SDL_Init() or SDL_InitSubSystem().
   6.121   */
   6.122 -extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name);
   6.123 -extern DECLSPEC void SDLCALL SDL_AudioQuit(void);
   6.124 +extern DECLSPEC int SDLCALL SDL_AudioInit (const char *driver_name);
   6.125 +extern DECLSPEC void SDLCALL SDL_AudioQuit (void);
   6.126  
   6.127  /* This function returns the name of the current audio driver, or NULL
   6.128   * if no driver has been initialized.
   6.129   */
   6.130 -extern DECLSPEC const char * SDLCALL SDL_GetCurrentAudioDriver(void);
   6.131 +extern DECLSPEC const char *SDLCALL SDL_GetCurrentAudioDriver (void);
   6.132  
   6.133  /*
   6.134   * This function opens the audio device with the desired parameters, and
   6.135 @@ -154,17 +162,19 @@
   6.136   * may modify the requested size of the audio buffer, you should allocate
   6.137   * any local mixing buffers after you open the audio device.
   6.138   */
   6.139 -extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained);
   6.140 +extern DECLSPEC int SDLCALL SDL_OpenAudio (SDL_AudioSpec * desired,
   6.141 +                                           SDL_AudioSpec * obtained);
   6.142  
   6.143  /*
   6.144   * Get the current audio state:
   6.145   */
   6.146 -typedef enum {
   6.147 -	SDL_AUDIO_STOPPED = 0,
   6.148 -	SDL_AUDIO_PLAYING,
   6.149 -	SDL_AUDIO_PAUSED
   6.150 +typedef enum
   6.151 +{
   6.152 +    SDL_AUDIO_STOPPED = 0,
   6.153 +    SDL_AUDIO_PLAYING,
   6.154 +    SDL_AUDIO_PAUSED
   6.155  } SDL_audiostatus;
   6.156 -extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus(void);
   6.157 +extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus (void);
   6.158  
   6.159  /*
   6.160   * This function pauses and unpauses the audio callback processing.
   6.161 @@ -173,7 +183,7 @@
   6.162   * data for your callback function after opening the audio device.
   6.163   * Silence will be written to the audio device during the pause.
   6.164   */
   6.165 -extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on);
   6.166 +extern DECLSPEC void SDLCALL SDL_PauseAudio (int pause_on);
   6.167  
   6.168  /*
   6.169   * This function loads a WAVE from the data source, automatically freeing
   6.170 @@ -192,7 +202,11 @@
   6.171   * wave file cannot be opened, uses an unknown data format, or is 
   6.172   * corrupt.  Currently raw and MS-ADPCM WAVE files are supported.
   6.173   */
   6.174 -extern DECLSPEC SDL_AudioSpec * SDLCALL SDL_LoadWAV_RW(SDL_RWops *src, int freesrc, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);
   6.175 +extern DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW (SDL_RWops * src,
   6.176 +                                                       int freesrc,
   6.177 +                                                       SDL_AudioSpec * spec,
   6.178 +                                                       Uint8 ** audio_buf,
   6.179 +                                                       Uint32 * audio_len);
   6.180  
   6.181  /* Compatibility convenience function -- loads a WAV from a file */
   6.182  #define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
   6.183 @@ -201,7 +215,7 @@
   6.184  /*
   6.185   * This function frees data previously allocated with SDL_LoadWAV_RW()
   6.186   */
   6.187 -extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 *audio_buf);
   6.188 +extern DECLSPEC void SDLCALL SDL_FreeWAV (Uint8 * audio_buf);
   6.189  
   6.190  /*
   6.191   * This function takes a source format and rate and a destination format
   6.192 @@ -210,9 +224,13 @@
   6.193   * to the other.
   6.194   * This function returns 0, or -1 if there was an error.
   6.195   */
   6.196 -extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT *cvt,
   6.197 -		Uint16 src_format, Uint8 src_channels, int src_rate,
   6.198 -		Uint16 dst_format, Uint8 dst_channels, int dst_rate);
   6.199 +extern DECLSPEC int SDLCALL SDL_BuildAudioCVT (SDL_AudioCVT * cvt,
   6.200 +                                               Uint16 src_format,
   6.201 +                                               Uint8 src_channels,
   6.202 +                                               int src_rate,
   6.203 +                                               Uint16 dst_format,
   6.204 +                                               Uint8 dst_channels,
   6.205 +                                               int dst_rate);
   6.206  
   6.207  /* Once you have initialized the 'cvt' structure using SDL_BuildAudioCVT(),
   6.208   * created an audio buffer cvt->buf, and filled it with cvt->len bytes of
   6.209 @@ -222,7 +240,7 @@
   6.210   * cvt->buf should be allocated after the cvt structure is initialized by
   6.211   * SDL_BuildAudioCVT(), and should be cvt->len*cvt->len_mult bytes long.
   6.212   */
   6.213 -extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT *cvt);
   6.214 +extern DECLSPEC int SDLCALL SDL_ConvertAudio (SDL_AudioCVT * cvt);
   6.215  
   6.216  /*
   6.217   * This takes two audio buffers of the playing audio format and mixes
   6.218 @@ -232,7 +250,8 @@
   6.219   * This is provided for convenience -- you can mix your own audio data.
   6.220   */
   6.221  #define SDL_MIX_MAXVOLUME 128
   6.222 -extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 *dst, const Uint8 *src, Uint32 len, int volume);
   6.223 +extern DECLSPEC void SDLCALL SDL_MixAudio (Uint8 * dst, const Uint8 * src,
   6.224 +                                           Uint32 len, int volume);
   6.225  
   6.226  /*
   6.227   * The lock manipulated by these functions protects the callback function.
   6.228 @@ -240,19 +259,23 @@
   6.229   * callback function is not running.  Do not call these from the callback
   6.230   * function or you will cause deadlock.
   6.231   */
   6.232 -extern DECLSPEC void SDLCALL SDL_LockAudio(void);
   6.233 -extern DECLSPEC void SDLCALL SDL_UnlockAudio(void);
   6.234 +extern DECLSPEC void SDLCALL SDL_LockAudio (void);
   6.235 +extern DECLSPEC void SDLCALL SDL_UnlockAudio (void);
   6.236  
   6.237  /*
   6.238   * This function shuts down audio processing and closes the audio device.
   6.239   */
   6.240 -extern DECLSPEC void SDLCALL SDL_CloseAudio(void);
   6.241 +extern DECLSPEC void SDLCALL SDL_CloseAudio (void);
   6.242  
   6.243  
   6.244  /* Ends C function definitions when using C++ */
   6.245  #ifdef __cplusplus
   6.246 +/* *INDENT-OFF* */
   6.247  }
   6.248 +/* *INDENT-ON* */
   6.249  #endif
   6.250  #include "close_code.h"
   6.251  
   6.252  #endif /* _SDL_audio_h */
   6.253 +
   6.254 +/* vi: set ts=4 sw=4 expandtab: */
     7.1 --- a/include/SDL_byteorder.h	Sun May 21 17:27:13 2006 +0000
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,24 +0,0 @@
     7.4 -/*
     7.5 -    SDL - Simple DirectMedia Layer
     7.6 -    Copyright (C) 1997-2006 Sam Lantinga
     7.7 -
     7.8 -    This library is free software; you can redistribute it and/or
     7.9 -    modify it under the terms of the GNU Lesser General Public
    7.10 -    License as published by the Free Software Foundation; either
    7.11 -    version 2.1 of the License, or (at your option) any later version.
    7.12 -
    7.13 -    This library is distributed in the hope that it will be useful,
    7.14 -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    7.15 -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    7.16 -    Lesser General Public License for more details.
    7.17 -
    7.18 -    You should have received a copy of the GNU Lesser General Public
    7.19 -    License along with this library; if not, write to the Free Software
    7.20 -    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    7.21 -
    7.22 -    Sam Lantinga
    7.23 -    slouken@libsdl.org
    7.24 -*/
    7.25 -
    7.26 -/* DEPRECATED */
    7.27 -#include "SDL_endian.h"
     8.1 --- a/include/SDL_cdrom.h	Sun May 21 17:27:13 2006 +0000
     8.2 +++ b/include/SDL_cdrom.h	Sun May 28 13:04:16 2006 +0000
     8.3 @@ -20,7 +20,11 @@
     8.4      slouken@libsdl.org
     8.5  */
     8.6  
     8.7 -/* This is the CD-audio control API for Simple DirectMedia Layer */
     8.8 +/**
     8.9 + * \file SDL_cdrom.h
    8.10 + *
    8.11 + * This is the CD-audio control API for Simple DirectMedia Layer
    8.12 + */
    8.13  
    8.14  #ifndef _SDL_cdrom_h
    8.15  #define _SDL_cdrom_h
    8.16 @@ -31,7 +35,9 @@
    8.17  #include "begin_code.h"
    8.18  /* Set up for C function definitions, even when using C++ */
    8.19  #ifdef __cplusplus
    8.20 +/* *INDENT-OFF* */
    8.21  extern "C" {
    8.22 +/* *INDENT-ON* */
    8.23  #endif
    8.24  
    8.25  /* In order to use these functions, SDL_Init() must have been called
    8.26 @@ -47,35 +53,38 @@
    8.27  #define SDL_DATA_TRACK	0x04
    8.28  
    8.29  /* The possible states which a CD-ROM drive can be in. */
    8.30 -typedef enum {
    8.31 -	CD_TRAYEMPTY,
    8.32 -	CD_STOPPED,
    8.33 -	CD_PLAYING,
    8.34 -	CD_PAUSED,
    8.35 -	CD_ERROR = -1
    8.36 +typedef enum
    8.37 +{
    8.38 +    CD_TRAYEMPTY,
    8.39 +    CD_STOPPED,
    8.40 +    CD_PLAYING,
    8.41 +    CD_PAUSED,
    8.42 +    CD_ERROR = -1
    8.43  } CDstatus;
    8.44  
    8.45  /* Given a status, returns true if there's a disk in the drive */
    8.46  #define CD_INDRIVE(status)	((int)(status) > 0)
    8.47  
    8.48 -typedef struct SDL_CDtrack {
    8.49 -	Uint8 id;		/* Track number */
    8.50 -	Uint8 type;		/* Data or audio track */
    8.51 -	Uint16 unused;
    8.52 -	Uint32 length;		/* Length, in frames, of this track */
    8.53 -	Uint32 offset;		/* Offset, in frames, from start of disk */
    8.54 +typedef struct SDL_CDtrack
    8.55 +{
    8.56 +    Uint8 id;                   /* Track number */
    8.57 +    Uint8 type;                 /* Data or audio track */
    8.58 +    Uint16 unused;
    8.59 +    Uint32 length;              /* Length, in frames, of this track */
    8.60 +    Uint32 offset;              /* Offset, in frames, from start of disk */
    8.61  } SDL_CDtrack;
    8.62  
    8.63  /* This structure is only current as of the last call to SDL_CDStatus() */
    8.64 -typedef struct SDL_CD {
    8.65 -	int id;			/* Private drive identifier */
    8.66 -	CDstatus status;	/* Current drive status */
    8.67 +typedef struct SDL_CD
    8.68 +{
    8.69 +    int id;                     /* Private drive identifier */
    8.70 +    CDstatus status;            /* Current drive status */
    8.71  
    8.72 -	/* The rest of this structure is only valid if there's a CD in drive */
    8.73 -	int numtracks;		/* Number of tracks on disk */
    8.74 -	int cur_track;		/* Current track position */
    8.75 -	int cur_frame;		/* Current frame offset within current track */
    8.76 -	SDL_CDtrack track[SDL_MAX_TRACKS+1];
    8.77 +    /* The rest of this structure is only valid if there's a CD in drive */
    8.78 +    int numtracks;              /* Number of tracks on disk */
    8.79 +    int cur_track;              /* Current track position */
    8.80 +    int cur_frame;              /* Current frame offset within current track */
    8.81 +    SDL_CDtrack track[SDL_MAX_TRACKS + 1];
    8.82  } SDL_CD;
    8.83  
    8.84  /* Conversion functions from frames to Minute/Second/Frames and vice versa */
    8.85 @@ -95,7 +104,7 @@
    8.86  /* Returns the number of CD-ROM drives on the system, or -1 if
    8.87     SDL_Init() has not been called with the SDL_INIT_CDROM flag.
    8.88   */
    8.89 -extern DECLSPEC int SDLCALL SDL_CDNumDrives(void);
    8.90 +extern DECLSPEC int SDLCALL SDL_CDNumDrives (void);
    8.91  
    8.92  /* Returns a human-readable, system-dependent identifier for the CD-ROM.
    8.93     Example:
    8.94 @@ -103,7 +112,7 @@
    8.95  	"E:"
    8.96  	"/dev/disk/ide/1/master"
    8.97  */
    8.98 -extern DECLSPEC const char * SDLCALL SDL_CDName(int drive);
    8.99 +extern DECLSPEC const char *SDLCALL SDL_CDName (int drive);
   8.100  
   8.101  /* Opens a CD-ROM drive for access.  It returns a drive handle on success,
   8.102     or NULL if the drive was invalid or busy.  This newly opened CD-ROM
   8.103 @@ -111,13 +120,13 @@
   8.104     CD-ROM handle.
   8.105     Drives are numbered starting with 0.  Drive 0 is the system default CD-ROM.
   8.106  */
   8.107 -extern DECLSPEC SDL_CD * SDLCALL SDL_CDOpen(int drive);
   8.108 +extern DECLSPEC SDL_CD *SDLCALL SDL_CDOpen (int drive);
   8.109  
   8.110  /* This function returns the current status of the given drive.
   8.111     If the drive has a CD in it, the table of contents of the CD and current
   8.112     play position of the CD will be stored in the SDL_CD structure.
   8.113  */
   8.114 -extern DECLSPEC CDstatus SDLCALL SDL_CDStatus(SDL_CD *cdrom);
   8.115 +extern DECLSPEC CDstatus SDLCALL SDL_CDStatus (SDL_CD * cdrom);
   8.116  
   8.117  /* Play the given CD starting at 'start_track' and 'start_frame' for 'ntracks'
   8.118     tracks and 'nframes' frames.  If both 'ntrack' and 'nframe' are 0, play 
   8.119 @@ -138,34 +147,41 @@
   8.120  
   8.121     This function returns 0, or -1 if there was an error.
   8.122  */
   8.123 -extern DECLSPEC int SDLCALL SDL_CDPlayTracks(SDL_CD *cdrom,
   8.124 -		int start_track, int start_frame, int ntracks, int nframes);
   8.125 +extern DECLSPEC int SDLCALL SDL_CDPlayTracks (SDL_CD * cdrom,
   8.126 +                                              int start_track,
   8.127 +                                              int start_frame, int ntracks,
   8.128 +                                              int nframes);
   8.129  
   8.130  /* Play the given CD starting at 'start' frame for 'length' frames.
   8.131     It returns 0, or -1 if there was an error.
   8.132  */
   8.133 -extern DECLSPEC int SDLCALL SDL_CDPlay(SDL_CD *cdrom, int start, int length);
   8.134 +extern DECLSPEC int SDLCALL SDL_CDPlay (SDL_CD * cdrom, int start,
   8.135 +                                        int length);
   8.136  
   8.137  /* Pause play -- returns 0, or -1 on error */
   8.138 -extern DECLSPEC int SDLCALL SDL_CDPause(SDL_CD *cdrom);
   8.139 +extern DECLSPEC int SDLCALL SDL_CDPause (SDL_CD * cdrom);
   8.140  
   8.141  /* Resume play -- returns 0, or -1 on error */
   8.142 -extern DECLSPEC int SDLCALL SDL_CDResume(SDL_CD *cdrom);
   8.143 +extern DECLSPEC int SDLCALL SDL_CDResume (SDL_CD * cdrom);
   8.144  
   8.145  /* Stop play -- returns 0, or -1 on error */
   8.146 -extern DECLSPEC int SDLCALL SDL_CDStop(SDL_CD *cdrom);
   8.147 +extern DECLSPEC int SDLCALL SDL_CDStop (SDL_CD * cdrom);
   8.148  
   8.149  /* Eject CD-ROM -- returns 0, or -1 on error */
   8.150 -extern DECLSPEC int SDLCALL SDL_CDEject(SDL_CD *cdrom);
   8.151 +extern DECLSPEC int SDLCALL SDL_CDEject (SDL_CD * cdrom);
   8.152  
   8.153  /* Closes the handle for the CD-ROM drive */
   8.154 -extern DECLSPEC void SDLCALL SDL_CDClose(SDL_CD *cdrom);
   8.155 +extern DECLSPEC void SDLCALL SDL_CDClose (SDL_CD * cdrom);
   8.156  
   8.157  
   8.158  /* Ends C function definitions when using C++ */
   8.159  #ifdef __cplusplus
   8.160 +/* *INDENT-OFF* */
   8.161  }
   8.162 +/* *INDENT-ON* */
   8.163  #endif
   8.164  #include "close_code.h"
   8.165  
   8.166  #endif /* _SDL_video_h */
   8.167 +
   8.168 +/* vi: set ts=4 sw=4 expandtab: */
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/include/SDL_compat.h	Sun May 28 13:04:16 2006 +0000
     9.3 @@ -0,0 +1,126 @@
     9.4 +/*
     9.5 +    SDL - Simple DirectMedia Layer
     9.6 +    Copyright (C) 1997-2006 Sam Lantinga
     9.7 +
     9.8 +    This library is free software; you can redistribute it and/or
     9.9 +    modify it under the terms of the GNU Lesser General Public
    9.10 +    License as published by the Free Software Foundation; either
    9.11 +    version 2.1 of the License, or (at your option) any later version.
    9.12 +
    9.13 +    This library is distributed in the hope that it will be useful,
    9.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    9.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    9.16 +    Lesser General Public License for more details.
    9.17 +
    9.18 +    You should have received a copy of the GNU Lesser General Public
    9.19 +    License along with this library; if not, write to the Free Software
    9.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    9.21 +
    9.22 +    Sam Lantinga
    9.23 +    slouken@libsdl.org
    9.24 +*/
    9.25 +
    9.26 +/* This file contains functions for backwards compatibility with SDL 1.2 */
    9.27 +
    9.28 +#ifndef _SDL_compat_h
    9.29 +#define _SDL_compat_h
    9.30 +
    9.31 +#include "SDL_syswm.h"
    9.32 +
    9.33 +#include "begin_code.h"
    9.34 +/* Set up for C function definitions, even when using C++ */
    9.35 +#ifdef __cplusplus
    9.36 +extern "C"
    9.37 +{
    9.38 +#endif
    9.39 +
    9.40 +    extern DECLSPEC char *SDLCALL SDL_AudioDriverName (char *namebuf,
    9.41 +                                                       int maxlen);
    9.42 +    extern DECLSPEC char *SDLCALL SDL_VideoDriverName (char *namebuf,
    9.43 +                                                       int maxlen);
    9.44 +    extern DECLSPEC int SDLCALL SDL_VideoModeOK (int width, int height,
    9.45 +                                                 int bpp, Uint32 flags);
    9.46 +    extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes (SDL_PixelFormat *
    9.47 +                                                      format, Uint32 flags);
    9.48 +    extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode (int width,
    9.49 +                                                           int height,
    9.50 +                                                           int bpp,
    9.51 +                                                           Uint32 flags);
    9.52 +
    9.53 +/* Ends C function definitions when using C++ */
    9.54 +#ifdef __cplusplus
    9.55 +}
    9.56 +#endif
    9.57 +#include "close_code.h"
    9.58 +
    9.59 +#endif                          /* _SDL_compat_h */
    9.60 +
    9.61 +extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface (void);
    9.62 +
    9.63 +/* These are the currently supported flags for the SDL_surface */
    9.64 +/* Available for SDL_CreateRGBSurface() or SDL_SetVideoMode() */
    9.65 +#define SDL_SWSURFACE	0x00000000      /* Surface is in system memory */
    9.66 +#define SDL_HWSURFACE	0x00000001      /* Surface is in video memory */
    9.67 +#define SDL_ASYNCBLIT	0x00000004      /* Use asynchronous blits if possible */
    9.68 +/* Available for SDL_SetVideoMode() */
    9.69 +#define SDL_ANYFORMAT	0x10000000      /* Allow any video depth/pixel-format */
    9.70 +#define SDL_HWPALETTE	0x20000000      /* Surface has exclusive palette */
    9.71 +#define SDL_DOUBLEBUF	0x40000000      /* Set up double-buffered video mode */
    9.72 +#define SDL_FULLSCREEN	0x80000000      /* Surface is a full screen display */
    9.73 +#define SDL_OPENGL      0x00000002      /* Create an OpenGL rendering context */
    9.74 +#define SDL_INTERNALOPENGL 0x00000008   /* SDL uses OpenGL internally for this window */
    9.75 +#define SDL_RESIZABLE	0x00000010      /* This video mode may be resized */
    9.76 +#define SDL_NOFRAME	0x00000020      /* No window caption or edge frame */
    9.77 +/* Used internally (read-only) */
    9.78 +#define SDL_HWACCEL	0x00000100      /* Blit uses hardware acceleration */
    9.79 +#define SDL_SRCCOLORKEY	0x00001000      /* Blit uses a source color key */
    9.80 +#define SDL_RLEACCELOK	0x00002000      /* Private flag */
    9.81 +#define SDL_RLEACCEL	0x00004000      /* Surface is RLE encoded */
    9.82 +#define SDL_SRCALPHA	0x00010000      /* Blit uses source alpha blending */
    9.83 +
    9.84 +extern DECLSPEC void SDLCALL SDL_WM_SetCaption (const char *title,
    9.85 +                                                const char *icon);
    9.86 +extern DECLSPEC void SDLCALL SDL_WM_GetCaption (char **title, char **icon);
    9.87 +extern DECLSPEC void SDLCALL SDL_WM_SetIcon (SDL_Surface * icon,
    9.88 +                                             Uint8 * mask);
    9.89 +extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow (void);
    9.90 +extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen (SDL_Surface * surface);
    9.91 +typedef enum
    9.92 +{
    9.93 +    SDL_GRAB_QUERY = -1,
    9.94 +    SDL_GRAB_OFF = 0,
    9.95 +    SDL_GRAB_ON = 1
    9.96 +} SDL_GrabMode;
    9.97 +extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput (SDL_GrabMode mode);
    9.98 +
    9.99 +/* The available application states */
   9.100 +#define SDL_APPMOUSEFOCUS	0x01    /* The app has mouse coverage */
   9.101 +#define SDL_APPINPUTFOCUS	0x02    /* The app has input focus */
   9.102 +#define SDL_APPACTIVE		0x04    /* The application is active */
   9.103 +
   9.104 +extern DECLSPEC Uint8 SDLCALL SDL_GetAppState (void);
   9.105 +extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version (void);
   9.106 +/* flags for SDL_SetPalette() */
   9.107 +#define SDL_LOGPAL 0x01
   9.108 +#define SDL_PHYSPAL 0x02
   9.109 +
   9.110 +/*
   9.111 + * Sets a portion of the colormap for a given 8-bit surface.
   9.112 + * 'flags' is one or both of:
   9.113 + * SDL_LOGPAL  -- set logical palette, which controls how blits are mapped
   9.114 + *                to/from the surface,
   9.115 + * SDL_PHYSPAL -- set physical palette, which controls how pixels look on
   9.116 + *                the screen
   9.117 + * Only screens have physical palettes. Separate change of physical/logical
   9.118 + * palettes is only possible if the screen has SDL_HWPALETTE set.
   9.119 + *
   9.120 + * The return value is 1 if all colours could be set as requested, and 0
   9.121 + * otherwise.
   9.122 + *
   9.123 + * SDL_SetColors() is equivalent to calling this function with
   9.124 + *     flags = (SDL_LOGPAL|SDL_PHYSPAL).
   9.125 + */
   9.126 +extern DECLSPEC int SDLCALL SDL_SetPalette (SDL_Surface * surface, int flags,
   9.127 +                                            SDL_Color * colors,
   9.128 +                                            int firstcolor, int ncolors);
   9.129 +extern DECLSPEC int SDLCALL SDL_GetWMInfo (SDL_SysWMinfo * info);
    10.1 --- a/include/SDL_config_macos.h	Sun May 21 17:27:13 2006 +0000
    10.2 +++ b/include/SDL_config_macos.h	Sun May 28 13:04:16 2006 +0000
    10.3 @@ -29,15 +29,15 @@
    10.4  
    10.5  #include <MacTypes.h>
    10.6  
    10.7 -typedef SInt8	int8_t;
    10.8 -typedef UInt8	uint8_t;
    10.9 -typedef SInt16	int16_t;
   10.10 -typedef UInt16	uint16_t;
   10.11 -typedef SInt32	int32_t;
   10.12 -typedef UInt32	uint32_t;
   10.13 -typedef SInt64	int64_t;
   10.14 -typedef UInt64	uint64_t;
   10.15 -typedef unsigned long	uintptr_t;
   10.16 +typedef SInt8 int8_t;
   10.17 +typedef UInt8 uint8_t;
   10.18 +typedef SInt16 int16_t;
   10.19 +typedef UInt16 uint16_t;
   10.20 +typedef SInt32 int32_t;
   10.21 +typedef UInt32 uint32_t;
   10.22 +typedef SInt64 int64_t;
   10.23 +typedef UInt64 uint64_t;
   10.24 +typedef unsigned long uintptr_t;
   10.25  
   10.26  #define SDL_HAS_64BIT_TYPE	1
   10.27  
    11.1 --- a/include/SDL_config_os2.h	Sun May 21 17:27:13 2006 +0000
    11.2 +++ b/include/SDL_config_os2.h	Sun May 28 13:04:16 2006 +0000
    11.3 @@ -27,16 +27,16 @@
    11.4  
    11.5  /* This is a set of defines to configure the SDL features */
    11.6  
    11.7 -typedef signed char         int8_t;
    11.8 -typedef unsigned char       uint8_t;
    11.9 -typedef signed short        int16_t;
   11.10 -typedef unsigned short      uint16_t;
   11.11 -typedef signed int          int32_t;
   11.12 -typedef unsigned int        uint32_t;
   11.13 -typedef unsigned int        size_t;
   11.14 -typedef unsigned long       uintptr_t;
   11.15 -typedef signed long long    int64_t;
   11.16 -typedef unsigned long long  uint64_t;
   11.17 +typedef signed char int8_t;
   11.18 +typedef unsigned char uint8_t;
   11.19 +typedef signed short int16_t;
   11.20 +typedef unsigned short uint16_t;
   11.21 +typedef signed int int32_t;
   11.22 +typedef unsigned int uint32_t;
   11.23 +typedef unsigned int size_t;
   11.24 +typedef unsigned long uintptr_t;
   11.25 +typedef signed long long int64_t;
   11.26 +typedef unsigned long long uint64_t;
   11.27  
   11.28  #define SDL_HAS_64BIT_TYPE	1
   11.29  
    12.1 --- a/include/SDL_config_win32.h	Sun May 21 17:27:13 2006 +0000
    12.2 +++ b/include/SDL_config_win32.h	Sun May 28 13:04:16 2006 +0000
    12.3 @@ -28,19 +28,19 @@
    12.4  /* This is a set of defines to configure the SDL features */
    12.5  
    12.6  #ifdef _MSC_VER
    12.7 -typedef signed __int8		int8_t;
    12.8 -typedef unsigned __int8		uint8_t;
    12.9 -typedef signed __int16		int16_t;
   12.10 -typedef unsigned __int16	uint16_t;
   12.11 -typedef signed __int32		int32_t;
   12.12 -typedef unsigned __int32	uint32_t;
   12.13 -typedef signed __int64		int64_t;
   12.14 -typedef unsigned __int64	uint64_t;
   12.15 +typedef signed __int8 int8_t;
   12.16 +typedef unsigned __int8 uint8_t;
   12.17 +typedef signed __int16 int16_t;
   12.18 +typedef unsigned __int16 uint16_t;
   12.19 +typedef signed __int32 int32_t;
   12.20 +typedef unsigned __int32 uint32_t;
   12.21 +typedef signed __int64 int64_t;
   12.22 +typedef unsigned __int64 uint64_t;
   12.23  #ifndef _UINTPTR_T_DEFINED
   12.24  #ifdef  _WIN64
   12.25 -typedef unsigned __int64    uintptr_t;
   12.26 +typedef unsigned __int64 uintptr_t;
   12.27  #else
   12.28 -typedef unsigned int   uintptr_t;
   12.29 +typedef unsigned int uintptr_t;
   12.30  #endif
   12.31  #define _UINTPTR_T_DEFINED
   12.32  #endif
    13.1 --- a/include/SDL_copying.h	Sun May 21 17:27:13 2006 +0000
    13.2 +++ b/include/SDL_copying.h	Sun May 28 13:04:16 2006 +0000
    13.3 @@ -19,4 +19,3 @@
    13.4      Sam Lantinga
    13.5      slouken@libsdl.org
    13.6  */
    13.7 -
    14.1 --- a/include/SDL_cpuinfo.h	Sun May 21 17:27:13 2006 +0000
    14.2 +++ b/include/SDL_cpuinfo.h	Sun May 28 13:04:16 2006 +0000
    14.3 @@ -20,8 +20,11 @@
    14.4      slouken@libsdl.org
    14.5  */
    14.6  
    14.7 -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    14.8 -/* CPU feature detection for SDL                                       */
    14.9 +/**
   14.10 + * \file SDL_cpuinfo.h
   14.11 + *
   14.12 + * CPU feature detection for SDL
   14.13 + */
   14.14  
   14.15  #ifndef _SDL_cpuinfo_h
   14.16  #define _SDL_cpuinfo_h
   14.17 @@ -31,45 +34,51 @@
   14.18  #include "begin_code.h"
   14.19  /* Set up for C function definitions, even when using C++ */
   14.20  #ifdef __cplusplus
   14.21 +/* *INDENT-OFF* */
   14.22  extern "C" {
   14.23 +/* *INDENT-ON* */
   14.24  #endif
   14.25  
   14.26  /* This function returns true if the CPU has the RDTSC instruction
   14.27   */
   14.28 -extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
   14.29 +extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC (void);
   14.30  
   14.31  /* This function returns true if the CPU has MMX features
   14.32   */
   14.33 -extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void);
   14.34 +extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX (void);
   14.35  
   14.36  /* This function returns true if the CPU has MMX Ext. features
   14.37   */
   14.38 -extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void);
   14.39 +extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt (void);
   14.40  
   14.41  /* This function returns true if the CPU has 3DNow features
   14.42   */
   14.43 -extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void);
   14.44 +extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow (void);
   14.45  
   14.46  /* This function returns true if the CPU has 3DNow! Ext. features
   14.47   */
   14.48 -extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void);
   14.49 +extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt (void);
   14.50  
   14.51  /* This function returns true if the CPU has SSE features
   14.52   */
   14.53 -extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void);
   14.54 +extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE (void);
   14.55  
   14.56  /* This function returns true if the CPU has SSE2 features
   14.57   */
   14.58 -extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);
   14.59 +extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2 (void);
   14.60  
   14.61  /* This function returns true if the CPU has AltiVec features
   14.62   */
   14.63 -extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
   14.64 +extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec (void);
   14.65  
   14.66  /* Ends C function definitions when using C++ */
   14.67  #ifdef __cplusplus
   14.68 +/* *INDENT-OFF* */
   14.69  }
   14.70 +/* *INDENT-ON* */
   14.71  #endif
   14.72  #include "close_code.h"
   14.73  
   14.74  #endif /* _SDL_cpuinfo_h */
   14.75 +
   14.76 +/* vi: set ts=4 sw=4 expandtab: */
    15.1 --- a/include/SDL_endian.h	Sun May 21 17:27:13 2006 +0000
    15.2 +++ b/include/SDL_endian.h	Sun May 28 13:04:16 2006 +0000
    15.3 @@ -20,7 +20,11 @@
    15.4      slouken@libsdl.org
    15.5  */
    15.6  
    15.7 -/* Functions for reading and writing endian-specific values */
    15.8 +/**
    15.9 + * \file SDL_endian.h
   15.10 + *
   15.11 + * Functions for reading and writing endian-specific values
   15.12 + */
   15.13  
   15.14  #ifndef _SDL_endian_h
   15.15  #define _SDL_endian_h
   15.16 @@ -31,7 +35,7 @@
   15.17  #define SDL_LIL_ENDIAN	1234
   15.18  #define SDL_BIG_ENDIAN	4321
   15.19  
   15.20 -#ifndef SDL_BYTEORDER	/* Not defined in SDL_config.h? */
   15.21 +#ifndef SDL_BYTEORDER           /* Not defined in SDL_config.h? */
   15.22  #if defined(__hppa__) || \
   15.23      defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
   15.24      (defined(__MIPS__) && defined(__MISPEB__)) || \
   15.25 @@ -47,7 +51,9 @@
   15.26  #include "begin_code.h"
   15.27  /* Set up for C function definitions, even when using C++ */
   15.28  #ifdef __cplusplus
   15.29 +/* *INDENT-OFF* */
   15.30  extern "C" {
   15.31 +/* *INDENT-ON* */
   15.32  #endif
   15.33  
   15.34  /* Use inline functions for compilers that support them, and static
   15.35 @@ -57,104 +63,125 @@
   15.36  */
   15.37  #if defined(__GNUC__) && defined(__i386__) && \
   15.38     !(__GNUC__ == 2 && __GNUC_MINOR__ == 95 /* broken gcc version */)
   15.39 -static __inline__ Uint16 SDL_Swap16(Uint16 x)
   15.40 +static __inline__ Uint16
   15.41 +SDL_Swap16 (Uint16 x)
   15.42  {
   15.43 -	__asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));
   15.44 -	return x;
   15.45 +  __asm__ ("xchgb %b0,%h0": "=q" (x):"0" (x));
   15.46 +    return x;
   15.47  }
   15.48  #elif defined(__GNUC__) && defined(__x86_64__)
   15.49 -static __inline__ Uint16 SDL_Swap16(Uint16 x)
   15.50 +static __inline__ Uint16
   15.51 +SDL_Swap16 (Uint16 x)
   15.52  {
   15.53 -	__asm__("xchgb %b0,%h0" : "=Q" (x) :  "0" (x));
   15.54 -	return x;
   15.55 +  __asm__ ("xchgb %b0,%h0": "=Q" (x):"0" (x));
   15.56 +    return x;
   15.57  }
   15.58  #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
   15.59 -static __inline__ Uint16 SDL_Swap16(Uint16 x)
   15.60 +static __inline__ Uint16
   15.61 +SDL_Swap16 (Uint16 x)
   15.62  {
   15.63 -	Uint16 result;
   15.64 +    Uint16 result;
   15.65  
   15.66 -	__asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x));
   15.67 -	return result;
   15.68 +  __asm__ ("rlwimi %0,%2,8,16,23": "=&r" (result):"0" (x >> 8), "r" (x));
   15.69 +    return result;
   15.70  }
   15.71  #elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__))
   15.72 -static __inline__ Uint16 SDL_Swap16(Uint16 x)
   15.73 +static __inline__ Uint16
   15.74 +SDL_Swap16 (Uint16 x)
   15.75  {
   15.76 -	__asm__("rorw #8,%0" : "=d" (x) :  "0" (x) : "cc");
   15.77 -	return x;
   15.78 +  __asm__ ("rorw #8,%0": "=d" (x): "0" (x):"cc");
   15.79 +    return x;
   15.80  }
   15.81  #else
   15.82 -static __inline__ Uint16 SDL_Swap16(Uint16 x) {
   15.83 -	return((x<<8)|(x>>8));
   15.84 +static __inline__ Uint16
   15.85 +SDL_Swap16 (Uint16 x)
   15.86 +{
   15.87 +    return ((x << 8) | (x >> 8));
   15.88  }
   15.89  #endif
   15.90  
   15.91  #if defined(__GNUC__) && defined(__i386__)
   15.92 -static __inline__ Uint32 SDL_Swap32(Uint32 x)
   15.93 +static __inline__ Uint32
   15.94 +SDL_Swap32 (Uint32 x)
   15.95  {
   15.96 -	__asm__("bswap %0" : "=r" (x) : "0" (x));
   15.97 -	return x;
   15.98 +  __asm__ ("bswap %0": "=r" (x):"0" (x));
   15.99 +    return x;
  15.100  }
  15.101  #elif defined(__GNUC__) && defined(__x86_64__)
  15.102 -static __inline__ Uint32 SDL_Swap32(Uint32 x)
  15.103 +static __inline__ Uint32
  15.104 +SDL_Swap32 (Uint32 x)
  15.105  {
  15.106 -	__asm__("bswapl %0" : "=r" (x) : "0" (x));
  15.107 -	return x;
  15.108 +  __asm__ ("bswapl %0": "=r" (x):"0" (x));
  15.109 +    return x;
  15.110  }
  15.111  #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
  15.112 -static __inline__ Uint32 SDL_Swap32(Uint32 x)
  15.113 +static __inline__ Uint32
  15.114 +SDL_Swap32 (Uint32 x)
  15.115  {
  15.116 -	Uint32 result;
  15.117 +    Uint32 result;
  15.118  
  15.119 -	__asm__("rlwimi %0,%2,24,16,23" : "=&r" (result) : "0" (x>>24), "r" (x));
  15.120 -	__asm__("rlwimi %0,%2,8,8,15"   : "=&r" (result) : "0" (result),    "r" (x));
  15.121 -	__asm__("rlwimi %0,%2,24,0,7"   : "=&r" (result) : "0" (result),    "r" (x));
  15.122 -	return result;
  15.123 +  __asm__ ("rlwimi %0,%2,24,16,23": "=&r" (result):"0" (x >> 24),
  15.124 +             "r" (x));
  15.125 +  __asm__ ("rlwimi %0,%2,8,8,15": "=&r" (result):"0" (result), "r" (x));
  15.126 +  __asm__ ("rlwimi %0,%2,24,0,7": "=&r" (result):"0" (result), "r" (x));
  15.127 +    return result;
  15.128  }
  15.129  #elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__))
  15.130 -static __inline__ Uint32 SDL_Swap32(Uint32 x)
  15.131 +static __inline__ Uint32
  15.132 +SDL_Swap32 (Uint32 x)
  15.133  {
  15.134 -	__asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0" : "=d" (x) :  "0" (x) : "cc");
  15.135 -	return x;
  15.136 +  __asm__ ("rorw #8,%0\n\tswap %0\n\trorw #8,%0": "=d" (x): "0" (x):"cc");
  15.137 +    return x;
  15.138  }
  15.139  #else
  15.140 -static __inline__ Uint32 SDL_Swap32(Uint32 x) {
  15.141 -	return((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24));
  15.142 +static __inline__ Uint32
  15.143 +SDL_Swap32 (Uint32 x)
  15.144 +{
  15.145 +    return ((x << 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) |
  15.146 +            (x >> 24));
  15.147  }
  15.148  #endif
  15.149  
  15.150  #ifdef SDL_HAS_64BIT_TYPE
  15.151  #if defined(__GNUC__) && defined(__i386__)
  15.152 -static __inline__ Uint64 SDL_Swap64(Uint64 x)
  15.153 +static __inline__ Uint64
  15.154 +SDL_Swap64 (Uint64 x)
  15.155  {
  15.156 -	union { 
  15.157 -		struct { Uint32 a,b; } s;
  15.158 -		Uint64 u;
  15.159 -	} v;
  15.160 -	v.u = x;
  15.161 -	__asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" 
  15.162 -	        : "=r" (v.s.a), "=r" (v.s.b) 
  15.163 -	        : "0" (v.s.a), "1" (v.s.b)); 
  15.164 -	return v.u;
  15.165 +    union
  15.166 +    {
  15.167 +        struct
  15.168 +        {
  15.169 +            Uint32 a, b;
  15.170 +        } s;
  15.171 +        Uint64 u;
  15.172 +    } v;
  15.173 +    v.u = x;
  15.174 +  __asm__ ("bswapl %0 ; bswapl %1 ; xchgl %0,%1": "=r" (v.s.a), "=r" (v.s.b):"0" (v.s.a),
  15.175 +             "1" (v.s.
  15.176 +                  b));
  15.177 +    return v.u;
  15.178  }
  15.179  #elif defined(__GNUC__) && defined(__x86_64__)
  15.180 -static __inline__ Uint64 SDL_Swap64(Uint64 x)
  15.181 +static __inline__ Uint64
  15.182 +SDL_Swap64 (Uint64 x)
  15.183  {
  15.184 -	__asm__("bswapq %0" : "=r" (x) : "0" (x));
  15.185 -	return x;
  15.186 +  __asm__ ("bswapq %0": "=r" (x):"0" (x));
  15.187 +    return x;
  15.188  }
  15.189  #else
  15.190 -static __inline__ Uint64 SDL_Swap64(Uint64 x)
  15.191 +static __inline__ Uint64
  15.192 +SDL_Swap64 (Uint64 x)
  15.193  {
  15.194 -	Uint32 hi, lo;
  15.195 +    Uint32 hi, lo;
  15.196  
  15.197 -	/* Separate into high and low 32-bit values and swap them */
  15.198 -	lo = (Uint32)(x&0xFFFFFFFF);
  15.199 -	x >>= 32;
  15.200 -	hi = (Uint32)(x&0xFFFFFFFF);
  15.201 -	x = SDL_Swap32(lo);
  15.202 -	x <<= 32;
  15.203 -	x |= SDL_Swap32(hi);
  15.204 -	return(x);
  15.205 +    /* Separate into high and low 32-bit values and swap them */
  15.206 +    lo = (Uint32) (x & 0xFFFFFFFF);
  15.207 +    x >>= 32;
  15.208 +    hi = (Uint32) (x & 0xFFFFFFFF);
  15.209 +    x = SDL_Swap32 (lo);
  15.210 +    x <<= 32;
  15.211 +    x |= SDL_Swap32 (hi);
  15.212 +    return (x);
  15.213  }
  15.214  #endif
  15.215  #else
  15.216 @@ -185,8 +212,12 @@
  15.217  
  15.218  /* Ends C function definitions when using C++ */
  15.219  #ifdef __cplusplus
  15.220 +/* *INDENT-OFF* */
  15.221  }
  15.222 +/* *INDENT-ON* */
  15.223  #endif
  15.224  #include "close_code.h"
  15.225  
  15.226  #endif /* _SDL_endian_h */
  15.227 +
  15.228 +/* vi: set ts=4 sw=4 expandtab: */
    16.1 --- a/include/SDL_error.h	Sun May 21 17:27:13 2006 +0000
    16.2 +++ b/include/SDL_error.h	Sun May 28 13:04:16 2006 +0000
    16.3 @@ -20,7 +20,10 @@
    16.4      slouken@libsdl.org
    16.5  */
    16.6  
    16.7 -/* Simple error message routines for SDL */
    16.8 +/**
    16.9 + * \file SDL_error.h
   16.10 + * Simple error message routines for SDL
   16.11 + */
   16.12  
   16.13  #ifndef _SDL_error_h
   16.14  #define _SDL_error_h
   16.15 @@ -30,32 +33,39 @@
   16.16  #include "begin_code.h"
   16.17  /* Set up for C function definitions, even when using C++ */
   16.18  #ifdef __cplusplus
   16.19 +/* *INDENT-OFF* */
   16.20  extern "C" {
   16.21 +/* *INDENT-ON* */
   16.22  #endif
   16.23  
   16.24  /* Public functions */
   16.25 -extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...);
   16.26 -extern DECLSPEC char * SDLCALL SDL_GetError(void);
   16.27 -extern DECLSPEC void SDLCALL SDL_ClearError(void);
   16.28 +extern DECLSPEC void SDLCALL SDL_SetError (const char *fmt, ...);
   16.29 +extern DECLSPEC char *SDLCALL SDL_GetError (void);
   16.30 +extern DECLSPEC void SDLCALL SDL_ClearError (void);
   16.31  
   16.32  /* Private error message function - used internally */
   16.33  #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
   16.34  #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
   16.35 -typedef enum {
   16.36 -	SDL_ENOMEM,
   16.37 -	SDL_EFREAD,
   16.38 -	SDL_EFWRITE,
   16.39 -	SDL_EFSEEK,
   16.40 -	SDL_UNSUPPORTED,
   16.41 -	SDL_LASTERROR
   16.42 +typedef enum
   16.43 +{
   16.44 +    SDL_ENOMEM,
   16.45 +    SDL_EFREAD,
   16.46 +    SDL_EFWRITE,
   16.47 +    SDL_EFSEEK,
   16.48 +    SDL_UNSUPPORTED,
   16.49 +    SDL_LASTERROR
   16.50  } SDL_errorcode;
   16.51 -extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
   16.52 +extern DECLSPEC void SDLCALL SDL_Error (SDL_errorcode code);
   16.53  
   16.54  
   16.55  /* Ends C function definitions when using C++ */
   16.56  #ifdef __cplusplus
   16.57 +/* *INDENT-OFF* */
   16.58  }
   16.59 +/* *INDENT-ON* */
   16.60  #endif
   16.61  #include "close_code.h"
   16.62  
   16.63  #endif /* _SDL_error_h */
   16.64 +
   16.65 +/* vi: set ts=4 sw=4 expandtab: */
    17.1 --- a/include/SDL_events.h	Sun May 21 17:27:13 2006 +0000
    17.2 +++ b/include/SDL_events.h	Sun May 28 13:04:16 2006 +0000
    17.3 @@ -20,14 +20,18 @@
    17.4      slouken@libsdl.org
    17.5  */
    17.6  
    17.7 -/* Include file for SDL event handling */
    17.8 +/**
    17.9 + * \file SDL_events.h
   17.10 + *
   17.11 + * Include file for SDL event handling
   17.12 + */
   17.13  
   17.14  #ifndef _SDL_events_h
   17.15  #define _SDL_events_h
   17.16  
   17.17  #include "SDL_stdinc.h"
   17.18  #include "SDL_error.h"
   17.19 -#include "SDL_active.h"
   17.20 +#include "SDL_video.h"
   17.21  #include "SDL_keyboard.h"
   17.22  #include "SDL_mouse.h"
   17.23  #include "SDL_joystick.h"
   17.24 @@ -36,202 +40,256 @@
   17.25  #include "begin_code.h"
   17.26  /* Set up for C function definitions, even when using C++ */
   17.27  #ifdef __cplusplus
   17.28 +/* *INDENT-OFF* */
   17.29  extern "C" {
   17.30 +/* *INDENT-ON* */
   17.31  #endif
   17.32  
   17.33  /* General keyboard/mouse state definitions */
   17.34  #define SDL_RELEASED	0
   17.35  #define SDL_PRESSED	1
   17.36  
   17.37 -/* Event enumerations */
   17.38 -typedef enum {
   17.39 -       SDL_NOEVENT = 0,			/* Unused (do not remove) */
   17.40 -       SDL_ACTIVEEVENT,			/* Application loses/gains visibility */
   17.41 -       SDL_KEYDOWN,			/* Keys pressed */
   17.42 -       SDL_KEYUP,			/* Keys released */
   17.43 -       SDL_MOUSEMOTION,			/* Mouse moved */
   17.44 -       SDL_MOUSEBUTTONDOWN,		/* Mouse button pressed */
   17.45 -       SDL_MOUSEBUTTONUP,		/* Mouse button released */
   17.46 -       SDL_JOYAXISMOTION,		/* Joystick axis motion */
   17.47 -       SDL_JOYBALLMOTION,		/* Joystick trackball motion */
   17.48 -       SDL_JOYHATMOTION,		/* Joystick hat position change */
   17.49 -       SDL_JOYBUTTONDOWN,		/* Joystick button pressed */
   17.50 -       SDL_JOYBUTTONUP,			/* Joystick button released */
   17.51 -       SDL_QUIT,			/* User-requested quit */
   17.52 -       SDL_SYSWMEVENT,			/* System specific event */
   17.53 -       SDL_EVENT_RESERVEDA,		/* Reserved for future use.. */
   17.54 -       SDL_EVENT_RESERVEDB,		/* Reserved for future use.. */
   17.55 -       SDL_VIDEORESIZE,			/* User resized video mode */
   17.56 -       SDL_VIDEOEXPOSE,			/* Screen needs to be redrawn */
   17.57 -       SDL_EVENT_RESERVED2,		/* Reserved for future use.. */
   17.58 -       SDL_EVENT_RESERVED3,		/* Reserved for future use.. */
   17.59 -       SDL_EVENT_RESERVED4,		/* Reserved for future use.. */
   17.60 -       SDL_EVENT_RESERVED5,		/* Reserved for future use.. */
   17.61 -       SDL_EVENT_RESERVED6,		/* Reserved for future use.. */
   17.62 -       SDL_EVENT_RESERVED7,		/* Reserved for future use.. */
   17.63 -       /* Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */
   17.64 -       SDL_USEREVENT = 24,
   17.65 -       /* This last event is only for bounding internal arrays
   17.66 -	  It is the number of bits in the event mask datatype -- Uint32
   17.67 -        */
   17.68 -       SDL_NUMEVENTS = 32
   17.69 +/**
   17.70 + * \enum SDL_EventType
   17.71 + *
   17.72 + * \brief The types of events that can be delivered
   17.73 + */
   17.74 +typedef enum
   17.75 +{
   17.76 +    SDL_NOEVENT = 0,            /**< Unused (do not remove) */
   17.77 +    SDL_WINDOWEVENT,            /**< Window state change */
   17.78 +    SDL_KEYDOWN,                /**< Keys pressed */
   17.79 +    SDL_KEYUP,                  /**< Keys released */
   17.80 +    SDL_MOUSEMOTION,            /**< Mouse moved */
   17.81 +    SDL_MOUSEBUTTONDOWN,        /**< Mouse button pressed */
   17.82 +    SDL_MOUSEBUTTONUP,          /**< Mouse button released */
   17.83 +    SDL_JOYAXISMOTION,          /**< Joystick axis motion */
   17.84 +    SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
   17.85 +    SDL_JOYHATMOTION,           /**< Joystick hat position change */
   17.86 +    SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
   17.87 +    SDL_JOYBUTTONUP,            /**< Joystick button released */
   17.88 +    SDL_QUIT,                   /**< User-requested quit */
   17.89 +    SDL_SYSWMEVENT,             /**< System specific event */
   17.90 +    SDL_EVENT_RESERVED1,        /**< Reserved for future use... */
   17.91 +    SDL_EVENT_RESERVED2,        /**< Reserved for future use... */
   17.92 +    SDL_EVENT_RESERVED3,        /**< Reserved for future use... */
   17.93 +    /* Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */
   17.94 +    SDL_USEREVENT = 24,
   17.95 +    /* This last event is only for bounding internal arrays
   17.96 +       It is the number of bits in the event mask datatype -- Uint32
   17.97 +     */
   17.98 +    SDL_NUMEVENTS = 32
   17.99  } SDL_EventType;
  17.100  
  17.101 -/* Predefined event masks */
  17.102 +/**
  17.103 + * \enum SDL_EventMask
  17.104 + *
  17.105 + * \brief Predefined event masks
  17.106 + */
  17.107  #define SDL_EVENTMASK(X)	(1<<(X))
  17.108 -typedef enum {
  17.109 -	SDL_ACTIVEEVENTMASK	= SDL_EVENTMASK(SDL_ACTIVEEVENT),
  17.110 -	SDL_KEYDOWNMASK		= SDL_EVENTMASK(SDL_KEYDOWN),
  17.111 -	SDL_KEYUPMASK		= SDL_EVENTMASK(SDL_KEYUP),
  17.112 -	SDL_KEYEVENTMASK	= SDL_EVENTMASK(SDL_KEYDOWN)|
  17.113 -	                          SDL_EVENTMASK(SDL_KEYUP),
  17.114 -	SDL_MOUSEMOTIONMASK	= SDL_EVENTMASK(SDL_MOUSEMOTION),
  17.115 -	SDL_MOUSEBUTTONDOWNMASK	= SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN),
  17.116 -	SDL_MOUSEBUTTONUPMASK	= SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
  17.117 -	SDL_MOUSEEVENTMASK	= SDL_EVENTMASK(SDL_MOUSEMOTION)|
  17.118 -	                          SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)|
  17.119 -	                          SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
  17.120 -	SDL_JOYAXISMOTIONMASK	= SDL_EVENTMASK(SDL_JOYAXISMOTION),
  17.121 -	SDL_JOYBALLMOTIONMASK	= SDL_EVENTMASK(SDL_JOYBALLMOTION),
  17.122 -	SDL_JOYHATMOTIONMASK	= SDL_EVENTMASK(SDL_JOYHATMOTION),
  17.123 -	SDL_JOYBUTTONDOWNMASK	= SDL_EVENTMASK(SDL_JOYBUTTONDOWN),
  17.124 -	SDL_JOYBUTTONUPMASK	= SDL_EVENTMASK(SDL_JOYBUTTONUP),
  17.125 -	SDL_JOYEVENTMASK	= SDL_EVENTMASK(SDL_JOYAXISMOTION)|
  17.126 -	                          SDL_EVENTMASK(SDL_JOYBALLMOTION)|
  17.127 -	                          SDL_EVENTMASK(SDL_JOYHATMOTION)|
  17.128 -	                          SDL_EVENTMASK(SDL_JOYBUTTONDOWN)|
  17.129 -	                          SDL_EVENTMASK(SDL_JOYBUTTONUP),
  17.130 -	SDL_VIDEORESIZEMASK	= SDL_EVENTMASK(SDL_VIDEORESIZE),
  17.131 -	SDL_VIDEOEXPOSEMASK	= SDL_EVENTMASK(SDL_VIDEOEXPOSE),
  17.132 -	SDL_QUITMASK		= SDL_EVENTMASK(SDL_QUIT),
  17.133 -	SDL_SYSWMEVENTMASK	= SDL_EVENTMASK(SDL_SYSWMEVENT)
  17.134 -} SDL_EventMask ;
  17.135 +typedef enum
  17.136 +{
  17.137 +    SDL_WINDOWEVENTMASK = SDL_EVENTMASK (SDL_WINDOWEVENT),
  17.138 +    SDL_KEYDOWNMASK = SDL_EVENTMASK (SDL_KEYDOWN),
  17.139 +    SDL_KEYUPMASK = SDL_EVENTMASK (SDL_KEYUP),
  17.140 +    SDL_KEYEVENTMASK = SDL_EVENTMASK (SDL_KEYDOWN) |
  17.141 +        SDL_EVENTMASK (SDL_KEYUP),
  17.142 +    SDL_MOUSEMOTIONMASK = SDL_EVENTMASK (SDL_MOUSEMOTION),
  17.143 +    SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK (SDL_MOUSEBUTTONDOWN),
  17.144 +    SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK (SDL_MOUSEBUTTONUP),
  17.145 +    SDL_MOUSEEVENTMASK = SDL_EVENTMASK (SDL_MOUSEMOTION) |
  17.146 +        SDL_EVENTMASK (SDL_MOUSEBUTTONDOWN) |
  17.147 +        SDL_EVENTMASK (SDL_MOUSEBUTTONUP),
  17.148 +    SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK (SDL_JOYAXISMOTION),
  17.149 +    SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK (SDL_JOYBALLMOTION),
  17.150 +    SDL_JOYHATMOTIONMASK = SDL_EVENTMASK (SDL_JOYHATMOTION),
  17.151 +    SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK (SDL_JOYBUTTONDOWN),
  17.152 +    SDL_JOYBUTTONUPMASK = SDL_EVENTMASK (SDL_JOYBUTTONUP),
  17.153 +    SDL_JOYEVENTMASK = SDL_EVENTMASK (SDL_JOYAXISMOTION) |
  17.154 +        SDL_EVENTMASK (SDL_JOYBALLMOTION) |
  17.155 +        SDL_EVENTMASK (SDL_JOYHATMOTION) |
  17.156 +        SDL_EVENTMASK (SDL_JOYBUTTONDOWN) | SDL_EVENTMASK (SDL_JOYBUTTONUP),
  17.157 +    SDL_QUITMASK = SDL_EVENTMASK (SDL_QUIT),
  17.158 +    SDL_SYSWMEVENTMASK = SDL_EVENTMASK (SDL_SYSWMEVENT)
  17.159 +} SDL_EventMask;
  17.160  #define SDL_ALLEVENTS		0xFFFFFFFF
  17.161  
  17.162 -/* Application visibility event structure */
  17.163 -typedef struct SDL_ActiveEvent {
  17.164 -	Uint8 type;	/* SDL_ACTIVEEVENT */
  17.165 -	Uint8 gain;	/* Whether given states were gained or lost (1/0) */
  17.166 -	Uint8 state;	/* A mask of the focus states */
  17.167 -} SDL_ActiveEvent;
  17.168 +/**
  17.169 + * \struct SDL_WindowEvent
  17.170 + *
  17.171 + * \brief Window state change event data
  17.172 + */
  17.173 +typedef struct SDL_WindowEvent
  17.174 +{
  17.175 +    Uint8 type;             /**< SDL_WINDOWEVENT */
  17.176 +    Uint8 event;            /**< SDL_WindowEventID */
  17.177 +    int data1;              /**< event dependent data */
  17.178 +    int data2;              /**< event dependent data */
  17.179 +    SDL_WindowID windowID;  /**< The associated window */
  17.180 +} SDL_WindowEvent;
  17.181  
  17.182 -/* Keyboard event structure */
  17.183 -typedef struct SDL_KeyboardEvent {
  17.184 -	Uint8 type;	/* SDL_KEYDOWN or SDL_KEYUP */
  17.185 -	Uint8 which;	/* The keyboard device index */
  17.186 -	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */
  17.187 -	SDL_keysym keysym;
  17.188 +/**
  17.189 + * \struct SDL_KeyboardEvent
  17.190 + *
  17.191 + * \brief Keyboard event structure
  17.192 + */
  17.193 +typedef struct SDL_KeyboardEvent
  17.194 +{
  17.195 +    Uint8 type;             /**< SDL_KEYDOWN or SDL_KEYUP */
  17.196 +    Uint8 which;            /**< The keyboard device index */
  17.197 +    Uint8 state;            /**< SDL_PRESSED or SDL_RELEASED */
  17.198 +    SDL_keysym keysym;      /**< The key that was pressed or released */
  17.199 +    SDL_WindowID windowID;  /**< The window with keyboard focus, if any */
  17.200  } SDL_KeyboardEvent;
  17.201  
  17.202 -/* Mouse motion event structure */
  17.203 -typedef struct SDL_MouseMotionEvent {
  17.204 -	Uint8 type;	/* SDL_MOUSEMOTION */
  17.205 -	Uint8 which;	/* The mouse device index */
  17.206 -	Uint8 state;	/* The current button state */
  17.207 -	Uint16 x, y;	/* The X/Y coordinates of the mouse */
  17.208 -	Sint16 xrel;	/* The relative motion in the X direction */
  17.209 -	Sint16 yrel;	/* The relative motion in the Y direction */
  17.210 +/**
  17.211 + * \struct SDL_MouseMotionEvent
  17.212 + *
  17.213 + * \brief Mouse motion event structure
  17.214 + */
  17.215 +typedef struct SDL_MouseMotionEvent
  17.216 +{
  17.217 +    Uint8 type;             /**< SDL_MOUSEMOTION */
  17.218 +    Uint8 which;            /**< The mouse device index */
  17.219 +    Uint8 state;            /**< The current button state */
  17.220 +    int x;                  /**< X coordinate, relative to window */
  17.221 +    int y;                  /**< Y coordinate, relative to window */
  17.222 +    int xrel;               /**< The relative motion in the X direction */
  17.223 +    int yrel;               /**< The relative motion in the Y direction */
  17.224 +    SDL_WindowID windowID;  /**< The window with mouse focus, if any */
  17.225  } SDL_MouseMotionEvent;
  17.226  
  17.227 -/* Mouse button event structure */
  17.228 -typedef struct SDL_MouseButtonEvent {
  17.229 -	Uint8 type;	/* SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */
  17.230 -	Uint8 which;	/* The mouse device index */
  17.231 -	Uint8 button;	/* The mouse button index */
  17.232 -	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */
  17.233 -	Uint16 x, y;	/* The X/Y coordinates of the mouse at press time */
  17.234 +/**
  17.235 + * \struct SDL_MouseButtonEvent
  17.236 + *
  17.237 + * \brief Mouse button event structure
  17.238 + */
  17.239 +typedef struct SDL_MouseButtonEvent
  17.240 +{
  17.241 +    Uint8 type;             /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */
  17.242 +    Uint8 which;            /**< The mouse device index */
  17.243 +    Uint8 button;           /**< The mouse button index */
  17.244 +    Uint8 state;            /**< SDL_PRESSED or SDL_RELEASED */
  17.245 +    int x;                  /**< X coordinate, relative to window */
  17.246 +    int y;                  /**< Y coordinate, relative to window */
  17.247 +    SDL_WindowID windowID;  /**< The window with mouse focus, if any */
  17.248  } SDL_MouseButtonEvent;
  17.249  
  17.250 -/* Joystick axis motion event structure */
  17.251 -typedef struct SDL_JoyAxisEvent {
  17.252 -	Uint8 type;	/* SDL_JOYAXISMOTION */
  17.253 -	Uint8 which;	/* The joystick device index */
  17.254 -	Uint8 axis;	/* The joystick axis index */
  17.255 -	Sint16 value;	/* The axis value (range: -32768 to 32767) */
  17.256 +/**
  17.257 + * \struct SDL_JoyAxisEvent
  17.258 + *
  17.259 + * \brief Joystick axis motion event structure
  17.260 + */
  17.261 +typedef struct SDL_JoyAxisEvent
  17.262 +{
  17.263 +    Uint8 type;         /**< SDL_JOYAXISMOTION */
  17.264 +    Uint8 which;        /**< The joystick device index */
  17.265 +    Uint8 axis;         /**< The joystick axis index */
  17.266 +    int value;          /**< The axis value (range: -32768 to 32767) */
  17.267  } SDL_JoyAxisEvent;
  17.268  
  17.269 -/* Joystick trackball motion event structure */
  17.270 -typedef struct SDL_JoyBallEvent {
  17.271 -	Uint8 type;	/* SDL_JOYBALLMOTION */
  17.272 -	Uint8 which;	/* The joystick device index */
  17.273 -	Uint8 ball;	/* The joystick trackball index */
  17.274 -	Sint16 xrel;	/* The relative motion in the X direction */
  17.275 -	Sint16 yrel;	/* The relative motion in the Y direction */
  17.276 +/**
  17.277 + * \struct SDL_JoyBallEvent
  17.278 + *
  17.279 + * \brief Joystick trackball motion event structure
  17.280 + */
  17.281 +typedef struct SDL_JoyBallEvent
  17.282 +{
  17.283 +    Uint8 type;         /**< SDL_JOYBALLMOTION */
  17.284 +    Uint8 which;        /**< The joystick device index */
  17.285 +    Uint8 ball;         /**< The joystick trackball index */
  17.286 +    int xrel;           /**< The relative motion in the X direction */
  17.287 +    int yrel;           /**< The relative motion in the Y direction */
  17.288  } SDL_JoyBallEvent;
  17.289  
  17.290 -/* Joystick hat position change event structure */
  17.291 -typedef struct SDL_JoyHatEvent {
  17.292 -	Uint8 type;	/* SDL_JOYHATMOTION */
  17.293 -	Uint8 which;	/* The joystick device index */
  17.294 -	Uint8 hat;	/* The joystick hat index */
  17.295 -	Uint8 value;	/* The hat position value:
  17.296 -			    SDL_HAT_LEFTUP   SDL_HAT_UP       SDL_HAT_RIGHTUP
  17.297 -			    SDL_HAT_LEFT     SDL_HAT_CENTERED SDL_HAT_RIGHT
  17.298 -			    SDL_HAT_LEFTDOWN SDL_HAT_DOWN     SDL_HAT_RIGHTDOWN
  17.299 -			   Note that zero means the POV is centered.
  17.300 -			*/
  17.301 +/**
  17.302 + * \struct SDL_JoyHatEvent
  17.303 + *
  17.304 + * \brief Joystick hat position change event structure
  17.305 + */
  17.306 +typedef struct SDL_JoyHatEvent
  17.307 +{
  17.308 +    Uint8 type;         /**< SDL_JOYHATMOTION */
  17.309 +    Uint8 which;        /**< The joystick device index */
  17.310 +    Uint8 hat;          /**< The joystick hat index */
  17.311 +    Uint8 value;        /**< The hat position value:
  17.312 +                             SDL_HAT_LEFTUP   SDL_HAT_UP       SDL_HAT_RIGHTUP
  17.313 +                             SDL_HAT_LEFT     SDL_HAT_CENTERED SDL_HAT_RIGHT
  17.314 +                             SDL_HAT_LEFTDOWN SDL_HAT_DOWN     SDL_HAT_RIGHTDOWN
  17.315 +                             Note that zero means the POV is centered.
  17.316 +                         */
  17.317  } SDL_JoyHatEvent;
  17.318  
  17.319 -/* Joystick button event structure */
  17.320 -typedef struct SDL_JoyButtonEvent {
  17.321 -	Uint8 type;	/* SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */
  17.322 -	Uint8 which;	/* The joystick device index */
  17.323 -	Uint8 button;	/* The joystick button index */
  17.324 -	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */
  17.325 +/**
  17.326 + * \struct SDL_JoyButtonEvent
  17.327 + *
  17.328 + * \brief Joystick button event structure
  17.329 + */
  17.330 +typedef struct SDL_JoyButtonEvent
  17.331 +{
  17.332 +    Uint8 type;         /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */
  17.333 +    Uint8 which;        /**< The joystick device index */
  17.334 +    Uint8 button;       /**< The joystick button index */
  17.335 +    Uint8 state;        /**< SDL_PRESSED or SDL_RELEASED */
  17.336  } SDL_JoyButtonEvent;
  17.337  
  17.338 -/* The "window resized" event
  17.339 -   When you get this event, you are responsible for setting a new video
  17.340 -   mode with the new width and height.
  17.341 +/**
  17.342 + * \struct SDL_QuitEvent
  17.343 + *
  17.344 + * \brief The "quit requested" event
  17.345   */
  17.346 -typedef struct SDL_ResizeEvent {
  17.347 -	Uint8 type;	/* SDL_VIDEORESIZE */
  17.348 -	int w;		/* New width */
  17.349 -	int h;		/* New height */
  17.350 -} SDL_ResizeEvent;
  17.351 -
  17.352 -/* The "screen redraw" event */
  17.353 -typedef struct SDL_ExposeEvent {
  17.354 -	Uint8 type;	/* SDL_VIDEOEXPOSE */
  17.355 -} SDL_ExposeEvent;
  17.356 -
  17.357 -/* The "quit requested" event */
  17.358 -typedef struct SDL_QuitEvent {
  17.359 -	Uint8 type;	/* SDL_QUIT */
  17.360 +typedef struct SDL_QuitEvent
  17.361 +{
  17.362 +    Uint8 type;         /**< SDL_QUIT */
  17.363  } SDL_QuitEvent;
  17.364  
  17.365 -/* A user-defined event type */
  17.366 -typedef struct SDL_UserEvent {
  17.367 -	Uint8 type;	/* SDL_USEREVENT through SDL_NUMEVENTS-1 */
  17.368 -	int code;	/* User defined event code */
  17.369 -	void *data1;	/* User defined data pointer */
  17.370 -	void *data2;	/* User defined data pointer */
  17.371 +/**
  17.372 + * \struct SDL_UserEvent
  17.373 + *
  17.374 + * \brief A user-defined event type
  17.375 + */
  17.376 +typedef struct SDL_UserEvent
  17.377 +{
  17.378 +    Uint8 type;         /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
  17.379 +    int code;           /**< User defined event code */
  17.380 +    void *data1;        /**< User defined data pointer */
  17.381 +    void *data2;        /**< User defined data pointer */
  17.382  } SDL_UserEvent;
  17.383  
  17.384 -/* If you want to use this event, you should include SDL_syswm.h */
  17.385 +/**
  17.386 + * \struct SDL_SysWMEvent
  17.387 + *
  17.388 + * \brief A video driver dependent system event
  17.389 + *
  17.390 + * \note If you want to use this event, you should include SDL_syswm.h
  17.391 + */
  17.392  struct SDL_SysWMmsg;
  17.393  typedef struct SDL_SysWMmsg SDL_SysWMmsg;
  17.394 -typedef struct SDL_SysWMEvent {
  17.395 -	Uint8 type;
  17.396 -	SDL_SysWMmsg *msg;
  17.397 +typedef struct SDL_SysWMEvent
  17.398 +{
  17.399 +    Uint8 type;         /**< SDL_SYSWMEVENT */
  17.400 +    SDL_SysWMmsg *msg;  /**< driver dependent data, defined in SDL_syswm.h */
  17.401  } SDL_SysWMEvent;
  17.402  
  17.403 -/* General event structure */
  17.404 -typedef union SDL_Event {
  17.405 -	Uint8 type;
  17.406 -	SDL_ActiveEvent active;
  17.407 -	SDL_KeyboardEvent key;
  17.408 -	SDL_MouseMotionEvent motion;
  17.409 -	SDL_MouseButtonEvent button;
  17.410 -	SDL_JoyAxisEvent jaxis;
  17.411 -	SDL_JoyBallEvent jball;
  17.412 -	SDL_JoyHatEvent jhat;
  17.413 -	SDL_JoyButtonEvent jbutton;
  17.414 -	SDL_ResizeEvent resize;
  17.415 -	SDL_ExposeEvent expose;
  17.416 -	SDL_QuitEvent quit;
  17.417 -	SDL_UserEvent user;
  17.418 -	SDL_SysWMEvent syswm;
  17.419 +/**
  17.420 + * \union SDL_Event
  17.421 + *
  17.422 + * \brief General event structure
  17.423 + */
  17.424 +typedef union SDL_Event
  17.425 +{
  17.426 +    Uint8 type;                     /**< Event type, shared with all events */
  17.427 +    SDL_WindowEvent window;         /**< Window event data */
  17.428 +    SDL_KeyboardEvent key;          /**< Keyboard event data */
  17.429 +    SDL_MouseMotionEvent motion;    /**< Mouse motion event data */
  17.430 +    SDL_MouseButtonEvent button;    /**< Mouse button event data */
  17.431 +    SDL_JoyAxisEvent jaxis;         /**< Joystick axis event data */
  17.432 +    SDL_JoyBallEvent jball;         /**< Joystick ball event data */
  17.433 +    SDL_JoyHatEvent jhat;           /**< Joystick hat event data */
  17.434 +    SDL_JoyButtonEvent jbutton;     /**< Joystick button event data */
  17.435 +    SDL_QuitEvent quit;             /**< Quit request event data */
  17.436 +    SDL_UserEvent user;             /**< Custom event data */
  17.437 +    SDL_SysWMEvent syswm;           /**< System dependent window event data */
  17.438  } SDL_Event;
  17.439  
  17.440  
  17.441 @@ -241,7 +299,7 @@
  17.442     This function updates the event queue and internal input device state.
  17.443     This should only be run in the thread that sets the video mode.
  17.444  */
  17.445 -extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
  17.446 +extern DECLSPEC void SDLCALL SDL_PumpEvents (void);
  17.447  
  17.448  /* Checks the event queue for messages and optionally returns them.
  17.449     If 'action' is SDL_ADDEVENT, up to 'numevents' events will be added to
  17.450 @@ -255,32 +313,34 @@
  17.451     This function returns the number of events actually stored, or -1
  17.452     if there was an error.  This function is thread-safe.
  17.453  */
  17.454 -typedef enum {
  17.455 -	SDL_ADDEVENT,
  17.456 -	SDL_PEEKEVENT,
  17.457 -	SDL_GETEVENT
  17.458 +typedef enum
  17.459 +{
  17.460 +    SDL_ADDEVENT,
  17.461 +    SDL_PEEKEVENT,
  17.462 +    SDL_GETEVENT
  17.463  } SDL_eventaction;
  17.464  /* */
  17.465 -extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents,
  17.466 -				SDL_eventaction action, Uint32 mask);
  17.467 +extern DECLSPEC int SDLCALL SDL_PeepEvents (SDL_Event * events, int numevents,
  17.468 +                                            SDL_eventaction action,
  17.469 +                                            Uint32 mask);
  17.470  
  17.471  /* Polls for currently pending events, and returns 1 if there are any pending
  17.472     events, or 0 if there are none available.  If 'event' is not NULL, the next
  17.473     event is removed from the queue and stored in that area.
  17.474   */
  17.475 -extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event);
  17.476 +extern DECLSPEC int SDLCALL SDL_PollEvent (SDL_Event * event);
  17.477  
  17.478  /* Waits indefinitely for the next available event, returning 1, or 0 if there
  17.479     was an error while waiting for events.  If 'event' is not NULL, the next
  17.480     event is removed from the queue and stored in that area.
  17.481   */
  17.482 -extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event);
  17.483 +extern DECLSPEC int SDLCALL SDL_WaitEvent (SDL_Event * event);
  17.484  
  17.485  /* Add an event to the event queue.
  17.486     This function returns 0 on success, or -1 if the event queue was full
  17.487     or there was some other error.
  17.488   */
  17.489 -extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event);
  17.490 +extern DECLSPEC int SDLCALL SDL_PushEvent (SDL_Event * event);
  17.491  
  17.492  /*
  17.493    This function sets up a filter to process all events before they
  17.494 @@ -288,7 +348,7 @@
  17.495  
  17.496    The filter is protypted as:
  17.497  */
  17.498 -typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event);
  17.499 +typedef int (SDLCALL * SDL_EventFilter) (const SDL_Event * event);
  17.500  /*
  17.501    If the filter returns 1, then the event will be added to the internal queue.
  17.502    If it returns 0, then the event will be dropped from the queue, but the 
  17.503 @@ -305,13 +365,13 @@
  17.504    If the quit event is generated by an interrupt signal, it will bypass the
  17.505    internal queue and be delivered to the application at the next event poll.
  17.506  */
  17.507 -extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter);
  17.508 +extern DECLSPEC void SDLCALL SDL_SetEventFilter (SDL_EventFilter filter);
  17.509  
  17.510  /*
  17.511    Return the current event filter - can be used to "chain" filters.
  17.512    If there is no event filter set, this function returns NULL.
  17.513  */
  17.514 -extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter(void);
  17.515 +extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter (void);
  17.516  
  17.517  /*
  17.518    This function allows you to set the state of processing certain events.
  17.519 @@ -325,13 +385,17 @@
  17.520  #define SDL_IGNORE	 0
  17.521  #define SDL_DISABLE	 0
  17.522  #define SDL_ENABLE	 1
  17.523 -extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state);
  17.524 +extern DECLSPEC Uint8 SDLCALL SDL_EventState (Uint8 type, int state);
  17.525  
  17.526  
  17.527  /* Ends C function definitions when using C++ */
  17.528  #ifdef __cplusplus
  17.529 +/* *INDENT-OFF* */
  17.530  }
  17.531 +/* *INDENT-ON* */
  17.532  #endif
  17.533  #include "close_code.h"
  17.534  
  17.535  #endif /* _SDL_events_h */
  17.536 +
  17.537 +/* vi: set ts=4 sw=4 expandtab: */
    18.1 --- a/include/SDL_getenv.h	Sun May 21 17:27:13 2006 +0000
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,24 +0,0 @@
    18.4 -/*
    18.5 -    SDL - Simple DirectMedia Layer
    18.6 -    Copyright (C) 1997-2006 Sam Lantinga
    18.7 -
    18.8 -    This library is free software; you can redistribute it and/or
    18.9 -    modify it under the terms of the GNU Lesser General Public
   18.10 -    License as published by the Free Software Foundation; either
   18.11 -    version 2.1 of the License, or (at your option) any later version.
   18.12 -
   18.13 -    This library is distributed in the hope that it will be useful,
   18.14 -    but WITHOUT ANY WARRANTY; without even the implied warranty of
   18.15 -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   18.16 -    Lesser General Public License for more details.
   18.17 -
   18.18 -    You should have received a copy of the GNU Lesser General Public
   18.19 -    License along with this library; if not, write to the Free Software
   18.20 -    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   18.21 -
   18.22 -    Sam Lantinga
   18.23 -    slouken@libsdl.org
   18.24 -*/
   18.25 -
   18.26 -/* DEPRECATED */
   18.27 -#include "SDL_stdinc.h"
    19.1 --- a/include/SDL_joystick.h	Sun May 21 17:27:13 2006 +0000
    19.2 +++ b/include/SDL_joystick.h	Sun May 28 13:04:16 2006 +0000
    19.3 @@ -20,7 +20,11 @@
    19.4      slouken@libsdl.org
    19.5  */
    19.6  
    19.7 -/* Include file for SDL joystick event handling */
    19.8 +/**
    19.9 + * \file SDL_joystick.h
   19.10 + *
   19.11 + * Include file for SDL joystick event handling
   19.12 + */
   19.13  
   19.14  #ifndef _SDL_joystick_h
   19.15  #define _SDL_joystick_h
   19.16 @@ -31,7 +35,9 @@
   19.17  #include "begin_code.h"
   19.18  /* Set up for C function definitions, even when using C++ */
   19.19  #ifdef __cplusplus
   19.20 +/* *INDENT-OFF* */
   19.21  extern "C" {
   19.22 +/* *INDENT-ON* */
   19.23  #endif
   19.24  
   19.25  /* In order to use these functions, SDL_Init() must have been called
   19.26 @@ -48,14 +54,14 @@
   19.27  /*
   19.28   * Count the number of joysticks attached to the system
   19.29   */
   19.30 -extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
   19.31 +extern DECLSPEC int SDLCALL SDL_NumJoysticks (void);
   19.32  
   19.33  /*
   19.34   * Get the implementation dependent name of a joystick.
   19.35   * This can be called before any joysticks are opened.
   19.36   * If no name can be found, this function returns NULL.
   19.37   */
   19.38 -extern DECLSPEC const char * SDLCALL SDL_JoystickName(int device_index);
   19.39 +extern DECLSPEC const char *SDLCALL SDL_JoystickName (int device_index);
   19.40  
   19.41  /*
   19.42   * Open a joystick for use - the index passed as an argument refers to
   19.43 @@ -64,46 +70,46 @@
   19.44   *
   19.45   * This function returns a joystick identifier, or NULL if an error occurred.
   19.46   */
   19.47 -extern DECLSPEC SDL_Joystick * SDLCALL SDL_JoystickOpen(int device_index);
   19.48 +extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen (int device_index);
   19.49  
   19.50  /*
   19.51   * Returns 1 if the joystick has been opened, or 0 if it has not.
   19.52   */
   19.53 -extern DECLSPEC int SDLCALL SDL_JoystickOpened(int device_index);
   19.54 +extern DECLSPEC int SDLCALL SDL_JoystickOpened (int device_index);
   19.55  
   19.56  /*
   19.57   * Get the device index of an opened joystick.
   19.58   */
   19.59 -extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick);
   19.60 +extern DECLSPEC int SDLCALL SDL_JoystickIndex (SDL_Joystick * joystick);
   19.61  
   19.62  /*
   19.63   * Get the number of general axis controls on a joystick
   19.64   */
   19.65 -extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick);
   19.66 +extern DECLSPEC int SDLCALL SDL_JoystickNumAxes (SDL_Joystick * joystick);
   19.67  
   19.68  /*
   19.69   * Get the number of trackballs on a joystick
   19.70   * Joystick trackballs have only relative motion events associated
   19.71   * with them and their state cannot be polled.
   19.72   */
   19.73 -extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick);
   19.74 +extern DECLSPEC int SDLCALL SDL_JoystickNumBalls (SDL_Joystick * joystick);
   19.75  
   19.76  /*
   19.77   * Get the number of POV hats on a joystick
   19.78   */
   19.79 -extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick);
   19.80 +extern DECLSPEC int SDLCALL SDL_JoystickNumHats (SDL_Joystick * joystick);
   19.81  
   19.82  /*
   19.83   * Get the number of buttons on a joystick
   19.84   */
   19.85 -extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick);
   19.86 +extern DECLSPEC int SDLCALL SDL_JoystickNumButtons (SDL_Joystick * joystick);
   19.87  
   19.88  /*
   19.89   * Update the current state of the open joysticks.
   19.90   * This is called automatically by the event loop if any joystick
   19.91   * events are enabled.
   19.92   */
   19.93 -extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void);
   19.94 +extern DECLSPEC void SDLCALL SDL_JoystickUpdate (void);
   19.95  
   19.96  /*
   19.97   * Enable/disable joystick event polling.
   19.98 @@ -112,14 +118,15 @@
   19.99   * information.
  19.100   * The state can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
  19.101   */
  19.102 -extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
  19.103 +extern DECLSPEC int SDLCALL SDL_JoystickEventState (int state);
  19.104  
  19.105  /*
  19.106   * Get the current state of an axis control on a joystick
  19.107   * The state is a value ranging from -32768 to 32767.
  19.108   * The axis indices start at index 0.
  19.109   */
  19.110 -extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
  19.111 +extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis (SDL_Joystick * joystick,
  19.112 +                                                    int axis);
  19.113  
  19.114  /*
  19.115   * Get the current state of a POV hat on a joystick
  19.116 @@ -137,31 +144,38 @@
  19.117  /*
  19.118   * The hat indices start at index 0.
  19.119   */
  19.120 -extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
  19.121 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat (SDL_Joystick * joystick,
  19.122 +                                                  int hat);
  19.123  
  19.124  /*
  19.125   * Get the ball axis change since the last poll
  19.126   * This returns 0, or -1 if you passed it invalid parameters.
  19.127   * The ball indices start at index 0.
  19.128   */
  19.129 -extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
  19.130 +extern DECLSPEC int SDLCALL SDL_JoystickGetBall (SDL_Joystick * joystick,
  19.131 +                                                 int ball, int *dx, int *dy);
  19.132  
  19.133  /*
  19.134   * Get the current state of a button on a joystick
  19.135   * The button indices start at index 0.
  19.136   */
  19.137 -extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
  19.138 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton (SDL_Joystick * joystick,
  19.139 +                                                     int button);
  19.140  
  19.141  /*
  19.142   * Close a joystick previously opened with SDL_JoystickOpen()
  19.143   */
  19.144 -extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick);
  19.145 +extern DECLSPEC void SDLCALL SDL_JoystickClose (SDL_Joystick * joystick);
  19.146  
  19.147  
  19.148  /* Ends C function definitions when using C++ */
  19.149  #ifdef __cplusplus
  19.150 +/* *INDENT-OFF* */
  19.151  }
  19.152 +/* *INDENT-ON* */
  19.153  #endif
  19.154  #include "close_code.h"
  19.155  
  19.156  #endif /* _SDL_joystick_h */
  19.157 +
  19.158 +/* vi: set ts=4 sw=4 expandtab: */
    20.1 --- a/include/SDL_keyboard.h	Sun May 21 17:27:13 2006 +0000
    20.2 +++ b/include/SDL_keyboard.h	Sun May 28 13:04:16 2006 +0000
    20.3 @@ -20,7 +20,11 @@
    20.4      slouken@libsdl.org
    20.5  */
    20.6  
    20.7 -/* Include file for SDL keyboard event handling */
    20.8 +/**
    20.9 + * \file SDL_keyboard.h
   20.10 + *
   20.11 + * Include file for SDL keyboard event handling
   20.12 + */
   20.13  
   20.14  #ifndef _SDL_keyboard_h
   20.15  #define _SDL_keyboard_h
   20.16 @@ -32,7 +36,9 @@
   20.17  #include "begin_code.h"
   20.18  /* Set up for C function definitions, even when using C++ */
   20.19  #ifdef __cplusplus
   20.20 +/* *INDENT-OFF* */
   20.21  extern "C" {
   20.22 +/* *INDENT-ON* */
   20.23  #endif
   20.24  
   20.25  /* Keysym structure
   20.26 @@ -51,11 +57,12 @@
   20.27  		An international character..
   20.28  	}
   20.29   */
   20.30 -typedef struct SDL_keysym {
   20.31 -	Uint8 scancode;			/* hardware specific scancode */
   20.32 -	SDLKey sym;			/* SDL virtual keysym */
   20.33 -	SDLMod mod;			/* current key modifiers */
   20.34 -	Uint16 unicode;			/* translated character */
   20.35 +typedef struct SDL_keysym
   20.36 +{
   20.37 +    Uint8 scancode;             /* hardware specific scancode */
   20.38 +    SDLKey sym;                 /* SDL virtual keysym */
   20.39 +    SDLMod mod;                 /* current key modifiers */
   20.40 +    Uint16 unicode;             /* translated character */
   20.41  } SDL_keysym;
   20.42  
   20.43  /* This is the mask which refers to all hotkey bindings */
   20.44 @@ -70,7 +77,7 @@
   20.45   * If 'enable' is -1, the translation state is not changed.
   20.46   * It returns the previous state of keyboard translation.
   20.47   */
   20.48 -extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
   20.49 +extern DECLSPEC int SDLCALL SDL_EnableUNICODE (int enable);
   20.50  
   20.51  /*
   20.52   * Enable/Disable keyboard repeat.  Keyboard repeat defaults to off.
   20.53 @@ -83,8 +90,8 @@
   20.54  /*
   20.55   * If 'delay' is set to 0, keyboard repeat is disabled.
   20.56   */
   20.57 -extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
   20.58 -extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
   20.59 +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat (int delay, int interval);
   20.60 +extern DECLSPEC void SDLCALL SDL_GetKeyRepeat (int *delay, int *interval);
   20.61  
   20.62  /*
   20.63   * Get a snapshot of the current state of the keyboard.
   20.64 @@ -93,29 +100,33 @@
   20.65   * 	Uint8 *keystate = SDL_GetKeyState(NULL);
   20.66   *	if ( keystate[SDLK_RETURN] ) ... <RETURN> is pressed.
   20.67   */
   20.68 -extern DECLSPEC Uint8 * SDLCALL SDL_GetKeyState(int *numkeys);
   20.69 +extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyState (int *numkeys);
   20.70  
   20.71  /*
   20.72   * Get the current key modifier state
   20.73   */
   20.74 -extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void);
   20.75 +extern DECLSPEC SDLMod SDLCALL SDL_GetModState (void);
   20.76  
   20.77  /*
   20.78   * Set the current key modifier state
   20.79   * This does not change the keyboard state, only the key modifier flags.
   20.80   */
   20.81 -extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate);
   20.82 +extern DECLSPEC void SDLCALL SDL_SetModState (SDLMod modstate);
   20.83  
   20.84  /*
   20.85   * Get the name of an SDL virtual keysym
   20.86   */
   20.87 -extern DECLSPEC char * SDLCALL SDL_GetKeyName(SDLKey key);
   20.88 +extern DECLSPEC char *SDLCALL SDL_GetKeyName (SDLKey key);
   20.89  
   20.90  
   20.91  /* Ends C function definitions when using C++ */
   20.92  #ifdef __cplusplus
   20.93 +/* *INDENT-OFF* */
   20.94  }
   20.95 +/* *INDENT-ON* */
   20.96  #endif
   20.97  #include "close_code.h"
   20.98  
   20.99  #endif /* _SDL_keyboard_h */
  20.100 +
  20.101 +/* vi: set ts=4 sw=4 expandtab: */
    21.1 --- a/include/SDL_keysym.h	Sun May 21 17:27:13 2006 +0000
    21.2 +++ b/include/SDL_keysym.h	Sun May 28 13:04:16 2006 +0000
    21.3 @@ -20,6 +20,10 @@
    21.4      slouken@libsdl.org
    21.5  */
    21.6  
    21.7 +/**
    21.8 + * \file SDL_keysym.h
    21.9 + */
   21.10 +
   21.11  #ifndef _SDL_keysym_h
   21.12  #define _SDL_keysym_h
   21.13  
   21.14 @@ -28,279 +32,281 @@
   21.15     as international virtual keycodes.  We'll follow in the footsteps of X11...
   21.16     The names of the keys
   21.17   */
   21.18 - 
   21.19 -typedef enum {
   21.20 -	/* The keyboard syms have been cleverly chosen to map to ASCII */
   21.21 -	SDLK_UNKNOWN		= 0,
   21.22 -	SDLK_FIRST		= 0,
   21.23 -	SDLK_BACKSPACE		= 8,
   21.24 -	SDLK_TAB		= 9,
   21.25 -	SDLK_CLEAR		= 12,
   21.26 -	SDLK_RETURN		= 13,
   21.27 -	SDLK_PAUSE		= 19,
   21.28 -	SDLK_ESCAPE		= 27,
   21.29 -	SDLK_SPACE		= 32,
   21.30 -	SDLK_EXCLAIM		= 33,
   21.31 -	SDLK_QUOTEDBL		= 34,
   21.32 -	SDLK_HASH		= 35,
   21.33 -	SDLK_DOLLAR		= 36,
   21.34 -	SDLK_AMPERSAND		= 38,
   21.35 -	SDLK_QUOTE		= 39,
   21.36 -	SDLK_LEFTPAREN		= 40,
   21.37 -	SDLK_RIGHTPAREN		= 41,
   21.38 -	SDLK_ASTERISK		= 42,
   21.39 -	SDLK_PLUS		= 43,
   21.40 -	SDLK_COMMA		= 44,
   21.41 -	SDLK_MINUS		= 45,
   21.42 -	SDLK_PERIOD		= 46,
   21.43 -	SDLK_SLASH		= 47,
   21.44 -	SDLK_0			= 48,
   21.45 -	SDLK_1			= 49,
   21.46 -	SDLK_2			= 50,
   21.47 -	SDLK_3			= 51,
   21.48 -	SDLK_4			= 52,
   21.49 -	SDLK_5			= 53,
   21.50 -	SDLK_6			= 54,
   21.51 -	SDLK_7			= 55,
   21.52 -	SDLK_8			= 56,
   21.53 -	SDLK_9			= 57,
   21.54 -	SDLK_COLON		= 58,
   21.55 -	SDLK_SEMICOLON		= 59,
   21.56 -	SDLK_LESS		= 60,
   21.57 -	SDLK_EQUALS		= 61,
   21.58 -	SDLK_GREATER		= 62,
   21.59 -	SDLK_QUESTION		= 63,
   21.60 -	SDLK_AT			= 64,
   21.61 -	/* 
   21.62 -	   Skip uppercase letters
   21.63 -	 */
   21.64 -	SDLK_LEFTBRACKET	= 91,
   21.65 -	SDLK_BACKSLASH		= 92,
   21.66 -	SDLK_RIGHTBRACKET	= 93,
   21.67 -	SDLK_CARET		= 94,
   21.68 -	SDLK_UNDERSCORE		= 95,
   21.69 -	SDLK_BACKQUOTE		= 96,
   21.70 -	SDLK_a			= 97,
   21.71 -	SDLK_b			= 98,
   21.72 -	SDLK_c			= 99,
   21.73 -	SDLK_d			= 100,
   21.74 -	SDLK_e			= 101,
   21.75 -	SDLK_f			= 102,
   21.76 -	SDLK_g			= 103,
   21.77 -	SDLK_h			= 104,
   21.78 -	SDLK_i			= 105,
   21.79 -	SDLK_j			= 106,
   21.80 -	SDLK_k			= 107,
   21.81 -	SDLK_l			= 108,
   21.82 -	SDLK_m			= 109,
   21.83 -	SDLK_n			= 110,
   21.84 -	SDLK_o			= 111,
   21.85 -	SDLK_p			= 112,
   21.86 -	SDLK_q			= 113,
   21.87 -	SDLK_r			= 114,
   21.88 -	SDLK_s			= 115,
   21.89 -	SDLK_t			= 116,
   21.90 -	SDLK_u			= 117,
   21.91 -	SDLK_v			= 118,
   21.92 -	SDLK_w			= 119,
   21.93 -	SDLK_x			= 120,
   21.94 -	SDLK_y			= 121,
   21.95 -	SDLK_z			= 122,
   21.96 -	SDLK_DELETE		= 127,
   21.97 -	/* End of ASCII mapped keysyms */
   21.98  
   21.99 -	/* International keyboard syms */
  21.100 -	SDLK_WORLD_0		= 160,		/* 0xA0 */
  21.101 -	SDLK_WORLD_1		= 161,
  21.102 -	SDLK_WORLD_2		= 162,
  21.103 -	SDLK_WORLD_3		= 163,
  21.104 -	SDLK_WORLD_4		= 164,
  21.105 -	SDLK_WORLD_5		= 165,
  21.106 -	SDLK_WORLD_6		= 166,
  21.107 -	SDLK_WORLD_7		= 167,
  21.108 -	SDLK_WORLD_8		= 168,
  21.109 -	SDLK_WORLD_9		= 169,
  21.110 -	SDLK_WORLD_10		= 170,
  21.111 -	SDLK_WORLD_11		= 171,
  21.112 -	SDLK_WORLD_12		= 172,
  21.113 -	SDLK_WORLD_13		= 173,
  21.114 -	SDLK_WORLD_14		= 174,
  21.115 -	SDLK_WORLD_15		= 175,
  21.116 -	SDLK_WORLD_16		= 176,
  21.117 -	SDLK_WORLD_17		= 177,
  21.118 -	SDLK_WORLD_18		= 178,
  21.119 -	SDLK_WORLD_19		= 179,
  21.120 -	SDLK_WORLD_20		= 180,
  21.121 -	SDLK_WORLD_21		= 181,
  21.122 -	SDLK_WORLD_22		= 182,
  21.123 -	SDLK_WORLD_23		= 183,
  21.124 -	SDLK_WORLD_24		= 184,
  21.125 -	SDLK_WORLD_25		= 185,
  21.126 -	SDLK_WORLD_26		= 186,
  21.127 -	SDLK_WORLD_27		= 187,
  21.128 -	SDLK_WORLD_28		= 188,
  21.129 -	SDLK_WORLD_29		= 189,
  21.130 -	SDLK_WORLD_30		= 190,
  21.131 -	SDLK_WORLD_31		= 191,
  21.132 -	SDLK_WORLD_32		= 192,
  21.133 -	SDLK_WORLD_33		= 193,
  21.134 -	SDLK_WORLD_34		= 194,
  21.135 -	SDLK_WORLD_35		= 195,
  21.136 -	SDLK_WORLD_36		= 196,
  21.137 -	SDLK_WORLD_37		= 197,
  21.138 -	SDLK_WORLD_38		= 198,
  21.139 -	SDLK_WORLD_39		= 199,
  21.140 -	SDLK_WORLD_40		= 200,
  21.141 -	SDLK_WORLD_41		= 201,
  21.142 -	SDLK_WORLD_42		= 202,
  21.143 -	SDLK_WORLD_43		= 203,
  21.144 -	SDLK_WORLD_44		= 204,
  21.145 -	SDLK_WORLD_45		= 205,
  21.146 -	SDLK_WORLD_46		= 206,
  21.147 -	SDLK_WORLD_47		= 207,
  21.148 -	SDLK_WORLD_48		= 208,
  21.149 -	SDLK_WORLD_49		= 209,
  21.150 -	SDLK_WORLD_50		= 210,
  21.151 -	SDLK_WORLD_51		= 211,
  21.152 -	SDLK_WORLD_52		= 212,
  21.153 -	SDLK_WORLD_53		= 213,
  21.154 -	SDLK_WORLD_54		= 214,
  21.155 -	SDLK_WORLD_55		= 215,
  21.156 -	SDLK_WORLD_56		= 216,
  21.157 -	SDLK_WORLD_57		= 217,
  21.158 -	SDLK_WORLD_58		= 218,
  21.159 -	SDLK_WORLD_59		= 219,
  21.160 -	SDLK_WORLD_60		= 220,
  21.161 -	SDLK_WORLD_61		= 221,
  21.162 -	SDLK_WORLD_62		= 222,
  21.163 -	SDLK_WORLD_63		= 223,
  21.164 -	SDLK_WORLD_64		= 224,
  21.165 -	SDLK_WORLD_65		= 225,
  21.166 -	SDLK_WORLD_66		= 226,
  21.167 -	SDLK_WORLD_67		= 227,
  21.168 -	SDLK_WORLD_68		= 228,
  21.169 -	SDLK_WORLD_69		= 229,
  21.170 -	SDLK_WORLD_70		= 230,
  21.171 -	SDLK_WORLD_71		= 231,
  21.172 -	SDLK_WORLD_72		= 232,
  21.173 -	SDLK_WORLD_73		= 233,
  21.174 -	SDLK_WORLD_74		= 234,
  21.175 -	SDLK_WORLD_75		= 235,
  21.176 -	SDLK_WORLD_76		= 236,
  21.177 -	SDLK_WORLD_77		= 237,
  21.178 -	SDLK_WORLD_78		= 238,
  21.179 -	SDLK_WORLD_79		= 239,
  21.180 -	SDLK_WORLD_80		= 240,
  21.181 -	SDLK_WORLD_81		= 241,
  21.182 -	SDLK_WORLD_82		= 242,
  21.183 -	SDLK_WORLD_83		= 243,
  21.184 -	SDLK_WORLD_84		= 244,
  21.185 -	SDLK_WORLD_85		= 245,
  21.186 -	SDLK_WORLD_86		= 246,
  21.187 -	SDLK_WORLD_87		= 247,
  21.188 -	SDLK_WORLD_88		= 248,
  21.189 -	SDLK_WORLD_89		= 249,
  21.190 -	SDLK_WORLD_90		= 250,
  21.191 -	SDLK_WORLD_91		= 251,
  21.192 -	SDLK_WORLD_92		= 252,
  21.193 -	SDLK_WORLD_93		= 253,
  21.194 -	SDLK_WORLD_94		= 254,
  21.195 -	SDLK_WORLD_95		= 255,		/* 0xFF */
  21.196 +typedef enum
  21.197 +{
  21.198 +    /* The keyboard syms have been cleverly chosen to map to ASCII */
  21.199 +    SDLK_UNKNOWN = 0,
  21.200 +    SDLK_FIRST = 0,
  21.201 +    SDLK_BACKSPACE = 8,
  21.202 +    SDLK_TAB = 9,
  21.203 +    SDLK_CLEAR = 12,
  21.204 +    SDLK_RETURN = 13,
  21.205 +    SDLK_PAUSE = 19,
  21.206 +    SDLK_ESCAPE = 27,
  21.207 +    SDLK_SPACE = 32,
  21.208 +    SDLK_EXCLAIM = 33,
  21.209 +    SDLK_QUOTEDBL = 34,
  21.210 +    SDLK_HASH = 35,
  21.211 +    SDLK_DOLLAR = 36,
  21.212 +    SDLK_AMPERSAND = 38,
  21.213 +    SDLK_QUOTE = 39,
  21.214 +    SDLK_LEFTPAREN = 40,
  21.215 +    SDLK_RIGHTPAREN = 41,
  21.216 +    SDLK_ASTERISK = 42,
  21.217 +    SDLK_PLUS = 43,
  21.218 +    SDLK_COMMA = 44,
  21.219 +    SDLK_MINUS = 45,
  21.220 +    SDLK_PERIOD = 46,
  21.221 +    SDLK_SLASH = 47,
  21.222 +    SDLK_0 = 48,
  21.223 +    SDLK_1 = 49,
  21.224 +    SDLK_2 = 50,
  21.225 +    SDLK_3 = 51,
  21.226 +    SDLK_4 = 52,
  21.227 +    SDLK_5 = 53,
  21.228 +    SDLK_6 = 54,
  21.229 +    SDLK_7 = 55,
  21.230 +    SDLK_8 = 56,
  21.231 +    SDLK_9 = 57,
  21.232 +    SDLK_COLON = 58,
  21.233 +    SDLK_SEMICOLON = 59,
  21.234 +    SDLK_LESS = 60,
  21.235 +    SDLK_EQUALS = 61,
  21.236 +    SDLK_GREATER = 62,
  21.237 +    SDLK_QUESTION = 63,
  21.238 +    SDLK_AT = 64,
  21.239 +    /* 
  21.240 +       Skip uppercase letters
  21.241 +     */
  21.242 +    SDLK_LEFTBRACKET = 91,
  21.243 +    SDLK_BACKSLASH = 92,
  21.244 +    SDLK_RIGHTBRACKET = 93,
  21.245 +    SDLK_CARET = 94,
  21.246 +    SDLK_UNDERSCORE = 95,
  21.247 +    SDLK_BACKQUOTE = 96,
  21.248 +    SDLK_a = 97,
  21.249 +    SDLK_b = 98,
  21.250 +    SDLK_c = 99,
  21.251 +    SDLK_d = 100,
  21.252 +    SDLK_e = 101,
  21.253 +    SDLK_f = 102,
  21.254 +    SDLK_g = 103,
  21.255 +    SDLK_h = 104,
  21.256 +    SDLK_i = 105,
  21.257 +    SDLK_j = 106,
  21.258 +    SDLK_k = 107,
  21.259 +    SDLK_l = 108,
  21.260 +    SDLK_m = 109,
  21.261 +    SDLK_n = 110,
  21.262 +    SDLK_o = 111,
  21.263 +    SDLK_p = 112,
  21.264 +    SDLK_q = 113,
  21.265 +    SDLK_r = 114,
  21.266 +    SDLK_s = 115,
  21.267 +    SDLK_t = 116,
  21.268 +    SDLK_u = 117,
  21.269 +    SDLK_v = 118,
  21.270 +    SDLK_w = 119,
  21.271 +    SDLK_x = 120,
  21.272 +    SDLK_y = 121,
  21.273 +    SDLK_z = 122,
  21.274 +    SDLK_DELETE = 127,
  21.275 +    /* End of ASCII mapped keysyms */
  21.276  
  21.277 -	/* Numeric keypad */
  21.278 -	SDLK_KP0		= 256,
  21.279 -	SDLK_KP1		= 257,
  21.280 -	SDLK_KP2		= 258,
  21.281 -	SDLK_KP3		= 259,
  21.282 -	SDLK_KP4		= 260,
  21.283 -	SDLK_KP5		= 261,
  21.284 -	SDLK_KP6		= 262,
  21.285 -	SDLK_KP7		= 263,
  21.286 -	SDLK_KP8		= 264,
  21.287 -	SDLK_KP9		= 265,
  21.288 -	SDLK_KP_PERIOD		= 266,
  21.289 -	SDLK_KP_DIVIDE		= 267,
  21.290 -	SDLK_KP_MULTIPLY	= 268,
  21.291 -	SDLK_KP_MINUS		= 269,
  21.292 -	SDLK_KP_PLUS		= 270,
  21.293 -	SDLK_KP_ENTER		= 271,
  21.294 -	SDLK_KP_EQUALS		= 272,
  21.295 +    /* International keyboard syms */
  21.296 +    SDLK_WORLD_0 = 160,         /* 0xA0 */
  21.297 +    SDLK_WORLD_1 = 161,
  21.298 +    SDLK_WORLD_2 = 162,
  21.299 +    SDLK_WORLD_3 = 163,
  21.300 +    SDLK_WORLD_4 = 164,
  21.301 +    SDLK_WORLD_5 = 165,
  21.302 +    SDLK_WORLD_6 = 166,
  21.303 +    SDLK_WORLD_7 = 167,
  21.304 +    SDLK_WORLD_8 = 168,
  21.305 +    SDLK_WORLD_9 = 169,
  21.306 +    SDLK_WORLD_10 = 170,
  21.307 +    SDLK_WORLD_11 = 171,
  21.308 +    SDLK_WORLD_12 = 172,
  21.309 +    SDLK_WORLD_13 = 173,
  21.310 +    SDLK_WORLD_14 = 174,
  21.311 +    SDLK_WORLD_15 = 175,
  21.312 +    SDLK_WORLD_16 = 176,
  21.313 +    SDLK_WORLD_17 = 177,
  21.314 +    SDLK_WORLD_18 = 178,
  21.315 +    SDLK_WORLD_19 = 179,
  21.316 +    SDLK_WORLD_20 = 180,
  21.317 +    SDLK_WORLD_21 = 181,
  21.318 +    SDLK_WORLD_22 = 182,
  21.319 +    SDLK_WORLD_23 = 183,
  21.320 +    SDLK_WORLD_24 = 184,
  21.321 +    SDLK_WORLD_25 = 185,
  21.322 +    SDLK_WORLD_26 = 186,
  21.323 +    SDLK_WORLD_27 = 187,
  21.324 +    SDLK_WORLD_28 = 188,
  21.325 +    SDLK_WORLD_29 = 189,
  21.326 +    SDLK_WORLD_30 = 190,
  21.327 +    SDLK_WORLD_31 = 191,
  21.328 +    SDLK_WORLD_32 = 192,
  21.329 +    SDLK_WORLD_33 = 193,
  21.330 +    SDLK_WORLD_34 = 194,
  21.331 +    SDLK_WORLD_35 = 195,
  21.332 +    SDLK_WORLD_36 = 196,
  21.333 +    SDLK_WORLD_37 = 197,
  21.334 +    SDLK_WORLD_38 = 198,
  21.335 +    SDLK_WORLD_39 = 199,
  21.336 +    SDLK_WORLD_40 = 200,
  21.337 +    SDLK_WORLD_41 = 201,
  21.338 +    SDLK_WORLD_42 = 202,
  21.339 +    SDLK_WORLD_43 = 203,
  21.340 +    SDLK_WORLD_44 = 204,
  21.341 +    SDLK_WORLD_45 = 205,
  21.342 +    SDLK_WORLD_46 = 206,
  21.343 +    SDLK_WORLD_47 = 207,
  21.344 +    SDLK_WORLD_48 = 208,
  21.345 +    SDLK_WORLD_49 = 209,
  21.346 +    SDLK_WORLD_50 = 210,
  21.347 +    SDLK_WORLD_51 = 211,
  21.348 +    SDLK_WORLD_52 = 212,
  21.349 +    SDLK_WORLD_53 = 213,
  21.350 +    SDLK_WORLD_54 = 214,
  21.351 +    SDLK_WORLD_55 = 215,
  21.352 +    SDLK_WORLD_56 = 216,
  21.353 +    SDLK_WORLD_57 = 217,
  21.354 +    SDLK_WORLD_58 = 218,
  21.355 +    SDLK_WORLD_59 = 219,
  21.356 +    SDLK_WORLD_60 = 220,
  21.357 +    SDLK_WORLD_61 = 221,
  21.358 +    SDLK_WORLD_62 = 222,
  21.359 +    SDLK_WORLD_63 = 223,
  21.360 +    SDLK_WORLD_64 = 224,
  21.361 +    SDLK_WORLD_65 = 225,
  21.362 +    SDLK_WORLD_66 = 226,
  21.363 +    SDLK_WORLD_67 = 227,
  21.364 +    SDLK_WORLD_68 = 228,
  21.365 +    SDLK_WORLD_69 = 229,
  21.366 +    SDLK_WORLD_70 = 230,
  21.367 +    SDLK_WORLD_71 = 231,
  21.368 +    SDLK_WORLD_72 = 232,
  21.369 +    SDLK_WORLD_73 = 233,
  21.370 +    SDLK_WORLD_74 = 234,
  21.371 +    SDLK_WORLD_75 = 235,
  21.372 +    SDLK_WORLD_76 = 236,
  21.373 +    SDLK_WORLD_77 = 237,
  21.374 +    SDLK_WORLD_78 = 238,
  21.375 +    SDLK_WORLD_79 = 239,
  21.376 +    SDLK_WORLD_80 = 240,
  21.377 +    SDLK_WORLD_81 = 241,
  21.378 +    SDLK_WORLD_82 = 242,
  21.379 +    SDLK_WORLD_83 = 243,
  21.380 +    SDLK_WORLD_84 = 244,
  21.381 +    SDLK_WORLD_85 = 245,
  21.382 +    SDLK_WORLD_86 = 246,
  21.383 +    SDLK_WORLD_87 = 247,
  21.384 +    SDLK_WORLD_88 = 248,
  21.385 +    SDLK_WORLD_89 = 249,
  21.386 +    SDLK_WORLD_90 = 250,
  21.387 +    SDLK_WORLD_91 = 251,
  21.388 +    SDLK_WORLD_92 = 252,
  21.389 +    SDLK_WORLD_93 = 253,
  21.390 +    SDLK_WORLD_94 = 254,
  21.391 +    SDLK_WORLD_95 = 255,        /* 0xFF */
  21.392  
  21.393 -	/* Arrows + Home/End pad */
  21.394 -	SDLK_UP			= 273,
  21.395 -	SDLK_DOWN		= 274,
  21.396 -	SDLK_RIGHT		= 275,
  21.397 -	SDLK_LEFT		= 276,
  21.398 -	SDLK_INSERT		= 277,
  21.399 -	SDLK_HOME		= 278,
  21.400 -	SDLK_END		= 279,
  21.401 -	SDLK_PAGEUP		= 280,
  21.402 -	SDLK_PAGEDOWN		= 281,
  21.403 +    /* Numeric keypad */
  21.404 +    SDLK_KP0 = 256,
  21.405 +    SDLK_KP1 = 257,
  21.406 +    SDLK_KP2 = 258,
  21.407 +    SDLK_KP3 = 259,
  21.408 +    SDLK_KP4 = 260,
  21.409 +    SDLK_KP5 = 261,
  21.410 +    SDLK_KP6 = 262,
  21.411 +    SDLK_KP7 = 263,
  21.412 +    SDLK_KP8 = 264,
  21.413 +    SDLK_KP9 = 265,
  21.414 +    SDLK_KP_PERIOD = 266,
  21.415 +    SDLK_KP_DIVIDE = 267,
  21.416 +    SDLK_KP_MULTIPLY = 268,
  21.417 +    SDLK_KP_MINUS = 269,
  21.418 +    SDLK_KP_PLUS = 270,
  21.419 +    SDLK_KP_ENTER = 271,
  21.420 +    SDLK_KP_EQUALS = 272,
  21.421  
  21.422 -	/* Function keys */
  21.423 -	SDLK_F1			= 282,
  21.424 -	SDLK_F2			= 283,
  21.425 -	SDLK_F3			= 284,
  21.426 -	SDLK_F4			= 285,
  21.427 -	SDLK_F5			= 286,
  21.428 -	SDLK_F6			= 287,
  21.429 -	SDLK_F7			= 288,
  21.430 -	SDLK_F8			= 289,
  21.431 -	SDLK_F9			= 290,
  21.432 -	SDLK_F10		= 291,
  21.433 -	SDLK_F11		= 292,
  21.434 -	SDLK_F12		= 293,
  21.435 -	SDLK_F13		= 294,
  21.436 -	SDLK_F14		= 295,
  21.437 -	SDLK_F15		= 296,
  21.438 +    /* Arrows + Home/End pad */
  21.439 +    SDLK_UP = 273,
  21.440 +    SDLK_DOWN = 274,
  21.441 +    SDLK_RIGHT = 275,
  21.442 +    SDLK_LEFT = 276,
  21.443 +    SDLK_INSERT = 277,
  21.444 +    SDLK_HOME = 278,
  21.445 +    SDLK_END = 279,
  21.446 +    SDLK_PAGEUP = 280,
  21.447 +    SDLK_PAGEDOWN = 281,
  21.448  
  21.449 -	/* Key state modifier keys */
  21.450 -	SDLK_NUMLOCK		= 300,
  21.451 -	SDLK_CAPSLOCK		= 301,
  21.452 -	SDLK_SCROLLOCK		= 302,
  21.453 -	SDLK_RSHIFT		= 303,
  21.454 -	SDLK_LSHIFT		= 304,
  21.455 -	SDLK_RCTRL		= 305,
  21.456 -	SDLK_LCTRL		= 306,
  21.457 -	SDLK_RALT		= 307,
  21.458 -	SDLK_LALT		= 308,
  21.459 -	SDLK_RMETA		= 309,
  21.460 -	SDLK_LMETA		= 310,
  21.461 -	SDLK_LSUPER		= 311,		/* Left "Windows" key */
  21.462 -	SDLK_RSUPER		= 312,		/* Right "Windows" key */
  21.463 -	SDLK_MODE		= 313,		/* "Alt Gr" key */
  21.464 -	SDLK_COMPOSE		= 314,		/* Multi-key compose key */
  21.465 +    /* Function keys */
  21.466 +    SDLK_F1 = 282,
  21.467 +    SDLK_F2 = 283,
  21.468 +    SDLK_F3 = 284,
  21.469 +    SDLK_F4 = 285,
  21.470 +    SDLK_F5 = 286,
  21.471 +    SDLK_F6 = 287,
  21.472 +    SDLK_F7 = 288,
  21.473 +    SDLK_F8 = 289,
  21.474 +    SDLK_F9 = 290,
  21.475 +    SDLK_F10 = 291,
  21.476 +    SDLK_F11 = 292,
  21.477 +    SDLK_F12 = 293,
  21.478 +    SDLK_F13 = 294,
  21.479 +    SDLK_F14 = 295,
  21.480 +    SDLK_F15 = 296,
  21.481  
  21.482 -	/* Miscellaneous function keys */
  21.483 -	SDLK_HELP		= 315,
  21.484 -	SDLK_PRINT		= 316,
  21.485 -	SDLK_SYSREQ		= 317,
  21.486 -	SDLK_BREAK		= 318,
  21.487 -	SDLK_MENU		= 319,
  21.488 -	SDLK_POWER		= 320,		/* Power Macintosh power key */
  21.489 -	SDLK_EURO		= 321,		/* Some european keyboards */
  21.490 -	SDLK_UNDO		= 322,		/* Atari keyboard has Undo */
  21.491 +    /* Key state modifier keys */
  21.492 +    SDLK_NUMLOCK = 300,
  21.493 +    SDLK_CAPSLOCK = 301,
  21.494 +    SDLK_SCROLLOCK = 302,
  21.495 +    SDLK_RSHIFT = 303,
  21.496 +    SDLK_LSHIFT = 304,
  21.497 +    SDLK_RCTRL = 305,
  21.498 +    SDLK_LCTRL = 306,
  21.499 +    SDLK_RALT = 307,
  21.500 +    SDLK_LALT = 308,
  21.501 +    SDLK_RMETA = 309,
  21.502 +    SDLK_LMETA = 310,
  21.503 +    SDLK_LSUPER = 311,          /* Left "Windows" key */
  21.504 +    SDLK_RSUPER = 312,          /* Right "Windows" key */
  21.505 +    SDLK_MODE = 313,            /* "Alt Gr" key */
  21.506 +    SDLK_COMPOSE = 314,         /* Multi-key compose key */
  21.507  
  21.508 -	/* Add any other keys here */
  21.509 +    /* Miscellaneous function keys */
  21.510 +    SDLK_HELP = 315,
  21.511 +    SDLK_PRINT = 316,
  21.512 +    SDLK_SYSREQ = 317,
  21.513 +    SDLK_BREAK = 318,
  21.514 +    SDLK_MENU = 319,
  21.515 +    SDLK_POWER = 320,           /* Power Macintosh power key */
  21.516 +    SDLK_EURO = 321,            /* Some european keyboards */
  21.517 +    SDLK_UNDO = 322,            /* Atari keyboard has Undo */
  21.518  
  21.519 -	SDLK_LAST
  21.520 +    /* Add any other keys here */
  21.521 +
  21.522 +    SDLK_LAST
  21.523  } SDLKey;
  21.524  
  21.525  /* Enumeration of valid key mods (possibly OR'd together) */
  21.526 -typedef enum {
  21.527 -	KMOD_NONE  = 0x0000,
  21.528 -	KMOD_LSHIFT= 0x0001,
  21.529 -	KMOD_RSHIFT= 0x0002,
  21.530 -	KMOD_LCTRL = 0x0040,
  21.531 -	KMOD_RCTRL = 0x0080,
  21.532 -	KMOD_LALT  = 0x0100,
  21.533 -	KMOD_RALT  = 0x0200,
  21.534 -	KMOD_LMETA = 0x0400,
  21.535 -	KMOD_RMETA = 0x0800,
  21.536 -	KMOD_NUM   = 0x1000,
  21.537 -	KMOD_CAPS  = 0x2000,
  21.538 -	KMOD_MODE  = 0x4000,
  21.539 -	KMOD_RESERVED = 0x8000
  21.540 +typedef enum
  21.541 +{
  21.542 +    KMOD_NONE = 0x0000,
  21.543 +    KMOD_LSHIFT = 0x0001,
  21.544 +    KMOD_RSHIFT = 0x0002,
  21.545 +    KMOD_LCTRL = 0x0040,
  21.546 +    KMOD_RCTRL = 0x0080,
  21.547 +    KMOD_LALT = 0x0100,
  21.548 +    KMOD_RALT = 0x0200,
  21.549 +    KMOD_LMETA = 0x0400,
  21.550 +    KMOD_RMETA = 0x0800,
  21.551 +    KMOD_NUM = 0x1000,
  21.552 +    KMOD_CAPS = 0x2000,
  21.553 +    KMOD_MODE = 0x4000,
  21.554 +    KMOD_RESERVED = 0x8000
  21.555  } SDLMod;
  21.556  
  21.557  #define KMOD_CTRL	(KMOD_LCTRL|KMOD_RCTRL)
    22.1 --- a/include/SDL_loadso.h	Sun May 21 17:27:13 2006 +0000
    22.2 +++ b/include/SDL_loadso.h	Sun May 28 13:04:16 2006 +0000
    22.3 @@ -20,23 +20,24 @@
    22.4      slouken@libsdl.org
    22.5  */
    22.6  
    22.7 -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    22.8 -/* System dependent library loading routines                           */
    22.9 -
   22.10 -/* Some things to keep in mind:                                        
   22.11 -   - These functions only work on C function names.  Other languages may
   22.12 -     have name mangling and intrinsic language support that varies from
   22.13 -     compiler to compiler.
   22.14 -   - Make sure you declare your function pointers with the same calling
   22.15 -     convention as the actual library function.  Your code will crash
   22.16 -     mysteriously if you do not do this.
   22.17 -   - Avoid namespace collisions.  If you load a symbol from the library,
   22.18 -     it is not defined whether or not it goes into the global symbol
   22.19 -     namespace for the application.  If it does and it conflicts with
   22.20 -     symbols in your code or other shared libraries, you will not get
   22.21 -     the results you expect. :)
   22.22 -*/
   22.23 -
   22.24 +/**
   22.25 + * \file SDL_loadso.h
   22.26 + *
   22.27 + * System dependent library loading routines
   22.28 + *
   22.29 + * Some things to keep in mind:                                        
   22.30 + * - These functions only work on C function names.  Other languages may
   22.31 + *   have name mangling and intrinsic language support that varies from
   22.32 + *   compiler to compiler.
   22.33 + * - Make sure you declare your function pointers with the same calling
   22.34 + *   convention as the actual library function.  Your code will crash
   22.35 + *   mysteriously if you do not do this.
   22.36 + * - Avoid namespace collisions.  If you load a symbol from the library,
   22.37 + *   it is not defined whether or not it goes into the global symbol
   22.38 + *   namespace for the application.  If it does and it conflicts with
   22.39 + *   symbols in your code or other shared libraries, you will not get
   22.40 + *   the results you expect. :)
   22.41 + */
   22.42  
   22.43  #ifndef _SDL_loadso_h
   22.44  #define _SDL_loadso_h
   22.45 @@ -47,28 +48,35 @@
   22.46  #include "begin_code.h"
   22.47  /* Set up for C function definitions, even when using C++ */
   22.48  #ifdef __cplusplus
   22.49 +/* *INDENT-OFF* */
   22.50  extern "C" {
   22.51 +/* *INDENT-ON* */
   22.52  #endif
   22.53  
   22.54  /* This function dynamically loads a shared object and returns a pointer
   22.55   * to the object handle (or NULL if there was an error).
   22.56   * The 'sofile' parameter is a system dependent name of the object file.
   22.57   */
   22.58 -extern DECLSPEC void * SDLCALL SDL_LoadObject(const char *sofile);
   22.59 +extern DECLSPEC void *SDLCALL SDL_LoadObject (const char *sofile);
   22.60  
   22.61  /* Given an object handle, this function looks up the address of the
   22.62   * named function in the shared object and returns it.  This address
   22.63   * is no longer valid after calling SDL_UnloadObject().
   22.64   */
   22.65 -extern DECLSPEC void * SDLCALL SDL_LoadFunction(void *handle, const char *name);
   22.66 +extern DECLSPEC void *SDLCALL SDL_LoadFunction (void *handle,
   22.67 +                                                const char *name);
   22.68  
   22.69  /* Unload a shared object from memory */
   22.70 -extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
   22.71 +extern DECLSPEC void SDLCALL SDL_UnloadObject (void *handle);
   22.72  
   22.73  /* Ends C function definitions when using C++ */
   22.74  #ifdef __cplusplus
   22.75 +/* *INDENT-OFF* */
   22.76  }
   22.77 +/* *INDENT-ON* */
   22.78  #endif
   22.79  #include "close_code.h"
   22.80  
   22.81  #endif /* _SDL_loadso_h */
   22.82 +
   22.83 +/* vi: set ts=4 sw=4 expandtab: */
    23.1 --- a/include/SDL_main.h	Sun May 21 17:27:13 2006 +0000
    23.2 +++ b/include/SDL_main.h	Sun May 28 13:04:16 2006 +0000
    23.3 @@ -50,7 +50,7 @@
    23.4  #define main	SDL_main
    23.5  
    23.6  /* The prototype for the application's main() function */
    23.7 -extern C_LINKAGE int SDL_main(int argc, char *argv[]);
    23.8 +extern C_LINKAGE int SDL_main (int argc, char *argv[]);
    23.9  
   23.10  
   23.11  /* From the SDL library code -- needed for registering the app on Win32 */
   23.12 @@ -58,17 +58,22 @@
   23.13  
   23.14  #include "begin_code.h"
   23.15  #ifdef __cplusplus
   23.16 +/* *INDENT-OFF* */
   23.17  extern "C" {
   23.18 +/* *INDENT-ON* */
   23.19  #endif
   23.20  
   23.21  /* This should be called from your WinMain() function, if any */
   23.22 -extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst);
   23.23 +extern DECLSPEC void SDLCALL SDL_SetModuleHandle (void *hInst);
   23.24  /* This can also be called, but is no longer necessary */
   23.25 -extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst);
   23.26 +extern DECLSPEC int SDLCALL SDL_RegisterApp (char *name, Uint32 style,
   23.27 +                                             void *hInst);
   23.28  /* This can also be called, but is no longer necessary (SDL_Quit calls it) */
   23.29 -extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
   23.30 +extern DECLSPEC void SDLCALL SDL_UnregisterApp (void);
   23.31  #ifdef __cplusplus
   23.32 +/* *INDENT-OFF* */
   23.33  }
   23.34 +/* *INDENT-ON* */
   23.35  #endif
   23.36  #include "close_code.h"
   23.37  #endif
   23.38 @@ -78,17 +83,21 @@
   23.39  
   23.40  #include "begin_code.h"
   23.41  #ifdef __cplusplus
   23.42 +/* *INDENT-OFF* */
   23.43  extern "C" {
   23.44 +/* *INDENT-ON* */
   23.45  #endif
   23.46  
   23.47  /* Forward declaration so we don't need to include QuickDraw.h */
   23.48  struct QDGlobals;
   23.49  
   23.50  /* This should be called from your main() function, if any */
   23.51 -extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd);
   23.52 +extern DECLSPEC void SDLCALL SDL_InitQuickDraw (struct QDGlobals *the_qd);
   23.53  
   23.54  #ifdef __cplusplus
   23.55 +/* *INDENT-OFF* */
   23.56  }
   23.57 +/* *INDENT-ON* */
   23.58  #endif
   23.59  #include "close_code.h"
   23.60  #endif
   23.61 @@ -96,3 +105,5 @@
   23.62  #endif /* Need to redefine main()? */
   23.63  
   23.64  #endif /* _SDL_main_h */
   23.65 +
   23.66 +/* vi: set ts=4 sw=4 expandtab: */
    24.1 --- a/include/SDL_mouse.h	Sun May 21 17:27:13 2006 +0000
    24.2 +++ b/include/SDL_mouse.h	Sun May 28 13:04:16 2006 +0000
    24.3 @@ -20,7 +20,11 @@
    24.4      slouken@libsdl.org
    24.5  */
    24.6  
    24.7 -/* Include file for SDL mouse event handling */
    24.8 +/**
    24.9 + * \file SDL_mouse.h
   24.10 + *
   24.11 + * Include file for SDL mouse event handling
   24.12 + */
   24.13  
   24.14  #ifndef _SDL_mouse_h
   24.15  #define _SDL_mouse_h
   24.16 @@ -32,17 +36,20 @@
   24.17  #include "begin_code.h"
   24.18  /* Set up for C function definitions, even when using C++ */
   24.19  #ifdef __cplusplus
   24.20 +/* *INDENT-OFF* */
   24.21  extern "C" {
   24.22 +/* *INDENT-ON* */
   24.23  #endif
   24.24  
   24.25 -typedef struct WMcursor WMcursor;	/* Implementation dependent */
   24.26 -typedef struct SDL_Cursor {
   24.27 -	SDL_Rect area;			/* The area of the mouse cursor */
   24.28 -	Sint16 hot_x, hot_y;		/* The "tip" of the cursor */
   24.29 -	Uint8 *data;			/* B/W cursor data */
   24.30 -	Uint8 *mask;			/* B/W cursor mask */
   24.31 -	Uint8 *save[2];			/* Place to save cursor area */
   24.32 -	WMcursor *wm_cursor;		/* Window-manager cursor */
   24.33 +typedef struct WMcursor WMcursor;       /* Implementation dependent */
   24.34 +typedef struct SDL_Cursor
   24.35 +{
   24.36 +    SDL_Rect area;              /* The area of the mouse cursor */
   24.37 +    Sint16 hot_x, hot_y;        /* The "tip" of the cursor */
   24.38 +    Uint8 *data;                /* B/W cursor data */
   24.39 +    Uint8 *mask;                /* B/W cursor mask */
   24.40 +    Uint8 *save[2];             /* Place to save cursor area */
   24.41 +    WMcursor *wm_cursor;        /* Window-manager cursor */
   24.42  } SDL_Cursor;
   24.43  
   24.44  /* Function prototypes */
   24.45 @@ -52,7 +59,7 @@
   24.46   * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
   24.47   * current mouse cursor position.  You can pass NULL for either x or y.
   24.48   */
   24.49 -extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y);
   24.50 +extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState (int *x, int *y);
   24.51  
   24.52  /*
   24.53   * Retrieve the current state of the mouse.
   24.54 @@ -60,12 +67,12 @@
   24.55   * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
   24.56   * mouse deltas since the last call to SDL_GetRelativeMouseState().
   24.57   */
   24.58 -extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
   24.59 +extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState (int *x, int *y);
   24.60  
   24.61  /*
   24.62   * Set the position of the mouse cursor (generates a mouse motion event)
   24.63   */
   24.64 -extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
   24.65 +extern DECLSPEC void SDLCALL SDL_WarpMouse (Uint16 x, Uint16 y);
   24.66  
   24.67  /*
   24.68   * Create a cursor using the specified data and mask (in MSB format).
   24.69 @@ -80,25 +87,25 @@
   24.70   *
   24.71   * Cursors created with this function must be freed with SDL_FreeCursor().
   24.72   */
   24.73 -extern DECLSPEC SDL_Cursor * SDLCALL SDL_CreateCursor
   24.74 -		(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
   24.75 +extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor
   24.76 +    (Uint8 * data, Uint8 * mask, int w, int h, int hot_x, int hot_y);
   24.77  
   24.78  /*
   24.79   * Set the currently active cursor to the specified one.
   24.80   * If the cursor is currently visible, the change will be immediately 
   24.81   * represented on the display.
   24.82   */
   24.83 -extern DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor *cursor);
   24.84 +extern DECLSPEC void SDLCALL SDL_SetCursor (SDL_Cursor * cursor);
   24.85  
   24.86  /*
   24.87   * Returns the currently active cursor.
   24.88   */
   24.89 -extern DECLSPEC SDL_Cursor * SDLCALL SDL_GetCursor(void);
   24.90 +extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor (void);
   24.91  
   24.92  /*
   24.93   * Deallocates a cursor created with SDL_CreateCursor().
   24.94   */
   24.95 -extern DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor *cursor);
   24.96 +extern DECLSPEC void SDLCALL SDL_FreeCursor (SDL_Cursor * cursor);
   24.97  
   24.98  /*
   24.99   * Toggle whether or not the cursor is shown on the screen.
  24.100 @@ -107,7 +114,7 @@
  24.101   * before the call, or 0 if it was not.  You can query the current
  24.102   * state by passing a 'toggle' value of -1.
  24.103   */
  24.104 -extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle);
  24.105 +extern DECLSPEC int SDLCALL SDL_ShowCursor (int toggle);
  24.106  
  24.107  /* Used as a mask when testing buttons in buttonstate
  24.108     Button 1:	Left mouse button
  24.109 @@ -129,8 +136,12 @@
  24.110  
  24.111  /* Ends C function definitions when using C++ */
  24.112  #ifdef __cplusplus
  24.113 +/* *INDENT-OFF* */
  24.114  }
  24.115 +/* *INDENT-ON* */
  24.116  #endif
  24.117  #include "close_code.h"
  24.118  
  24.119  #endif /* _SDL_mouse_h */
  24.120 +
  24.121 +/* vi: set ts=4 sw=4 expandtab: */
    25.1 --- a/include/SDL_mutex.h	Sun May 21 17:27:13 2006 +0000
    25.2 +++ b/include/SDL_mutex.h	Sun May 28 13:04:16 2006 +0000
    25.3 @@ -23,10 +23,11 @@
    25.4  #ifndef _SDL_mutex_h
    25.5  #define _SDL_mutex_h
    25.6  
    25.7 -/* Functions to provide thread synchronization primitives
    25.8 -
    25.9 -	These are independent of the other SDL routines.
   25.10 -*/
   25.11 +/**
   25.12 + * \file SDL_mutex.h
   25.13 + *
   25.14 + * Functions to provide thread synchronization primitives
   25.15 + */
   25.16  
   25.17  #include "SDL_stdinc.h"
   25.18  #include "SDL_error.h"
   25.19 @@ -34,7 +35,9 @@
   25.20  #include "begin_code.h"
   25.21  /* Set up for C function definitions, even when using C++ */
   25.22  #ifdef __cplusplus
   25.23 +/* *INDENT-OFF* */
   25.24  extern "C" {
   25.25 +/* *INDENT-ON* */
   25.26  #endif
   25.27  
   25.28  /* Synchronization functions which can time out return this value
   25.29 @@ -55,21 +58,21 @@
   25.30  typedef struct SDL_mutex SDL_mutex;
   25.31  
   25.32  /* Create a mutex, initialized unlocked */
   25.33 -extern DECLSPEC SDL_mutex * SDLCALL SDL_CreateMutex(void);
   25.34 +extern DECLSPEC SDL_mutex *SDLCALL SDL_CreateMutex (void);
   25.35  
   25.36  /* Lock the mutex  (Returns 0, or -1 on error) */
   25.37  #define SDL_LockMutex(m)	SDL_mutexP(m)
   25.38 -extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex);
   25.39 +extern DECLSPEC int SDLCALL SDL_mutexP (SDL_mutex * mutex);
   25.40  
   25.41  /* Unlock the mutex  (Returns 0, or -1 on error)
   25.42     It is an error to unlock a mutex that has not been locked by
   25.43     the current thread, and doing so results in undefined behavior.
   25.44   */
   25.45  #define SDL_UnlockMutex(m)	SDL_mutexV(m)
   25.46 -extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex);
   25.47 +extern DECLSPEC int SDLCALL SDL_mutexV (SDL_mutex * mutex);
   25.48  
   25.49  /* Destroy a mutex */
   25.50 -extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex *mutex);
   25.51 +extern DECLSPEC void SDLCALL SDL_DestroyMutex (SDL_mutex * mutex);
   25.52  
   25.53  
   25.54  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
   25.55 @@ -81,21 +84,21 @@
   25.56  typedef struct SDL_semaphore SDL_sem;
   25.57  
   25.58  /* Create a semaphore, initialized with value, returns NULL on failure. */
   25.59 -extern DECLSPEC SDL_sem * SDLCALL SDL_CreateSemaphore(Uint32 initial_value);
   25.60 +extern DECLSPEC SDL_sem *SDLCALL SDL_CreateSemaphore (Uint32 initial_value);
   25.61  
   25.62  /* Destroy a semaphore */
   25.63 -extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem *sem);
   25.64 +extern DECLSPEC void SDLCALL SDL_DestroySemaphore (SDL_sem * sem);
   25.65  
   25.66  /* This function suspends the calling thread until the semaphore pointed 
   25.67   * to by sem has a positive count. It then atomically decreases the semaphore
   25.68   * count.
   25.69   */
   25.70 -extern DECLSPEC int SDLCALL SDL_SemWait(SDL_sem *sem);
   25.71 +extern DECLSPEC int SDLCALL SDL_SemWait (SDL_sem * sem);
   25.72  
   25.73  /* Non-blocking variant of SDL_SemWait(), returns 0 if the wait succeeds,
   25.74     SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error.
   25.75  */
   25.76 -extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem *sem);
   25.77 +extern DECLSPEC int SDLCALL SDL_SemTryWait (SDL_sem * sem);
   25.78  
   25.79  /* Variant of SDL_SemWait() with a timeout in milliseconds, returns 0 if
   25.80     the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in
   25.81 @@ -103,15 +106,15 @@
   25.82     On some platforms this function is implemented by looping with a delay
   25.83     of 1 ms, and so should be avoided if possible.
   25.84  */
   25.85 -extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem *sem, Uint32 ms);
   25.86 +extern DECLSPEC int SDLCALL SDL_SemWaitTimeout (SDL_sem * sem, Uint32 ms);
   25.87  
   25.88  /* Atomically increases the semaphore's count (not blocking), returns 0,
   25.89     or -1 on error.
   25.90   */
   25.91 -extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem *sem);
   25.92 +extern DECLSPEC int SDLCALL SDL_SemPost (SDL_sem * sem);
   25.93  
   25.94  /* Returns the current count of the semaphore */
   25.95 -extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem *sem);
   25.96 +extern DECLSPEC Uint32 SDLCALL SDL_SemValue (SDL_sem * sem);
   25.97  
   25.98  
   25.99  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  25.100 @@ -123,27 +126,27 @@
  25.101  typedef struct SDL_cond SDL_cond;
  25.102  
  25.103  /* Create a condition variable */
  25.104 -extern DECLSPEC SDL_cond * SDLCALL SDL_CreateCond(void);
  25.105 +extern DECLSPEC SDL_cond *SDLCALL SDL_CreateCond (void);
  25.106  
  25.107  /* Destroy a condition variable */
  25.108 -extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond *cond);
  25.109 +extern DECLSPEC void SDLCALL SDL_DestroyCond (SDL_cond * cond);
  25.110  
  25.111  /* Restart one of the threads that are waiting on the condition variable,
  25.112     returns 0 or -1 on error.
  25.113   */
  25.114 -extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond *cond);
  25.115 +extern DECLSPEC int SDLCALL SDL_CondSignal (SDL_cond * cond);
  25.116  
  25.117  /* Restart all threads that are waiting on the condition variable,
  25.118     returns 0 or -1 on error.
  25.119   */
  25.120 -extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond *cond);
  25.121 +extern DECLSPEC int SDLCALL SDL_CondBroadcast (SDL_cond * cond);
  25.122  
  25.123  /* Wait on the condition variable, unlocking the provided mutex.
  25.124     The mutex must be locked before entering this function!
  25.125     The mutex is re-locked once the condition variable is signaled.
  25.126     Returns 0 when it is signaled, or -1 on error.
  25.127   */
  25.128 -extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond *cond, SDL_mutex *mut);
  25.129 +extern DECLSPEC int SDLCALL SDL_CondWait (SDL_cond * cond, SDL_mutex * mut);
  25.130  
  25.131  /* Waits for at most 'ms' milliseconds, and returns 0 if the condition
  25.132     variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not
  25.133 @@ -151,12 +154,18 @@
  25.134     On some platforms this function is implemented by looping with a delay
  25.135     of 1 ms, and so should be avoided if possible.
  25.136  */
  25.137 -extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms);
  25.138 +extern DECLSPEC int SDLCALL SDL_CondWaitTimeout (SDL_cond * cond,
  25.139 +                                                 SDL_mutex * mutex,
  25.140 +                                                 Uint32 ms);
  25.141  
  25.142  /* Ends C function definitions when using C++ */
  25.143  #ifdef __cplusplus
  25.144 +/* *INDENT-OFF* */
  25.145  }
  25.146 +/* *INDENT-ON* */
  25.147  #endif
  25.148  #include "close_code.h"
  25.149  
  25.150  #endif /* _SDL_mutex_h */
  25.151 +
  25.152 +/* vi: set ts=4 sw=4 expandtab: */
    26.1 --- a/include/SDL_opengl.h	Sun May 21 17:27:13 2006 +0000
    26.2 +++ b/include/SDL_opengl.h	Sun May 28 13:04:16 2006 +0000
    26.3 @@ -20,29 +20,33 @@
    26.4      slouken@libsdl.org
    26.5  */
    26.6  
    26.7 -/* This is a simple file to encapsulate the OpenGL API headers */
    26.8 +/**
    26.9 + * \file SDL_opengl.h
   26.10 + *
   26.11 + * This is a simple file to encapsulate the OpenGL API headers
   26.12 + */
   26.13  
   26.14  #include "SDL_config.h"
   26.15  
   26.16  #ifdef __WIN32__
   26.17  #define WIN32_LEAN_AND_MEAN
   26.18  #ifndef NOMINMAX
   26.19 -#define NOMINMAX	/* Don't defined min() and max() */
   26.20 +#define NOMINMAX                /* Don't defined min() and max() */
   26.21  #endif
   26.22  #include <windows.h>
   26.23  #endif
   26.24  #ifndef NO_SDL_GLEXT
   26.25 -#define __glext_h_  /* Don't let gl.h include glext.h */
   26.26 +#define __glext_h_              /* Don't let gl.h include glext.h */
   26.27  #endif
   26.28  #if defined(__MACOSX__)
   26.29 -#include <OpenGL/gl.h>	/* Header File For The OpenGL Library */
   26.30 -#include <OpenGL/glu.h>	/* Header File For The GLU Library */
   26.31 +#include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
   26.32 +#include <OpenGL/glu.h>         /* Header File For The GLU Library */
   26.33  #elif defined(__MACOS__)
   26.34 -#include <gl.h>		/* Header File For The OpenGL Library */
   26.35 -#include <glu.h>	/* Header File For The GLU Library */
   26.36 +#include <gl.h>                 /* Header File For The OpenGL Library */
   26.37 +#include <glu.h>                /* Header File For The GLU Library */
   26.38  #else
   26.39 -#include <GL/gl.h>	/* Header File For The OpenGL Library */
   26.40 -#include <GL/glu.h>	/* Header File For The GLU Library */
   26.41 +#include <GL/gl.h>              /* Header File For The OpenGL Library */
   26.42 +#include <GL/glu.h>             /* Header File For The GLU Library */
   26.43  #endif
   26.44  #ifndef NO_SDL_GLEXT
   26.45  #undef __glext_h_
   26.46 @@ -57,7 +61,8 @@
   26.47  #define __glext_h_
   26.48  
   26.49  #ifdef __cplusplus
   26.50 -extern "C" {
   26.51 +extern "C"
   26.52 +{
   26.53  #endif
   26.54  
   26.55  /*
   26.56 @@ -3099,642 +3104,1247 @@
   26.57  #include <stddef.h>
   26.58  #ifndef GL_VERSION_2_0
   26.59  /* GL type for program/shader text */
   26.60 -typedef char GLchar;			/* native character */
   26.61 +    typedef char GLchar;        /* native character */
   26.62  #endif
   26.63  
   26.64  #ifndef GL_VERSION_1_5
   26.65  /* GL types for handling large vertex buffer objects */
   26.66 -typedef ptrdiff_t GLintptr;
   26.67 -typedef ptrdiff_t GLsizeiptr;
   26.68 +    typedef ptrdiff_t GLintptr;
   26.69 +    typedef ptrdiff_t GLsizeiptr;
   26.70  #endif
   26.71  
   26.72  #ifndef GL_ARB_vertex_buffer_object
   26.73  /* GL types for handling large vertex buffer objects */
   26.74 -typedef ptrdiff_t GLintptrARB;
   26.75 -typedef ptrdiff_t GLsizeiptrARB;
   26.76 +    typedef ptrdiff_t GLintptrARB;
   26.77 +    typedef ptrdiff_t GLsizeiptrARB;
   26.78  #endif
   26.79  
   26.80  #ifndef GL_ARB_shader_objects
   26.81  /* GL types for handling shader object handles and program/shader text */
   26.82 -typedef char GLcharARB;		/* native character */
   26.83 -typedef unsigned int GLhandleARB;	/* shader object handle */
   26.84 +    typedef char GLcharARB;     /* native character */
   26.85 +    typedef unsigned int GLhandleARB;   /* shader object handle */
   26.86  #endif
   26.87  
   26.88  /* GL types for "half" precision (s10e5) float data in host memory */
   26.89  #ifndef GL_ARB_half_float_pixel
   26.90 -typedef unsigned short GLhalfARB;
   26.91 +    typedef unsigned short GLhalfARB;
   26.92  #endif
   26.93  
   26.94  #ifndef GL_NV_half_float
   26.95 -typedef unsigned short GLhalfNV;
   26.96 +    typedef unsigned short GLhalfNV;
   26.97  #endif
   26.98  
   26.99  #ifndef GL_VERSION_1_2
  26.100  #define GL_VERSION_1_2 1
  26.101  #ifdef GL_GLEXT_PROTOTYPES
  26.102 -GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf);
  26.103 -GLAPI void APIENTRY glBlendEquation (GLenum);
  26.104 -GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *);
  26.105 -GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
  26.106 -GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum, const GLfloat *);
  26.107 -GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum, const GLint *);
  26.108 -GLAPI void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint, GLsizei);
  26.109 -GLAPI void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *);
  26.110 -GLAPI void APIENTRY glGetColorTableParameterfv (GLenum, GLenum, GLfloat *);
  26.111 -GLAPI void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *);
  26.112 -GLAPI void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  26.113 -GLAPI void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint, GLsizei);
  26.114 -GLAPI void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
  26.115 -GLAPI void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  26.116 -GLAPI void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat);
  26.117 -GLAPI void APIENTRY glConvolutionParameterfv (GLenum, GLenum, const GLfloat *);
  26.118 -GLAPI void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint);
  26.119 -GLAPI void APIENTRY glConvolutionParameteriv (GLenum, GLenum, const GLint *);
  26.120 -GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint, GLint, GLsizei);
  26.121 -GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei);
  26.122 -GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum, GLvoid *);
  26.123 -GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum, GLfloat *);
  26.124 -GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *);
  26.125 -GLAPI void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *);
  26.126 -GLAPI void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *);
  26.127 -GLAPI void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum, GLvoid *);
  26.128 -GLAPI void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *);
  26.129 -GLAPI void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *);
  26.130 -GLAPI void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum, GLvoid *);
  26.131 -GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *);
  26.132 -GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *);
  26.133 -GLAPI void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean);
  26.134 -GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean);
  26.135 -GLAPI void APIENTRY glResetHistogram (GLenum);
  26.136 -GLAPI void APIENTRY glResetMinmax (GLenum);
  26.137 -GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  26.138 -GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  26.139 -GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  26.140 -#endif /* GL_GLEXT_PROTOTYPES */
  26.141 -typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  26.142 -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
  26.143 -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  26.144 -typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
  26.145 -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  26.146 -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  26.147 -typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  26.148 -typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
  26.149 -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  26.150 -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  26.151 -typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
  26.152 -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
  26.153 -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
  26.154 -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
  26.155 -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
  26.156 -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  26.157 -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
  26.158 -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  26.159 -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  26.160 -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  26.161 -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
  26.162 -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  26.163 -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  26.164 -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
  26.165 -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
  26.166 -typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  26.167 -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  26.168 -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  26.169 -typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  26.170 -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  26.171 -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  26.172 -typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  26.173 -typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
  26.174 -typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
  26.175 -typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
  26.176 -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  26.177 -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  26.178 -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  26.179 +    GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf);
  26.180 +    GLAPI void APIENTRY glBlendEquation (GLenum);
  26.181 +    GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei,
  26.182 +                                             GLenum, const GLvoid *);
  26.183 +    GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum,
  26.184 +                                      const GLvoid *);
  26.185 +    GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum,
  26.186 +                                                 const GLfloat *);
  26.187 +    GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum,
  26.188 +                                                 const GLint *);
  26.189 +    GLAPI void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint,
  26.190 +                                          GLsizei);
  26.191 +    GLAPI void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *);
  26.192 +    GLAPI void APIENTRY glGetColorTableParameterfv (GLenum, GLenum,
  26.193 +                                                    GLfloat *);
  26.194 +    GLAPI void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *);
  26.195 +    GLAPI void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum,
  26.196 +                                         GLenum, const GLvoid *);
  26.197 +    GLAPI void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint,
  26.198 +                                             GLsizei);
  26.199 +    GLAPI void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei,
  26.200 +                                               GLenum, GLenum,
  26.201 +                                               const GLvoid *);
  26.202 +    GLAPI void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei,
  26.203 +                                               GLsizei, GLenum, GLenum,
  26.204 +                                               const GLvoid *);
  26.205 +    GLAPI void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat);
  26.206 +    GLAPI void APIENTRY glConvolutionParameterfv (GLenum, GLenum,
  26.207 +                                                  const GLfloat *);
  26.208 +    GLAPI void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint);
  26.209 +    GLAPI void APIENTRY glConvolutionParameteriv (GLenum, GLenum,
  26.210 +                                                  const GLint *);
  26.211 +    GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint,
  26.212 +                                                   GLint, GLsizei);
  26.213 +    GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint,
  26.214 +                                                   GLint, GLsizei, GLsizei);
  26.215 +    GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum,
  26.216 +                                                GLvoid *);
  26.217 +    GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum,
  26.218 +                                                     GLfloat *);
  26.219 +    GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *);
  26.220 +    GLAPI void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum,
  26.221 +                                              GLvoid *, GLvoid *, GLvoid *);
  26.222 +    GLAPI void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei,
  26.223 +                                             GLenum, GLenum, const GLvoid *,
  26.224 +                                             const GLvoid *);
  26.225 +    GLAPI void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum,
  26.226 +                                        GLvoid *);
  26.227 +    GLAPI void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *);
  26.228 +    GLAPI void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *);
  26.229 +    GLAPI void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum,
  26.230 +                                     GLvoid *);
  26.231 +    GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *);
  26.232 +    GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *);
  26.233 +    GLAPI void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean);
  26.234 +    GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean);
  26.235 +    GLAPI void APIENTRY glResetHistogram (GLenum);
  26.236 +    GLAPI void APIENTRY glResetMinmax (GLenum);
  26.237 +    GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei,
  26.238 +                                      GLsizei, GLint, GLenum, GLenum,
  26.239 +                                      const GLvoid *);
  26.240 +    GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint,
  26.241 +                                         GLsizei, GLsizei, GLsizei, GLenum,
  26.242 +                                         GLenum, const GLvoid *);
  26.243 +    GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint,
  26.244 +                                             GLint, GLint, GLint, GLsizei,
  26.245 +                                             GLsizei);
  26.246 +#endif                          /* GL_GLEXT_PROTOTYPES */
  26.247 +    typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red,
  26.248 +                                                  GLclampf green,
  26.249 +                                                  GLclampf blue,
  26.250 +                                                  GLclampf alpha);
  26.251 +    typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
  26.252 +    typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode,
  26.253 +                                                         GLuint start,
  26.254 +                                                         GLuint end,
  26.255 +                                                         GLsizei count,
  26.256 +                                                         GLenum type,
  26.257 +                                                         const GLvoid *
  26.258 +                                                         indices);
  26.259 +    typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target,
  26.260 +                                                  GLenum internalformat,
  26.261 +                                                  GLsizei width,
  26.262 +                                                  GLenum format, GLenum type,
  26.263 +                                                  const GLvoid * table);
  26.264 +    typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target,
  26.265 +                                                             GLenum pname,
  26.266 +                                                             const GLfloat *
  26.267 +                                                             params);
  26.268 +    typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target,
  26.269 +                                                             GLenum pname,
  26.270 +                                                             const GLint *
  26.271 +                                                             params);
  26.272 +    typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target,
  26.273 +                                                      GLenum internalformat,
  26.274 +                                                      GLint x, GLint y,
  26.275 +                                                      GLsizei width);
  26.276 +    typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target,
  26.277 +                                                     GLenum format,
  26.278 +                                                     GLenum type,
  26.279 +                                                     GLvoid * table);
  26.280 +    typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target,
  26.281 +                                                                GLenum pname,
  26.282 +                                                                GLfloat *
  26.283 +                                                                params);
  26.284 +    typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target,
  26.285 +                                                                GLenum pname,
  26.286 +                                                                GLint *
  26.287 +                                                                params);
  26.288 +    typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target,
  26.289 +                                                     GLsizei start,
  26.290 +                                                     GLsizei count,
  26.291 +                                                     GLenum format,
  26.292 +                                                     GLenum type,
  26.293 +                                                     const GLvoid * data);
  26.294 +    typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target,
  26.295 +                                                         GLsizei start,
  26.296 +                                                         GLint x, GLint y,
  26.297 +                                                         GLsizei width);
  26.298 +    typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target,
  26.299 +                                                           GLenum
  26.300 +                                                           internalformat,
  26.301 +                                                           GLsizei width,
  26.302 +                                                           GLenum format,
  26.303 +                                                           GLenum type,
  26.304 +                                                           const GLvoid *
  26.305 +                                                           image);
  26.306 +    typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target,
  26.307 +                                                           GLenum
  26.308 +                                                           internalformat,
  26.309 +                                                           GLsizei width,
  26.310 +                                                           GLsizei height,
  26.311 +                                                           GLenum format,
  26.312 +                                                           GLenum type,
  26.313 +                                                           const GLvoid *
  26.314 +                                                           image);
  26.315 +    typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target,
  26.316 +                                                             GLenum pname,
  26.317 +                                                             GLfloat params);
  26.318 +    typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target,
  26.319 +                                                              GLenum pname,
  26.320 +                                                              const GLfloat *
  26.321 +                                                              params);
  26.322 +    typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target,
  26.323 +                                                             GLenum pname,
  26.324 +                                                             GLint params);
  26.325 +    typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target,
  26.326 +                                                              GLenum pname,
  26.327 +                                                              const GLint *
  26.328 +                                                              params);
  26.329 +    typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target,
  26.330 +                                                               GLenum
  26.331 +                                                               internalformat,
  26.332 +                                                               GLint x,
  26.333 +                                                               GLint y,
  26.334 +                                                               GLsizei width);
  26.335 +    typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target,
  26.336 +                                                               GLenum
  26.337 +                                                               internalformat,
  26.338 +                                                               GLint x,
  26.339 +                                                               GLint y,
  26.340 +                                                               GLsizei width,
  26.341 +                                                               GLsizei
  26.342 +                                                               height);
  26.343 +    typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target,
  26.344 +                                                            GLenum format,
  26.345 +                                                            GLenum type,
  26.346 +                                                            GLvoid * image);
  26.347 +    typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum
  26.348 +                                                                 target,
  26.349 +                                                                 GLenum pname,
  26.350 +                                                                 GLfloat *
  26.351 +                                                                 params);
  26.352 +    typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum
  26.353 +                                                                 target,
  26.354 +                                                                 GLenum pname,
  26.355 +                                                                 GLint *
  26.356 +                                                                 params);
  26.357 +    typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target,
  26.358 +                                                          GLenum format,
  26.359 +                                                          GLenum type,
  26.360 +                                                          GLvoid * row,
  26.361 +                                                          GLvoid * column,
  26.362 +                                                          GLvoid * span);
  26.363 +    typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target,
  26.364 +                                                         GLenum
  26.365 +                                                         internalformat,
  26.366 +                                                         GLsizei width,
  26.367 +                                                         GLsizei height,
  26.368 +                                                         GLenum format,
  26.369 +                                                         GLenum type,
  26.370 +                                                         const GLvoid * row,
  26.371 +                                                         const GLvoid *
  26.372 +                                                         column);
  26.373 +    typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target,
  26.374 +                                                    GLboolean reset,
  26.375 +                                                    GLenum format,
  26.376 +                                                    GLenum type,
  26.377 +                                                    GLvoid * values);
  26.378 +    typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target,
  26.379 +                                                               GLenum pname,
  26.380 +                                                               GLfloat *
  26.381 +                                                               params);
  26.382 +    typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target,
  26.383 +                                                               GLenum pname,
  26.384 +                                                               GLint *
  26.385 +                                                               params);
  26.386 +    typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target,
  26.387 +                                                 GLboolean reset,
  26.388 +                                                 GLenum format, GLenum type,
  26.389 +                                                 GLvoid * values);
  26.390 +    typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target,
  26.391 +                                                            GLenum pname,
  26.392 +                                                            GLfloat * params);
  26.393 +    typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target,
  26.394 +                                                            GLenum pname,
  26.395 +                                                            GLint * params);
  26.396 +    typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width,
  26.397 +                                                 GLenum internalformat,
  26.398 +                                                 GLboolean sink);
  26.399 +    typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target,
  26.400 +                                              GLenum internalformat,
  26.401 +                                              GLboolean sink);
  26.402 +    typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
  26.403 +    typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
  26.404 +    typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level,
  26.405 +                                                  GLint internalformat,
  26.406 +                                                  GLsizei width,
  26.407 +                                                  GLsizei height,
  26.408 +                                                  GLsizei depth, GLint border,
  26.409 +                                                  GLenum format, GLenum type,
  26.410 +                                                  const GLvoid * pixels);
  26.411 +    typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target,
  26.412 +                                                     GLint level,
  26.413 +                                                     GLint xoffset,
  26.414 +                                                     GLint yoffset,
  26.415 +                                                     GLint zoffset,
  26.416 +                                                     GLsizei width,
  26.417 +                                                     GLsizei height,
  26.418 +                                                     GLsizei depth,
  26.419 +                                                     GLenum format,
  26.420 +                                                     GLenum type,
  26.421 +                                                     const GLvoid * pixels);
  26.422 +    typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target,
  26.423 +                                                         GLint level,
  26.424 +                                                         GLint xoffset,
  26.425 +                                                         GLint yoffset,
  26.426 +                                                         GLint zoffset,
  26.427 +                                                         GLint x, GLint y,
  26.428 +                                                         GLsizei width,
  26.429 +                                                         GLsizei height);
  26.430  #endif
  26.431  
  26.432  #ifndef GL_VERSION_1_3
  26.433  #define GL_VERSION_1_3 1
  26.434  #ifdef GL_GLEXT_PROTOTYPES
  26.435 -GLAPI void APIENTRY glActiveTexture (GLenum);
  26.436 -GLAPI void APIENTRY glClientActiveTexture (GLenum);
  26.437 -GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble);
  26.438 -GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *);
  26.439 -GLAPI void APIENTRY glMultiTexCoord1f (GLenum, GLfloat);
  26.440 -GLAPI void APIENTRY glMultiTexCoord1fv (GLenum, const GLfloat *);
  26.441 -GLAPI void APIENTRY glMultiTexCoord1i (GLenum, GLint);
  26.442 -GLAPI void APIENTRY glMultiTexCoord1iv (GLenum, const GLint *);
  26.443 -GLAPI void APIENTRY glMultiTexCoord1s (GLenum, GLshort);
  26.444 -GLAPI void APIENTRY glMultiTexCoord1sv (GLenum, const GLshort *);
  26.445 -GLAPI void APIENTRY glMultiTexCoord2d (GLenum, GLdouble, GLdouble);
  26.446 -GLAPI void APIENTRY glMultiTexCoord2dv (GLenum, const GLdouble *);
  26.447 -GLAPI void APIENTRY glMultiTexCoord2f (GLenum, GLfloat, GLfloat);
  26.448 -GLAPI void APIENTRY glMultiTexCoord2fv (GLenum, const GLfloat *);
  26.449 -GLAPI void APIENTRY glMultiTexCoord2i (GLenum, GLint, GLint);
  26.450 -GLAPI void APIENTRY glMultiTexCoord2iv (GLenum, const GLint *);
  26.451 -GLAPI void APIENTRY glMultiTexCoord2s (GLenum, GLshort, GLshort);
  26.452 -GLAPI void APIENTRY glMultiTexCoord2sv (GLenum, const GLshort *);
  26.453 -GLAPI void APIENTRY glMultiTexCoord3d (GLenum, GLdouble, GLdouble, GLdouble);
  26.454 -GLAPI void APIENTRY glMultiTexCoord3dv (GLenum, const GLdouble *);
  26.455 -GLAPI void APIENTRY glMultiTexCoord3f (GLenum, GLfloat, GLfloat, GLfloat);
  26.456 -GLAPI void APIENTRY glMultiTexCoord3fv (GLenum, const GLfloat *);
  26.457 -GLAPI void APIENTRY glMultiTexCoord3i (GLenum, GLint, GLint, GLint);
  26.458 -GLAPI void APIENTRY glMultiTexCoord3iv (GLenum, const GLint *);
  26.459 -GLAPI void APIENTRY glMultiTexCoord3s (GLenum, GLshort, GLshort, GLshort);
  26.460 -GLAPI void APIENTRY glMultiTexCoord3sv (GLenum, const GLshort *);
  26.461 -GLAPI void APIENTRY glMultiTexCoord4d (GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
  26.462 -GLAPI void APIENTRY glMultiTexCoord4dv (GLenum, const GLdouble *);
  26.463 -GLAPI void APIENTRY glMultiTexCoord4f (GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
  26.464 -GLAPI void APIENTRY glMultiTexCoord4fv (GLenum, const GLfloat *);
  26.465 -GLAPI void APIENTRY glMultiTexCoord4i (GLenum, GLint, GLint, GLint, GLint);
  26.466 -GLAPI void APIENTRY glMultiTexCoord4iv (GLenum, const GLint *);
  26.467 -GLAPI void APIENTRY glMultiTexCoord4s (GLenum, GLshort, GLshort, GLshort, GLshort);
  26.468 -GLAPI void APIENTRY glMultiTexCoord4sv (GLenum, const GLshort *);
  26.469 -GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *);
  26.470 -GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *);
  26.471 -GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *);
  26.472 -GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *);
  26.473 -GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean);
  26.474 -GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
  26.475 -GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
  26.476 -GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *);
  26.477 -GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
  26.478 -GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
  26.479 -GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *);
  26.480 -GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *);
  26.481 -#endif /* GL_GLEXT_PROTOTYPES */
  26.482 -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  26.483 -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
  26.484 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
  26.485 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
  26.486 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
  26.487 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
  26.488 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
  26.489 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
  26.490 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
  26.491 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
  26.492 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
  26.493 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
  26.494 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
  26.495 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
  26.496 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
  26.497 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
  26.498 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
  26.499 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
  26.500 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  26.501 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
  26.502 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  26.503 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
  26.504 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
  26.505 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
  26.506 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
  26.507 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
  26.508 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  26.509 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
  26.510 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  26.511 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
  26.512 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
  26.513 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
  26.514 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  26.515 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
  26.516 -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
  26.517 -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
  26.518 -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
  26.519 -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
  26.520 -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
  26.521 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  26.522 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  26.523 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  26.524 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  26.525 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  26.526 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  26.527 -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
  26.528 +    GLAPI void APIENTRY glActiveTexture (GLenum);
  26.529 +    GLAPI void APIENTRY glClientActiveTexture (GLenum);
  26.530 +    GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble);
  26.531 +    GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *);
  26.532 +    GLAPI void APIENTRY glMultiTexCoord1f (GLenum, GLfloat);
  26.533 +    GLAPI void APIENTRY glMultiTexCoord1fv (GLenum, const GLfloat *);
  26.534 +    GLAPI void APIENTRY glMultiTexCoord1i (GLenum, GLint);
  26.535 +    GLAPI void APIENTRY glMultiTexCoord1iv (GLenum, const GLint *);
  26.536 +    GLAPI void APIENTRY glMultiTexCoord1s (GLenum, GLshort);
  26.537 +    GLAPI void APIENTRY glMultiTexCoord1sv (GLenum, const GLshort *);
  26.538 +    GLAPI void APIENTRY glMultiTexCoord2d (GLenum, GLdouble, GLdouble);
  26.539 +    GLAPI void APIENTRY glMultiTexCoord2dv (GLenum, const GLdouble *);
  26.540 +    GLAPI void APIENTRY glMultiTexCoord2f (GLenum, GLfloat, GLfloat);
  26.541 +    GLAPI void APIENTRY glMultiTexCoord2fv (GLenum, const GLfloat *);
  26.542 +    GLAPI void APIENTRY glMultiTexCoord2i (GLenum, GLint, GLint);
  26.543 +    GLAPI void APIENTRY glMultiTexCoord2iv (GLenum, const GLint *);
  26.544 +    GLAPI void APIENTRY glMultiTexCoord2s (GLenum, GLshort, GLshort);
  26.545 +    GLAPI void APIENTRY glMultiTexCoord2sv (GLenum, const GLshort *);
  26.546 +    GLAPI void APIENTRY glMultiTexCoord3d (GLenum, GLdouble, GLdouble,
  26.547 +                                           GLdouble);
  26.548 +    GLAPI void APIENTRY glMultiTexCoord3dv (GLenum, const GLdouble *);
  26.549 +    GLAPI void APIENTRY glMultiTexCoord3f (GLenum, GLfloat, GLfloat, GLfloat);
  26.550 +    GLAPI void APIENTRY glMultiTexCoord3fv (GLenum, const GLfloat *);
  26.551 +    GLAPI void APIENTRY glMultiTexCoord3i (GLenum, GLint, GLint, GLint);
  26.552 +    GLAPI void APIENTRY glMultiTexCoord3iv (GLenum, const GLint *);
  26.553 +    GLAPI void APIENTRY glMultiTexCoord3s (GLenum, GLshort, GLshort, GLshort);
  26.554 +    GLAPI void APIENTRY glMultiTexCoord3sv (GLenum, const GLshort *);
  26.555 +    GLAPI void APIENTRY glMultiTexCoord4d (GLenum, GLdouble, GLdouble,
  26.556 +                                           GLdouble, GLdouble);
  26.557 +    GLAPI void APIENTRY glMultiTexCoord4dv (GLenum, const GLdouble *);
  26.558 +    GLAPI void APIENTRY glMultiTexCoord4f (GLenum, GLfloat, GLfloat, GLfloat,
  26.559 +                                           GLfloat);
  26.560 +    GLAPI void APIENTRY glMultiTexCoord4fv (GLenum, const GLfloat *);
  26.561 +    GLAPI void APIENTRY glMultiTexCoord4i (GLenum, GLint, GLint, GLint,
  26.562 +                                           GLint);
  26.563 +    GLAPI void APIENTRY glMultiTexCoord4iv (GLenum, const GLint *);
  26.564 +    GLAPI void APIENTRY glMultiTexCoord4s (GLenum, GLshort, GLshort, GLshort,
  26.565 +                                           GLshort);
  26.566 +    GLAPI void APIENTRY glMultiTexCoord4sv (GLenum, const GLshort *);
  26.567 +    GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *);
  26.568 +    GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *);
  26.569 +    GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *);
  26.570 +    GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *);
  26.571 +    GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean);
  26.572 +    GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum,
  26.573 +                                                GLsizei, GLsizei, GLsizei,
  26.574 +                                                GLint, GLsizei,
  26.575 +                                                const GLvoid *);
  26.576 +    GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum,
  26.577 +                                                GLsizei, GLsizei, GLint,
  26.578 +                                                GLsizei, const GLvoid *);
  26.579 +    GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum,
  26.580 +                                                GLsizei, GLint, GLsizei,
  26.581 +                                                const GLvoid *);
  26.582 +    GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint,
  26.583 +                                                   GLint, GLint, GLsizei,
  26.584 +                                                   GLsizei, GLsizei, GLenum,
  26.585 +                                                   GLsizei, const GLvoid *);
  26.586 +    GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint,
  26.587 +                                                   GLint, GLsizei, GLsizei,
  26.588 +                                                   GLenum, GLsizei,
  26.589 +                                                   const GLvoid *);
  26.590 +    GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint,
  26.591 +                                                   GLsizei, GLenum, GLsizei,
  26.592 +                                                   const GLvoid *);
  26.593 +    GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *);
  26.594 +#endif                          /* GL_GLEXT_PROTOTYPES */
  26.595 +    typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  26.596 +    typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
  26.597 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target,
  26.598 +                                                       GLdouble s);
  26.599 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target,
  26.600 +                                                        const GLdouble * v);
  26.601 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target,
  26.602 +                                                       GLfloat s);
  26.603 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target,
  26.604 +                                                        const GLfloat * v);
  26.605 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target,
  26.606 +                                                       GLint s);
  26.607 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target,
  26.608 +                                                        const GLint * v);
  26.609 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target,
  26.610 +                                                       GLshort s);
  26.611 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target,
  26.612 +                                                        const GLshort * v);
  26.613 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target,
  26.614 +                                                       GLdouble s,
  26.615 +                                                       GLdouble t);
  26.616 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target,
  26.617 +                                                        const GLdouble * v);
  26.618 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target,
  26.619 +                                                       GLfloat s, GLfloat t);
  26.620 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target,
  26.621 +                                                        const GLfloat * v);
  26.622 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s,
  26.623 +                                                       GLint t);
  26.624 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target,
  26.625 +                                                        const GLint * v);
  26.626 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target,
  26.627 +                                                       GLshort s, GLshort t);
  26.628 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target,
  26.629 +                                                        const GLshort * v);
  26.630 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target,
  26.631 +                                                       GLdouble s, GLdouble t,
  26.632 +                                                       GLdouble r);
  26.633 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target,
  26.634 +                                                        const GLdouble * v);
  26.635 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target,
  26.636 +                                                       GLfloat s, GLfloat t,
  26.637 +                                                       GLfloat r);
  26.638 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target,
  26.639 +                                                        const GLfloat * v);
  26.640 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s,
  26.641 +                                                       GLint t, GLint r);
  26.642 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target,
  26.643 +                                                        const GLint * v);
  26.644 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target,
  26.645 +                                                       GLshort s, GLshort t,
  26.646 +                                                       GLshort r);
  26.647 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target,
  26.648 +                                                        const GLshort * v);
  26.649 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target,
  26.650 +                                                       GLdouble s, GLdouble t,
  26.651 +                                                       GLdouble r,
  26.652 +                                                       GLdouble q);
  26.653 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target,
  26.654 +                                                        const GLdouble * v);
  26.655 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target,
  26.656 +                                                       GLfloat s, GLfloat t,
  26.657 +                                                       GLfloat r, GLfloat q);
  26.658 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target,
  26.659 +                                                        const GLfloat * v);
  26.660 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s,
  26.661 +                                                       GLint t, GLint r,
  26.662 +                                                       GLint q);
  26.663 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target,
  26.664 +                                                        const GLint * v);
  26.665 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target,
  26.666 +                                                       GLshort s, GLshort t,
  26.667 +                                                       GLshort r, GLshort q);
  26.668 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target,
  26.669 +                                                        const GLshort * v);
  26.670 +    typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *
  26.671 +                                                            m);
  26.672 +    typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *
  26.673 +                                                            m);
  26.674 +    typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *
  26.675 +                                                            m);
  26.676 +    typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *
  26.677 +                                                            m);
  26.678 +    typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value,
  26.679 +                                                      GLboolean invert);
  26.680 +    typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target,
  26.681 +                                                            GLint level,
  26.682 +                                                            GLenum
  26.683 +                                                            internalformat,
  26.684 +                                                            GLsizei width,
  26.685 +                                                            GLsizei height,
  26.686 +                                                            GLsizei depth,
  26.687 +                                                            GLint border,
  26.688 +                                                            GLsizei imageSize,
  26.689 +                                                            const GLvoid *
  26.690 +                                                            data);
  26.691 +    typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target,
  26.692 +                                                            GLint level,
  26.693 +                                                            GLenum
  26.694 +                                                            internalformat,
  26.695 +                                                            GLsizei width,
  26.696 +                                                            GLsizei height,
  26.697 +                                                            GLint border,
  26.698 +                                                            GLsizei imageSize,
  26.699 +                                                            const GLvoid *
  26.700 +                                                            data);
  26.701 +    typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target,
  26.702 +                                                            GLint level,
  26.703 +                                                            GLenum
  26.704 +                                                            internalformat,
  26.705 +                                                            GLsizei width,
  26.706 +                                                            GLint border,
  26.707 +                                                            GLsizei imageSize,
  26.708 +                                                            const GLvoid *
  26.709 +                                                            data);
  26.710 +    typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target,
  26.711 +                                                               GLint level,
  26.712 +                                                               GLint xoffset,
  26.713 +                                                               GLint yoffset,
  26.714 +                                                               GLint zoffset,
  26.715 +                                                               GLsizei width,
  26.716 +                                                               GLsizei height,
  26.717 +                                                               GLsizei depth,
  26.718 +                                                               GLenum format,
  26.719 +                                                               GLsizei
  26.720 +                                                               imageSize,
  26.721 +                                                               const GLvoid *
  26.722 +                                                               data);
  26.723 +    typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target,
  26.724 +                                                               GLint level,
  26.725 +                                                               GLint xoffset,
  26.726 +                                                               GLint yoffset,
  26.727 +                                                               GLsizei width,
  26.728 +                                                               GLsizei height,
  26.729 +                                                               GLenum format,
  26.730 +                                                               GLsizei
  26.731 +                                                               imageSize,
  26.732 +                                                               const GLvoid *
  26.733 +                                                               data);
  26.734 +    typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target,
  26.735 +                                                               GLint level,
  26.736 +                                                               GLint xoffset,
  26.737 +                                                               GLsizei width,
  26.738 +                                                               GLenum format,
  26.739 +                                                               GLsizei
  26.740 +                                                               imageSize,
  26.741 +                                                               const GLvoid *
  26.742 +                                                               data);
  26.743 +    typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target,
  26.744 +                                                             GLint level,
  26.745 +                                                             GLvoid * img);
  26.746  #endif
  26.747  
  26.748  #ifndef GL_VERSION_1_4
  26.749  #define GL_VERSION_1_4 1
  26.750  #ifdef GL_GLEXT_PROTOTYPES
  26.751 -GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum);
  26.752 -GLAPI void APIENTRY glFogCoordf (GLfloat);
  26.753 -GLAPI void APIENTRY glFogCoordfv (const GLfloat *);
  26.754 -GLAPI void APIENTRY glFogCoordd (GLdouble);
  26.755 -GLAPI void APIENTRY glFogCoorddv (const GLdouble *);
  26.756 -GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *);
  26.757 -GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *, GLsizei);
  26.758 -GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
  26.759 -GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat);
  26.760 -GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *);
  26.761 -GLAPI void APIENTRY glPointParameteri (GLenum, GLint);
  26.762 -GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *);
  26.763 -GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte);
  26.764 -GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *);
  26.765 -GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble);
  26.766 -GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *);
  26.767 -GLAPI void APIENTRY glSecondaryColor3f (GLfloat, GLfloat, GLfloat);
  26.768 -GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *);
  26.769 -GLAPI void APIENTRY glSecondaryColor3i (GLint, GLint, GLint);
  26.770 -GLAPI void APIENTRY glSecondaryColor3iv (const GLint *);
  26.771 -GLAPI void APIENTRY glSecondaryColor3s (GLshort, GLshort, GLshort);
  26.772 -GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *);
  26.773 -GLAPI void APIENTRY glSecondaryColor3ub (GLubyte, GLubyte, GLubyte);
  26.774 -GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *);
  26.775 -GLAPI void APIENTRY glSecondaryColor3ui (GLuint, GLuint, GLuint);
  26.776 -GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *);
  26.777 -GLAPI void APIENTRY glSecondaryColor3us (GLushort, GLushort, GLushort);
  26.778 -GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *);
  26.779 -GLAPI void APIENTRY glSecondaryColorPointer (GLint, GLenum, GLsizei, const GLvoid *);
  26.780 -GLAPI void APIENTRY glWindowPos2d (GLdouble, GLdouble);
  26.781 -GLAPI void APIENTRY glWindowPos2dv (const GLdouble *);
  26.782 -GLAPI void APIENTRY glWindowPos2f (GLfloat, GLfloat);
  26.783 -GLAPI void APIENTRY glWindowPos2fv (const GLfloat *);
  26.784 -GLAPI void APIENTRY glWindowPos2i (GLint, GLint);
  26.785 -GLAPI void APIENTRY glWindowPos2iv (const GLint *);
  26.786 -GLAPI void APIENTRY glWindowPos2s (GLshort, GLshort);
  26.787 -GLAPI void APIENTRY glWindowPos2sv (const GLshort *);
  26.788 -GLAPI void APIENTRY glWindowPos3d (GLdouble, GLdouble, GLdouble);
  26.789 -GLAPI void APIENTRY glWindowPos3dv (const GLdouble *);
  26.790 -GLAPI void APIENTRY glWindowPos3f (GLfloat, GLfloat, GLfloat);
  26.791 -GLAPI void APIENTRY glWindowPos3fv (const GLfloat *);
  26.792 -GLAPI void APIENTRY glWindowPos3i (GLint, GLint, GLint);
  26.793 -GLAPI void APIENTRY glWindowPos3iv (const GLint *);
  26.794 -GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort);
  26.795 -GLAPI void APIENTRY glWindowPos3sv (const GLshort *);
  26.796 -#endif /* GL_GLEXT_PROTOTYPES */
  26.797 -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  26.798 -typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
  26.799 -typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
  26.800 -typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
  26.801 -typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
  26.802 -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
  26.803 -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
  26.804 -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  26.805 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
  26.806 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
  26.807 -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
  26.808 -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
  26.809 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
  26.810 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
  26.811 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
  26.812 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
  26.813 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
  26.814 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
  26.815 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
  26.816 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
  26.817 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
  26.818 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
  26.819 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
  26.820 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
  26.821 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
  26.822 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
  26.823 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
  26.824 -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
  26.825 -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  26.826 -typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
  26.827 -typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
  26.828 -typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
  26.829 -typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
  26.830 -typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
  26.831 -typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
  26.832 -typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
  26.833 -typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
  26.834 -typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
  26.835 -typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
  26.836 -typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
  26.837 -typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
  26.838 -typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
  26.839 -typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
  26.840 -typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
  26.841 -typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
  26.842 +    GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum);
  26.843 +    GLAPI void APIENTRY glFogCoordf (GLfloat);
  26.844 +    GLAPI void APIENTRY glFogCoordfv (const GLfloat *);
  26.845 +    GLAPI void APIENTRY glFogCoordd (GLdouble);
  26.846 +    GLAPI void APIENTRY glFogCoorddv (const GLdouble *);
  26.847 +    GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *);
  26.848 +    GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *,
  26.849 +                                           GLsizei);
  26.850 +    GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum,
  26.851 +                                             const GLvoid * *, GLsizei);
  26.852 +    GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat);
  26.853 +    GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *);
  26.854 +    GLAPI void APIENTRY glPointParameteri (GLenum, GLint);
  26.855 +    GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *);
  26.856 +    GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte);
  26.857 +    GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *);
  26.858 +    GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble);
  26.859 +    GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *);
  26.860 +    GLAPI void APIENTRY glSecondaryColor3f (GLfloat, GLfloat, GLfloat);
  26.861 +    GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *);
  26.862 +    GLAPI void APIENTRY glSecondaryColor3i (GLint, GLint, GLint);
  26.863 +    GLAPI void APIENTRY glSecondaryColor3iv (const GLint *);
  26.864 +    GLAPI void APIENTRY glSecondaryColor3s (GLshort, GLshort, GLshort);
  26.865 +    GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *);
  26.866 +    GLAPI void APIENTRY glSecondaryColor3ub (GLubyte, GLubyte, GLubyte);
  26.867 +    GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *);
  26.868 +    GLAPI void APIENTRY glSecondaryColor3ui (GLuint, GLuint, GLuint);
  26.869 +    GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *);
  26.870 +    GLAPI void APIENTRY glSecondaryColor3us (GLushort, GLushort, GLushort);
  26.871 +    GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *);
  26.872 +    GLAPI void APIENTRY glSecondaryColorPointer (GLint, GLenum, GLsizei,
  26.873 +                                                 const GLvoid *);
  26.874 +    GLAPI void APIENTRY glWindowPos2d (GLdouble, GLdouble);
  26.875 +    GLAPI void APIENTRY glWindowPos2dv (const GLdouble *);
  26.876 +    GLAPI void APIENTRY glWindowPos2f (GLfloat, GLfloat);
  26.877 +    GLAPI void APIENTRY glWindowPos2fv (const GLfloat *);
  26.878 +    GLAPI void APIENTRY glWindowPos2i (GLint, GLint);
  26.879 +    GLAPI void APIENTRY glWindowPos2iv (const GLint *);
  26.880 +    GLAPI void APIENTRY glWindowPos2s (GLshort, GLshort);
  26.881 +    GLAPI void APIENTRY glWindowPos2sv (const GLshort *);
  26.882 +    GLAPI void APIENTRY glWindowPos3d (GLdouble, GLdouble, GLdouble);
  26.883 +    GLAPI void APIENTRY glWindowPos3dv (const GLdouble *);
  26.884 +    GLAPI void APIENTRY glWindowPos3f (GLfloat, GLfloat, GLfloat);
  26.885 +    GLAPI void APIENTRY glWindowPos3fv (const GLfloat *);
  26.886 +    GLAPI void APIENTRY glWindowPos3i (GLint, GLint, GLint);
  26.887 +    GLAPI void APIENTRY glWindowPos3iv (const GLint *);
  26.888 +    GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort);
  26.889 +    GLAPI void APIENTRY glWindowPos3sv (const GLshort *);
  26.890 +#endif                          /* GL_GLEXT_PROTOTYPES */
  26.891 +    typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB,
  26.892 +                                                         GLenum dfactorRGB,
  26.893 +                                                         GLenum sfactorAlpha,
  26.894 +                                                         GLenum dfactorAlpha);
  26.895 +    typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
  26.896 +    typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat * coord);
  26.897 +    typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
  26.898 +    typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble * coord);
  26.899 +    typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type,
  26.900 +                                                       GLsizei stride,
  26.901 +                                                       const GLvoid *
  26.902 +                                                       pointer);
  26.903 +    typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode,
  26.904 +                                                       GLint * first,
  26.905 +                                                       GLsizei * count,
  26.906 +                                                       GLsizei primcount);
  26.907 +    typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode,
  26.908 +                                                         const GLsizei *
  26.909 +                                                         count, GLenum type,
  26.910 +                                                         const GLvoid *
  26.911 +                                                         *indices,
  26.912 +                                                         GLsizei primcount);
  26.913 +    typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname,
  26.914 +                                                       GLfloat param);
  26.915 +    typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname,
  26.916 +                                                        const GLfloat *
  26.917 +                                                        params);
  26.918 +    typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname,
  26.919 +                                                       GLint param);
  26.920 +    typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname,
  26.921 +                                                        const GLint * params);
  26.922 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red,
  26.923 +                                                        GLbyte green,
  26.924 +                                                        GLbyte blue);
  26.925 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte * v);
  26.926 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red,
  26.927 +                                                        GLdouble green,
  26.928 +                                                        GLdouble blue);
  26.929 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble * v);
  26.930 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red,
  26.931 +                                                        GLfloat green,
  26.932 +                                                        GLfloat blue);
  26.933 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat * v);
  26.934 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red,
  26.935 +                                                        GLint green,
  26.936 +                                                        GLint blue);
  26.937 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint * v);
  26.938 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red,
  26.939 +                                                        GLshort green,
  26.940 +                                                        GLshort blue);
  26.941 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort * v);
  26.942 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red,
  26.943 +                                                         GLubyte green,
  26.944 +                                                         GLubyte blue);
  26.945 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte * v);
  26.946 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red,
  26.947 +                                                         GLuint green,
  26.948 +                                                         GLuint blue);
  26.949 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint * v);
  26.950 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red,
  26.951 +                                                         GLushort green,
  26.952 +                                                         GLushort blue);
  26.953 +    typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort * v);
  26.954 +    typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size,
  26.955 +                                                             GLenum type,
  26.956 +                                                             GLsizei stride,
  26.957 +                                                             const GLvoid *
  26.958 +                                                             pointer);
  26.959 +    typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
  26.960 +    typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble * v);
  26.961 +    typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
  26.962 +    typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat * v);
  26.963 +    typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
  26.964 +    typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint * v);
  26.965 +    typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
  26.966 +    typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort * v);
  26.967 +    typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y,
  26.968 +                                                   GLdouble z);
  26.969 +    typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble * v);
  26.970 +    typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y,
  26.971 +                                                   GLfloat z);
  26.972 +    typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat * v);
  26.973 +    typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
  26.974 +    typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint * v);
  26.975 +    typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y,
  26.976 +                                                   GLshort z);
  26.977 +    typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort * v);
  26.978  #endif
  26.979  
  26.980  #ifndef GL_VERSION_1_5
  26.981  #define GL_VERSION_1_5 1
  26.982  #ifdef GL_GLEXT_PROTOTYPES
  26.983 -GLAPI void APIENTRY glGenQueries (GLsizei, GLuint *);
  26.984 -GLAPI void APIENTRY glDeleteQueries (GLsizei, const GLuint *);
  26.985 -GLAPI GLboolean APIENTRY glIsQuery (GLuint);
  26.986 -GLAPI void APIENTRY glBeginQuery (GLenum, GLuint);
  26.987 -GLAPI void APIENTRY glEndQuery (GLenum);
  26.988 -GLAPI void APIENTRY glGetQueryiv (GLenum, GLenum, GLint *);
  26.989 -GLAPI void APIENTRY glGetQueryObjectiv (GLuint, GLenum, GLint *);
  26.990 -GLAPI void APIENTRY glGetQueryObjectuiv (GLuint, GLenum, GLuint *);
  26.991 -GLAPI void APIENTRY glBindBuffer (GLenum, GLuint);
  26.992 -GLAPI void APIENTRY glDeleteBuffers (GLsizei, const GLuint *);
  26.993 -GLAPI void APIENTRY glGenBuffers (GLsizei, GLuint *);
  26.994 -GLAPI GLboolean APIENTRY glIsBuffer (GLuint);
  26.995 -GLAPI void APIENTRY glBufferData (GLenum, GLsizeiptr, const GLvoid *, GLenum);
  26.996 -GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr, const GLvoid *);
  26.997 -GLAPI void APIENTRY glGetBufferSubData (GLenum, GLintptr, GLsizeiptr, GLvoid *);
  26.998 -GLAPI GLvoid* APIENTRY glMapBuffer (GLenum, GLenum);
  26.999 -GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum);
 26.1000 -GLAPI void APIENTRY glGetBufferParameteriv (GLenum, GLenum, GLint *);
 26.1001 -GLAPI void APIENTRY glGetBufferPointerv (GLenum, GLenum, GLvoid* *);
 26.1002 -#endif /* GL_GLEXT_PROTOTYPES */
 26.1003 -typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
 26.1004 -typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
 26.1005 -typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
 26.1006 -typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
 26.1007 -typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
 26.1008 -typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
 26.1009 -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
 26.1010 -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
 26.1011 -typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
 26.1012 -typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
 26.1013 -typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
 26.1014 -typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
 26.1015 -typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
 26.1016 -typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
 26.1017 -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
 26.1018 -typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
 26.1019 -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
 26.1020 -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
 26.1021 -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
 26.1022 +    GLAPI void APIENTRY glGenQueries (GLsizei, GLuint *);
 26.1023 +    GLAPI void APIENTRY glDeleteQueries (GLsizei, const GLuint *);
 26.1024 +    GLAPI GLboolean APIENTRY glIsQuery (GLuint);
 26.1025 +    GLAPI void APIENTRY glBeginQuery (GLenum, GLuint);
 26.1026 +    GLAPI void APIENTRY glEndQuery (GLenum);
 26.1027 +    GLAPI void APIENTRY glGetQueryiv (GLenum, GLenum, GLint *);
 26.1028 +    GLAPI void APIENTRY glGetQueryObjectiv (GLuint, GLenum, GLint *);
 26.1029 +    GLAPI void APIENTRY glGetQueryObjectuiv (GLuint, GLenum, GLuint *);
 26.1030 +    GLAPI void APIENTRY glBindBuffer (GLenum, GLuint);
 26.1031 +    GLAPI void APIENTRY glDeleteBuffers (GLsizei, const GLuint *);
 26.1032 +    GLAPI void APIENTRY glGenBuffers (GLsizei, GLuint *);
 26.1033 +    GLAPI GLboolean APIENTRY glIsBuffer (GLuint);
 26.1034 +    GLAPI void APIENTRY glBufferData (GLenum, GLsizeiptr, const GLvoid *,
 26.1035 +                                      GLenum);
 26.1036 +    GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr,
 26.1037 +                                         const GLvoid *);
 26.1038 +    GLAPI void APIENTRY glGetBufferSubData (GLenum, GLintptr, GLsizeiptr,
 26.1039 +                                            GLvoid *);
 26.1040 +    GLAPI GLvoid *APIENTRY glMapBuffer (GLenum, GLenum);
 26.1041 +    GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum);
 26.1042 +    GLAPI void APIENTRY glGetBufferParameteriv (GLenum, GLenum, GLint *);
 26.1043 +    GLAPI void APIENTRY glGetBufferPointerv (GLenum, GLenum, GLvoid * *);
 26.1044 +#endif                          /* GL_GLEXT_PROTOTYPES */
 26.1045 +    typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint * ids);
 26.1046 +    typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n,
 26.1047 +                                                     const GLuint * ids);
 26.1048 +    typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
 26.1049 +    typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
 26.1050 +    typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
 26.1051 +    typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname,
 26.1052 +                                                  GLint * params);
 26.1053 +    typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id,
 26.1054 +                                                        GLenum pname,
 26.1055 +                                                        GLint * params);
 26.1056 +    typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id,
 26.1057 +                                                         GLenum pname,
 26.1058 +                                                         GLuint * params);
 26.1059 +    typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target,
 26.1060 +                                                  GLuint buffer);
 26.1061 +    typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n,
 26.1062 +                                                     const GLuint * buffers);
 26.1063 +    typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n,
 26.1064 +                                                  GLuint * buffers);
 26.1065 +    typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
 26.1066 +    typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target,
 26.1067 +                                                  GLsizeiptr size,
 26.1068 +                                                  const GLvoid * data,
 26.1069 +                                                  GLenum usage);
 26.1070 +    typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target,
 26.1071 +                                                     GLintptr offset,
 26.1072 +                                                     GLsizeiptr size,
 26.1073 +                                                     const GLvoid * data);
 26.1074 +    typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target,
 26.1075 +                                                        GLintptr offset,
 26.1076 +                                                        GLsizeiptr size,
 26.1077 +                                                        GLvoid * data);
 26.1078 +    typedef GLvoid *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target,
 26.1079 +                                                    GLenum access);
 26.1080 +    typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
 26.1081 +    typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target,
 26.1082 +                                                            GLenum pname,
 26.1083 +                                                            GLint * params);
 26.1084 +    typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target,
 26.1085 +                                                         GLenum pname,
 26.1086 +                                                         GLvoid * *params);
 26.1087  #endif
 26.1088  
 26.1089  #ifndef GL_VERSION_2_0
 26.1090  #define GL_VERSION_2_0 1
 26.1091  #ifdef GL_GLEXT_PROTOTYPES
 26.1092 -GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum);
 26.1093 -GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *);
 26.1094 -GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum);
 26.1095 -GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint);
 26.1096 -GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint);
 26.1097 -GLAPI void APIENTRY glAttachShader (GLuint, GLuint);
 26.1098 -GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *);
 26.1099 -GLAPI void APIENTRY glCompileShader (GLuint);
 26.1100 -GLAPI GLuint APIENTRY glCreateProgram (void);
 26.1101 -GLAPI GLuint APIENTRY glCreateShader (GLenum);
 26.1102 -GLAPI void APIENTRY glDeleteProgram (GLuint);
 26.1103 -GLAPI void APIENTRY glDeleteShader (GLuint);
 26.1104 -GLAPI void APIENTRY glDetachShader (GLuint, GLuint);
 26.1105 -GLAPI void APIENTRY glDisableVertexAttribArray (GLuint);
 26.1106 -GLAPI void APIENTRY glEnableVertexAttribArray (GLuint);
 26.1107 -GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
 26.1108 -GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
 26.1109 -GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *);
 26.1110 -GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *);
 26.1111 -GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *);
 26.1112 -GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
 26.1113 -GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *);
 26.1114 -GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
 26.1115 -GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *);
 26.1116 -GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *);
 26.1117 -GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *);
 26.1118 -GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *);
 26.1119 -GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *);
 26.1120 -GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *);
 26.1121 -GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *);
 26.1122 -GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *);
 26.1123 -GLAPI GLboolean APIENTRY glIsProgram (GLuint);
 26.1124 -GLAPI GLboolean APIENTRY glIsShader (GLuint);
 26.1125 -GLAPI void APIENTRY glLinkProgram (GLuint);
 26.1126 -GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *);
 26.1127 -GLAPI void APIENTRY glUseProgram (GLuint);
 26.1128 -GLAPI void APIENTRY glUniform1f (GLint, GLfloat);
 26.1129 -GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat);
 26.1130 -GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat);
 26.1131 -GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat);
 26.1132 -GLAPI void APIENTRY glUniform1i (GLint, GLint);
 26.1133 -GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint);
 26.1134 -GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint);
 26.1135 -GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint);
 26.1136 -GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *);
 26.1137 -GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *);
 26.1138 -GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *);
 26.1139 -GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *);
 26.1140 -GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *);
 26.1141 -GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *);
 26.1142 -GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *);
 26.1143 -GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *);
 26.1144 -GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *);
 26.1145 -GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *);
 26.1146 -GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *);
 26.1147 -GLAPI void APIENTRY glValidateProgram (GLuint);
 26.1148 -GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble);
 26.1149 -GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *);
 26.1150 -GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat);
 26.1151 -GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *);
 26.1152 -GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort);
 26.1153 -GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *);
 26.1154 -GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble);
 26.1155 -GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *);
 26.1156 -GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat);
 26.1157 -GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *);
 26.1158 -GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort);
 26.1159 -GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *);
 26.1160 -GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble);
 26.1161 -GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *);
 26.1162 -GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat);
 26.1163 -GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *);
 26.1164 -GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort);
 26.1165 -GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *);
 26.1166 -GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *);
 26.1167 -GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *);
 26.1168 -GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *);
 26.1169 -GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
 26.1170 -GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *);
 26.1171 -GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *);
 26.1172 -GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *);
 26.1173 -GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *);
 26.1174 -GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
 26.1175 -GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *);
 26.1176 -GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
 26.1177 -GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *);
 26.1178 -GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *);
 26.1179 -GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort);
 26.1180 -GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *);
 26.1181 -GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *);
 26.1182 -GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *);
 26.1183 -GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *);
 26.1184 -GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
 26.1185 -#endif /* GL_GLEXT_PROTOTYPES */
 26.1186 -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
 26.1187 -typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
 26.1188 -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
 26.1189 -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
 26.1190 -typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
 26.1191 -typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
 26.1192 -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
 26.1193 -typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
 26.1194 -typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
 26.1195 -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
 26.1196 -typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
 26.1197 -typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
 26.1198 -typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
 26.1199 -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
 26.1200 -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
 26.1201 -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
 26.1202 -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
 26.1203 -typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
 26.1204 -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
 26.1205 -typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
 26.1206 -typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
 26.1207 -typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
 26.1208 -typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
 26.1209 -typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
 26.1210 -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
 26.1211 -typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
 26.1212 -typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
 26.1213 -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
 26.1214 -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
 26.1215 -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
 26.1216 -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
 26.1217 -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
 26.1218 -typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
 26.1219 -typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
 26.1220 -typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
 26.1221 -typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
 26.1222 -typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
 26.1223 -typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
 26.1224 -typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
 26.1225 -typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
 26.1226 -typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
 26.1227 -typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
 26.1228 -typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
 26.1229 -typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
 26.1230 -typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
 26.1231 -typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
 26.1232 -typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
 26.1233 -typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
 26.1234 -typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
 26.1235 -typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
 26.1236 -typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
 26.1237 -typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
 26.1238 -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
 26.1239 -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
 26.1240 -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
 26.1241 -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
 26.1242 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
 26.1243 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
 26.1244 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
 26.1245 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
 26.1246 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
 26.1247 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
 26.1248 -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
 26.1249 -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
 26.1250 -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
 26.1251 -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
 26.1252 -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
 26.1253 -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
 26.1254 -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
 26.1255 -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
 26.1256 -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
 26.1257 -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
 26.1258 -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
 26.1259 -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
 26.1260 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
 26.1261 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
 26.1262 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
 26.1263 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
 26.1264 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
 26.1265 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
 26.1266 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
 26.1267 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
 26.1268 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
 26.1269 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
 26.1270 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
 26.1271 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
 26.1272 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
 26.1273 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
 26.1274 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
 26.1275 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
 26.1276 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
 26.1277 -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
 26.1278 -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
 26.1279 +    GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum);
 26.1280 +    GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *);
 26.1281 +    GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum);
 26.1282 +    GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint);
 26.1283 +    GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint);
 26.1284 +    GLAPI void APIENTRY glAttachShader (GLuint, GLuint);
 26.1285 +    GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *);
 26.1286 +    GLAPI void APIENTRY glCompileShader (GLuint);
 26.1287 +    GLAPI GLuint APIENTRY glCreateProgram (void);
 26.1288 +    GLAPI GLuint APIENTRY glCreateShader (GLenum);
 26.1289 +    GLAPI void APIENTRY glDeleteProgram (GLuint);
 26.1290 +    GLAPI void APIENTRY glDeleteShader (GLuint);
 26.1291 +    GLAPI void APIENTRY glDetachShader (GLuint, GLuint);
 26.1292 +    GLAPI void APIENTRY glDisableVertexAttribArray (GLuint);
 26.1293 +    GLAPI void APIENTRY glEnableVertexAttribArray (GLuint);
 26.1294 +    GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *,
 26.1295 +                                           GLint *, GLenum *, GLchar *);
 26.1296 +    GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei,
 26.1297 +                                            GLsizei *, GLint *, GLenum *,
 26.1298 +                                            GLchar *);
 26.1299 +    GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *,
 26.1300 +                                              GLuint *);
 26.1301 +    GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *);
 26.1302 +    GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *);
 26.1303 +    GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *,
 26.1304 +                                             GLchar *);
 26.1305 +    GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *);
 26.1306 +    GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *,
 26.1307 +                                            GLchar *);
 26.1308 +    GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *,
 26.1309 +                                           GLchar *);
 26.1310 +    GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *);
 26.1311 +    GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *);
 26.1312 +    GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *);
 26.1313 +    GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *);
 26.1314 +    GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *);
 26.1315 +    GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *);
 26.1316 +    GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum,
 26.1317 +                                                   GLvoid * *);
 26.1318 +    GLAPI GLboolean APIENTRY glIsProgram (GLuint);
 26.1319 +    GLAPI GLboolean APIENTRY glIsShader (GLuint);
 26.1320 +    GLAPI void APIENTRY glLinkProgram (GLuint);
 26.1321 +    GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar * *,
 26.1322 +                                        const GLint *);
 26.1323 +    GLAPI void APIENTRY glUseProgram (GLuint);
 26.1324 +    GLAPI void APIENTRY glUniform1f (GLint, GLfloat);
 26.1325 +    GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat);
 26.1326 +    GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat);
 26.1327 +    GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat,
 26.1328 +                                     GLfloat);
 26.1329 +    GLAPI void APIENTRY glUniform1i (GLint, GLint);
 26.1330 +    GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint);
 26.1331 +    GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint);
 26.1332 +    GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint);
 26.1333 +    GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *);
 26.1334 +    GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *);
 26.1335 +    GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *);
 26.1336 +    GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *);
 26.1337 +    GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *);
 26.1338 +    GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *);
 26.1339 +    GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *);
 26.1340 +    GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *);
 26.1341 +    GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean,
 26.1342 +                                            const GLfloat *);
 26.1343 +    GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean,
 26.1344 +                                            const GLfloat *);
 26.1345 +    GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean,
 26.1346 +                                            const GLfloat *);
 26.1347 +    GLAPI void APIENTRY glValidateProgram (GLuint);
 26.1348 +    GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble);
 26.1349 +    GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *);
 26.1350 +    GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat);
 26.1351 +    GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *);
 26.1352 +    GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort);
 26.1353 +    GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *);
 26.1354 +    GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble);
 26.1355 +    GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *);
 26.1356 +    GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat);
 26.1357 +    GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *);
 26.1358 +    GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort);
 26.1359 +    GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *);
 26.1360 +    GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble,
 26.1361 +                                          GLdouble);
 26.1362 +    GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *);
 26.1363 +    GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat);
 26.1364 +    GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *);
 26.1365 +    GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort);
 26.1366 +    GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *);
 26.1367 +    GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *);
 26.1368 +    GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *);
 26.1369 +    GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *);
 26.1370 +    GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte,
 26.1371 +                                            GLubyte);
 26.1372 +    GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *);
 26.1373 +    GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *);
 26.1374 +    GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *);
 26.1375 +    GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *);
 26.1376 +    GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble,
 26.1377 +                                          GLdouble, GLdouble);
 26.1378 +    GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *);
 26.1379 +    GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat,
 26.1380 +                                          GLfloat);
 26.1381 +    GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *);
 26.1382 +    GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *);
 26.1383 +    GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort,
 26.1384 +                                          GLshort);
 26.1385 +    GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *);
 26.1386 +    GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *);
 26.1387 +    GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *);
 26.1388 +    GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *);
 26.1389 +    GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum,
 26.1390 +                                               GLboolean, GLsizei,
 26.1391 +                                               const GLvoid *);
 26.1392 +#endif                          /* GL_GLEXT_PROTOTYPES */
 26.1393 +    typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB,
 26.1394 +                                                             GLenum
 26.1395 +                                                             modeAlpha);
 26.1396 +    typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n,
 26.1397 +                                                   const GLenum * bufs);
 26.1398 +    typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face,
 26.1399 +                                                         GLenum sfail,
 26.1400 +                                                         GLenum dpfail,
 26.1401 +                                                         GLenum dppass);
 26.1402 +    typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc,
 26.1403 +                                                           GLenum backfunc,
 26.1404 +                                                           GLint ref,
 26.1405 +                                                           GLuint mask);
 26.1406 +    typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face,
 26.1407 +                                                           GLuint mask);
 26.1408 +    typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program,
 26.1409 +                                                    GLuint shader);
 26.1410 +    typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program,
 26.1411 +                                                          GLuint index,
 26.1412 +                                                          const GLchar *
 26.1413 +                                                          name);
 26.1414 +    typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
 26.1415 +    typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
 26.1416 +    typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
 26.1417 +    typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
 26.1418 +    typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
 26.1419 +    typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program,
 26.1420 +                                                    GLuint shader);
 26.1421 +    typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
 26.1422 +    typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
 26.1423 +    typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program,
 26.1424 +                                                       GLuint index,
 26.1425 +                                                       GLsizei bufSize,
 26.1426 +                                                       GLsizei * length,
 26.1427 +                                                       GLint * size,
 26.1428 +                                                       GLenum * type,
 26.1429 +                                                       GLchar * name);
 26.1430 +    typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program,
 26.1431 +                                                        GLuint index,
 26.1432 +                                                        GLsizei bufSize,
 26.1433 +                                                        GLsizei * length,
 26.1434 +                                                        GLint * size,
 26.1435 +                                                        GLenum * type,
 26.1436 +                                                        GLchar * name);
 26.1437 +    typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program,
 26.1438 +                                                          GLsizei maxCount,
 26.1439 +                                                          GLsizei * count,
 26.1440 +                                                          GLuint * obj);
 26.1441 +    typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program,
 26.1442 +                                                          const GLchar *
 26.1443 +                                                          name);
 26.1444 +    typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program,
 26.1445 +                                                    GLenum pname,
 26.1446 +                                                    GLint * params);
 26.1447 +    typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program,
 26.1448 +                                                         GLsizei bufSize,
 26.1449 +                                                         GLsizei * length,
 26.1450 +                                                         GLchar * infoLog);
 26.1451 +    typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader,
 26.1452 +                                                   GLenum pname,
 26.1453 +                                                   GLint * params);
 26.1454 +    typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader,
 26.1455 +                                                        GLsizei bufSize,
 26.1456 +                                                        GLsizei * length,
 26.1457 +                                                        GLchar * infoLog);
 26.1458 +    typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader,
 26.1459 +                                                       GLsizei bufSize,
 26.1460 +                                                       GLsizei * length,
 26.1461 +                                                       GLchar * source);
 26.1462 +    typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program,
 26.1463 +                                                           const GLchar *
 26.1464 +                                                           name);
 26.1465 +    typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program,
 26.1466 +                                                    GLint location,
 26.1467 +                                                    GLfloat * params);
 26.1468 +    typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program,
 26.1469 +                                                    GLint location,
 26.1470 +                                                    GLint * params);
 26.1471 +    typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index,
 26.1472 +                                                         GLenum pname,
 26.1473 +                                                         GLdouble * params);
 26.1474 +    typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index,
 26.1475 +                                                         GLenum pname,
 26.1476 +                                                         GLfloat * params);
 26.1477 +    typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index,
 26.1478 +                                                         GLenum pname,
 26.1479 +                                                         GLint * params);
 26.1480 +    typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index,
 26.1481 +                                                               GLenum pname,
 26.1482 +                                                               GLvoid *
 26.1483 +                                                               *pointer);
 26.1484 +    typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
 26.1485 +    typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
 26.1486 +    typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
 26.1487 +    typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader,
 26.1488 +                                                    GLsizei count,
 26.1489 +                                                    const GLchar * *string,
 26.1490 +                                                    const GLint * length);
 26.1491 +    typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
 26.1492 +    typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
 26.1493 +    typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0,
 26.1494 +                                                 GLfloat v1);
 26.1495 +    typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0,
 26.1496 +                                                 GLfloat v1, GLfloat v2);
 26.1497 +    typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0,
 26.1498 +                                                 GLfloat v1, GLfloat v2,
 26.1499 +                                                 GLfloat v3);
 26.1500 +    typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
 26.1501 +    typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0,
 26.1502 +                                                 GLint v1);
 26.1503 +    typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0,
 26.1504 +                                                 GLint v1, GLint v2);
 26.1505 +    typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0,
 26.1506 +                                                 GLint v1, GLint v2,
 26.1507 +                                                 GLint v3);
 26.1508 +    typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location,
 26.1509 +                                                  GLsizei count,
 26.1510 +                                                  const GLfloat * value);
 26.1511 +    typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location,
 26.1512 +                                                  GLsizei count,
 26.1513 +                                                  const GLfloat * value);
 26.1514 +    typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location,
 26.1515 +                                                  GLsizei count,
 26.1516 +                                                  const GLfloat * value);
 26.1517 +    typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location,
 26.1518 +                                                  GLsizei count,
 26.1519 +                                                  const GLfloat * value);
 26.1520 +    typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location,
 26.1521 +                                                  GLsizei count,
 26.1522 +                                                  const GLint * value);
 26.1523 +    typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location,
 26.1524 +                                                  GLsizei count,
 26.1525 +                                                  const GLint * value);
 26.1526 +    typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location,
 26.1527 +                                                  GLsizei count,
 26.1528 +                                                  const GLint * value);
 26.1529 +    typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location,
 26.1530 +                                                  GLsizei count,
 26.1531 +                                                  const GLint * value);
 26.1532 +    typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location,
 26.1533 +                                                        GLsizei count,
 26.1534 +                                                        GLboolean transpose,
 26.1535 +                                                        const GLfloat *
 26.1536 +                                                        value);
 26.1537 +    typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location,
 26.1538 +                                                        GLsizei count,
 26.1539 +                                                        GLboolean transpose,
 26.1540 +                                                        const GLfloat *
 26.1541 +                                                        value);
 26.1542 +    typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location,
 26.1543 +                                                        GLsizei count,
 26.1544 +                                                        GLboolean transpose,
 26.1545 +                                                        const GLfloat *
 26.1546 +                                                        value);
 26.1547 +    typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
 26.1548 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index,
 26.1549 +                                                      GLdouble x);
 26.1550 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index,
 26.1551 +                                                       const GLdouble * v);
 26.1552 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index,
 26.1553 +                                                      GLfloat x);
 26.1554 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index,
 26.1555 +                                                       const GLfloat * v);
 26.1556 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index,
 26.1557 +                                                      GLshort x);
 26.1558 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index,
 26.1559 +                                                       const GLshort * v);
 26.1560 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index,
 26.1561 +                                                      GLdouble x, GLdouble y);
 26.1562 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index,
 26.1563 +                                                       const GLdouble * v);
 26.1564 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x,
 26.1565 +                                                      GLfloat y);
 26.1566 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index,
 26.1567 +                                                       const GLfloat * v);
 26.1568 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x,
 26.1569 +                                                      GLshort y);
 26.1570 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index,
 26.1571 +                                                       const GLshort * v);
 26.1572 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index,
 26.1573 +                                                      GLdouble x, GLdouble y,
 26.1574 +                                                      GLdouble z);
 26.1575 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index,
 26.1576 +                                                       const GLdouble * v);
 26.1577 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x,
 26.1578 +                                                      GLfloat y, GLfloat z);
 26.1579 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index,
 26.1580 +                                                       const GLfloat * v);
 26.1581 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x,
 26.1582 +                                                      GLshort y, GLshort z);
 26.1583 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index,
 26.1584 +                                                       const GLshort * v);
 26.1585 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index,
 26.1586 +                                                        const GLbyte * v);
 26.1587 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index,
 26.1588 +                                                        const GLint * v);
 26.1589 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index,
 26.1590 +                                                        const GLshort * v);
 26.1591 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index,
 26.1592 +                                                        GLubyte x, GLubyte y,
 26.1593 +                                                        GLubyte z, GLubyte w);
 26.1594 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index,
 26.1595 +                                                         const GLubyte * v);
 26.1596 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index,
 26.1597 +                                                         const GLuint * v);
 26.1598 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index,
 26.1599 +                                                         const GLushort * v);
 26.1600 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index,
 26.1601 +                                                       const GLbyte * v);
 26.1602 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index,
 26.1603 +                                                      GLdouble x, GLdouble y,
 26.1604 +                                                      GLdouble z, GLdouble w);
 26.1605 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index,
 26.1606 +                                                       const GLdouble * v);
 26.1607 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x,
 26.1608 +                                                      GLfloat y, GLfloat z,
 26.1609 +                                                      GLfloat w);
 26.1610 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index,
 26.1611 +                                                       const GLfloat * v);
 26.1612 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index,
 26.1613 +                                                       const GLint * v);
 26.1614 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x,
 26.1615 +                                                      GLshort y, GLshort z,
 26.1616 +                                                      GLshort w);
 26.1617 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index,
 26.1618 +                                                       const GLshort * v);
 26.1619 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index,
 26.1620 +                                                        const GLubyte * v);
 26.1621 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index,
 26.1622 +                                                        const GLuint * v);
 26.1623 +    typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index,
 26.1624 +                                                        const GLushort * v);
 26.1625 +    typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index,
 26.1626 +                                                           GLint size,
 26.1627 +                                                           GLenum type,
 26.1628 +                                                           GLboolean
 26.1629 +                                                           normalized,
 26.1630 +                                                           GLsizei stride,
 26.1631 +                                                           const GLvoid *
 26.1632 +                                                           pointer);
 26.1633  #endif
 26.1634  
 26.1635  #ifndef GL_ARB_multitexture
 26.1636  #define GL_ARB_multitexture 1
 26.1637  #ifdef GL_GLEXT_PROTOTYPES
 26.1638 -GLAPI void APIENTRY glActiveTextureARB (GLenum);
 26.1639 -GLAPI void APIENTRY glClientActiveTextureARB (GLenum);
 26.1640 -GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble);
 26.1641 -GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *);
 26.1642 -GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat);
 26.1643 -GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *);
 26.1644 -GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum, GLint);
 26.1645 -GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *);
 26.1646 -GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort);
 26.1647 -GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *);
 26.1648 -GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble);
 26.1649 -GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *);
 26.1650 -GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat);
 26.1651 -GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *);
 26.1652 -GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint);
 26.1653 -GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *);
 26.1654 -GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort);
 26.1655 -GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *);
 26.1656 -GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble, GLdouble);
 26.1657 -GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *);
 26.1658 -GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat, GLfloat);
 26.1659 -GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *);
 26.1660 -GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint);
 26.1661 -GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *);
 26.1662 -GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort, GLshort);
 26.1663 -GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *);
 26.1664 -GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
 26.1665 -GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *);
 26.1666 -GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
 26.1667 -GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *);
 26.1668 -GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint, GLint);
 26.1669 -GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *);
 26.1670 -GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort, GLshort, GLshort);
 26.1671 -GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *);
 26.1672 -#endif /* GL_GLEXT_PROTOTYPES */
 26.1673 -typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
 26.1674 -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
 26.1675 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
 26.1676 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
 26.1677 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
 26.1678 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
 26.1679 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
 26.1680 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
 26.1681 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
 26.1682 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
 26.1683 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
 26.1684 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
 26.1685 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
 26.1686 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
 26.1687 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
 26.1688 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
 26.1689 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
 26.1690 -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
 26.1691 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
 26.1692 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
 26.1693 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
 26.1694 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
 26.1695 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
 26.1696 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
 26.1697 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
 26.1698 -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
 26.1699 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
 26.1700 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
 26.1701 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
 26.1702 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
 26.1703 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
 26.1704 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
 26.1705 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
 26.1706 -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
 26.1707 +    GLAPI void APIENTRY glActiveTextureARB (GLenum);
 26.1708 +    GLAPI void APIENTRY glClientActiveTextureARB (GLenum);
 26.1709 +    GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble);
 26.1710 +    GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *);
 26.1711 +    GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat);
 26.1712 +    GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *);
 26.1713 +    GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum, GLint);
 26.1714 +    GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *);
 26.1715 +    GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort);
 26.1716 +    GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *);
 26.1717 +    GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble);
 26.1718 +    GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *);
 26.1719 +    GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat);
 26.1720 +    GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *);
 26.1721 +    GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint);
 26.1722 +    GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *);
 26.1723 +    GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort);
 26.1724 +    GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *);
 26.1725 +    GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble,
 26.1726 +                                              GLdouble);
 26.1727 +    GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *);
 26.1728 +    GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat,
 26.1729 +                                              GLfloat);
 26.1730 +    GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *);
 26.1731 +    GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint);
 26.1732 +    GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *);
 26.1733 +    GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort,
 26.1734 +                                              GLshort);
 26.1735 +    GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *);
 26.1736 +    GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble,
 26.1737 +                                              GLdouble, GLdouble);
 26.1738 +    GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *);
 26.1739 +    GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat,
 26.1740 +                                              GLfloat, GLfloat);
 26.1741 +    GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *);
 26.1742 +    GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint,
 26.1743 +                                              GLint);
 26.1744 +    GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *);
 26.1745 +    GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort,
 26.1746 +                                              GLshort, GLshort);
 26.1747 +    GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *);
 26.1748 +#endif                          /* GL_GLEXT_PROTOTYPES */
 26.1749 +    typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
 26.1750 +    typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
 26.1751 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target,
 26.1752 +                                                          GLdouble s);
 26.1753 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target,
 26.1754 +                                                           const GLdouble *
 26.1755 +                                                           v);
 26.1756 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target,
 26.1757 +                                                          GLfloat s);
 26.1758 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target,
 26.1759 +                                                           const GLfloat * v);
 26.1760 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target,
 26.1761 +                                                          GLint s);
 26.1762 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target,
 26.1763 +                                                           const GLint * v);
 26.1764 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target,
 26.1765 +                                                          GLshort s);
 26.1766 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target,
 26.1767 +                                                           const GLshort * v);
 26.1768 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target,
 26.1769 +                                                          GLdouble s,
 26.1770 +                                                          GLdouble t);
 26.1771 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target,
 26.1772 +                                                           const GLdouble *
 26.1773 +                                                           v);
 26.1774 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target,
 26.1775 +                                                          GLfloat s,
 26.1776 +                                                          GLfloat t);
 26.1777 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target,
 26.1778 +                                                           const GLfloat * v);
 26.1779 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target,
 26.1780 +                                                          GLint s, GLint t);
 26.1781 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target,
 26.1782 +                                                           const GLint * v);
 26.1783 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target,
 26.1784 +                                                          GLshort s,
 26.1785 +                                                          GLshort t);
 26.1786 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target,
 26.1787 +                                                           const GLshort * v);
 26.1788 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target,
 26.1789 +                                                          GLdouble s,
 26.1790 +                                                          GLdouble t,
 26.1791 +                                                          GLdouble r);
 26.1792 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target,
 26.1793 +                                                           const GLdouble *
 26.1794 +                                                           v);
 26.1795 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target,
 26.1796 +                                                          GLfloat s,
 26.1797 +                                                          GLfloat t,
 26.1798 +                                                          GLfloat r);
 26.1799 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target,
 26.1800 +                                                           const GLfloat * v);
 26.1801 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target,
 26.1802 +                                                          GLint s, GLint t,
 26.1803 +                                                          GLint r);
 26.1804 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target,
 26.1805 +                                                           const GLint * v);
 26.1806 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target,
 26.1807 +                                                          GLshort s,
 26.1808 +                                                          GLshort t,
 26.1809 +                                                          GLshort r);
 26.1810 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target,
 26.1811 +                                                           const GLshort * v);
 26.1812 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target,
 26.1813 +                                                          GLdouble s,
 26.1814 +                                                          GLdouble t,
 26.1815 +                                                          GLdouble r,
 26.1816 +                                                          GLdouble q);
 26.1817 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target,
 26.1818 +                                                           const GLdouble *
 26.1819 +                                                           v);
 26.1820 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target,
 26.1821 +                                                          GLfloat s,
 26.1822 +                                                          GLfloat t,
 26.1823 +                                                          GLfloat r,
 26.1824 +                                                          GLfloat q);
 26.1825 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target,
 26.1826 +                                                           const GLfloat * v);
 26.1827 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target,
 26.1828 +                                                          GLint s, GLint t,
 26.1829 +                                                          GLint r, GLint q);
 26.1830 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target,
 26.1831 +                                                           const GLint * v);
 26.1832 +    typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target,