mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@47 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
5097ff8d20
commit
0f7e6ed3a8
2
Makefile
2
Makefile
@ -16,7 +16,7 @@
|
||||
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
GLEW_TARGET ?= /usr
|
||||
GLEW_VERSION = 1.0.5
|
||||
GLEW_VERSION = 1.0.6
|
||||
|
||||
SYSTEM = $(strip $(shell uname -s))
|
||||
|
||||
|
71
build/vc6/glew.dsw
Normal file
71
build/vc6/glew.dsw
Normal file
@ -0,0 +1,71 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "glew"=.\glew_shared.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name glew_static
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "glew_static"=.\glew_static.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "glewinfo"=.\glewinfo.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name glew_static
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "wglinfo"=.\wglinfo.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
112
build/vc6/glew_shared.dsp
Normal file
112
build/vc6/glew_shared.dsp
Normal file
@ -0,0 +1,112 @@
|
||||
# Microsoft Developer Studio Project File - Name="glew_shared" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=glew_shared - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "glew_shared.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "glew_shared.mak" CFG="glew_shared - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "glew_shared - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "glew_shared - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "glew_shared - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "../../lib/shared"
|
||||
# PROP Intermediate_Dir "shared/release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GLEW_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /O2 /I "../../include" /D "WIN32" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRALEAN" /D "GLEW_BUILD" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
|
||||
# ADD LINK32 opengl32.lib /nologo /dll /machine:I386 /out:"../../lib/glew32.dll" /ignore:4089
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ELSEIF "$(CFG)" == "glew_shared - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "../../lib/shared"
|
||||
# PROP Intermediate_Dir "shared/debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GLEW_EXPORTS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Zi /Od /I "../../include" /D "WIN32" /D "WIN32_MEAN_AND_LEAN" /D "VC_EXTRALEAN" /D "GLEW_BUILD" /YX /FD /GZ /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 opengl32.lib /nologo /dll /incremental:no /debug /machine:I386 /out:"../../lib/glew32d.dll" /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "glew_shared - Win32 Release"
|
||||
# Name "glew_shared - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\src\glew.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\GL\glew.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\GL\wglew.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
104
build/vc6/glew_static.dsp
Normal file
104
build/vc6/glew_static.dsp
Normal file
@ -0,0 +1,104 @@
|
||||
# Microsoft Developer Studio Project File - Name="glew_static" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=glew_static - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "glew_static.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "glew_static.mak" CFG="glew_static - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "glew_static - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "glew_static - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "glew_static - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "../../lib/static"
|
||||
# PROP Intermediate_Dir "static/release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRALEAN" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"static/release/glew32.lib"
|
||||
|
||||
!ELSEIF "$(CFG)" == "glew_static - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "../../lib/static"
|
||||
# PROP Intermediate_Dir "static/debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"static/debug/glew32.lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "glew_static - Win32 Release"
|
||||
# Name "glew_static - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\src\glew.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\GL\glew.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\GL\wglew.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
95
build/vc6/glewinfo.dsp
Normal file
95
build/vc6/glewinfo.dsp
Normal file
@ -0,0 +1,95 @@
|
||||
# Microsoft Developer Studio Project File - Name="glewinfo" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=glewinfo - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "glewinfo.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "glewinfo.mak" CFG="glewinfo - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "glewinfo - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "glewinfo - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "glewinfo - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "../../bin"
|
||||
# PROP Intermediate_Dir "static/release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "WIN32_MEAN_AND_LEAN" /D "VC_EXTRALEAN" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 static/release/glew32.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "glewinfo - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "../../bin"
|
||||
# PROP Intermediate_Dir "static/debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /GX /Z7 /Od /I "../../include" /D "WIN32" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 ../../lib/glew32d.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"../../bin/glewinfod.exe" /pdbtype:sept
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "glewinfo - Win32 Release"
|
||||
# Name "glewinfo - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\src\glewinfo.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
95
build/vc6/wglinfo.dsp
Normal file
95
build/vc6/wglinfo.dsp
Normal file
@ -0,0 +1,95 @@
|
||||
# Microsoft Developer Studio Project File - Name="wglinfo" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=wglinfo - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "wglinfo.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "wglinfo.mak" CFG="wglinfo - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "wglinfo - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "wglinfo - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "wglinfo - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "../../bin"
|
||||
# PROP Intermediate_Dir "static/release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "WIN32_MEAN_AND_LEAN" /D "VC_EXTRALEAN" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 static/release/glew32.lib glu32.lib opengl32.lib gdi32.lib user32.lib kernel32.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "wglinfo - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "../../bin"
|
||||
# PROP Intermediate_Dir "static/debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /GX /Z7 /Od /I "../../include" /D "WIN32" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 glu32.lib opengl32.lib gdi32.lib user32.lib kernel32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"../../bin/wglinfod.exe" /pdbtype:sept
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "wglinfo - Win32 Release"
|
||||
# Name "wglinfo - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\src\wglinfo.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
502
doc/lgpl.txt
502
doc/lgpl.txt
@ -1,502 +0,0 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
@ -28,6 +28,8 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2003, 2002, Milan Ikits
|
||||
** Copyright (C) 2002, Lev Povalahev
|
||||
** All rights reserved.
|
||||
**
|
||||
@ -55,25 +57,6 @@
|
||||
** THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2002 Milan Ikits
|
||||
**
|
||||
** This library is free software; you can redistribute it and/or
|
||||
** modify it under the terms of the GNU Lesser General Public
|
||||
** License as published by the Free Software Foundation; either
|
||||
** version 2.1 of the License, or (at your option) any later version.
|
||||
**
|
||||
** This library is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** Lesser General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU Lesser General Public
|
||||
** License along with this library; if not, write to the Free Software
|
||||
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __glew_h__
|
||||
#define __glew_h__
|
||||
|
||||
@ -193,6 +176,7 @@ extern "C" {
|
||||
#define GL_ARB_texture_env_dot3 1 /* (1.3) */
|
||||
#define GL_ARB_texture_mirrored_repeat 1 /* (1.4) */
|
||||
#define GL_ARB_transpose_matrix 1 /* (1.3) */
|
||||
#define GL_ARB_vertex_buffer_object 1
|
||||
#define GL_ARB_vertex_blend 1
|
||||
#define GL_ARB_vertex_program 1
|
||||
#define GL_ARB_window_pos 1 /* (1.4) */
|
||||
@ -2120,6 +2104,71 @@ extern GLEW_EXPORT PFNGLMULTTRANSPOSEMATRIXDARBPROC glMultTransposeMatrixdARB;
|
||||
|
||||
#endif /* GL_ARB_transpose_matrix */
|
||||
|
||||
/* ---------------------- ARB_vertex_buffer_object ------------------------ */
|
||||
|
||||
#ifdef GL_ARB_vertex_buffer_object
|
||||
|
||||
#define GL_ARRAY_BUFFER_ARB 0x8892
|
||||
#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
|
||||
#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
|
||||
#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
|
||||
#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
|
||||
#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
|
||||
#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
|
||||
#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
|
||||
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
|
||||
#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
|
||||
#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
|
||||
#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
|
||||
#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
|
||||
#define GL_STREAM_DRAW_ARB 0x88E0
|
||||
#define GL_STREAM_READ_ARB 0x88E1
|
||||
#define GL_STREAM_COPY_ARB 0x88E2
|
||||
#define GL_STATIC_DRAW_ARB 0x88E4
|
||||
#define GL_STATIC_READ_ARB 0x88E5
|
||||
#define GL_STATIC_COPY_ARB 0x88E6
|
||||
#define GL_DYNAMIC_DRAW_ARB 0x88E8
|
||||
#define GL_DYNAMIC_READ_ARB 0x88E9
|
||||
#define GL_DYNAMIC_COPY_ARB 0x88EA
|
||||
#define GL_READ_ONLY_ARB 0x88B8
|
||||
#define GL_WRITE_ONLY_ARB 0x88B9
|
||||
#define GL_READ_WRITE_ARB 0x88BA
|
||||
#define GL_BUFFER_SIZE_ARB 0x8764
|
||||
#define GL_BUFFER_USAGE_ARB 0x8765
|
||||
#define GL_BUFFER_ACCESS_ARB 0x88BB
|
||||
#define GL_BUFFER_MAPPED_ARB 0x88BC
|
||||
#define GL_BUFFER_MAP_POINTER_ARB 0x88BD
|
||||
|
||||
typedef size_t GLsizeiptrARB;
|
||||
typedef size_t GLintptrARB;
|
||||
|
||||
typedef void (APIENTRY * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
|
||||
typedef void (APIENTRY * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
|
||||
typedef void (APIENTRY * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
|
||||
typedef GLboolean (APIENTRY * PFNGLISBUFFERARBPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
|
||||
typedef void (APIENTRY * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
|
||||
typedef void (APIENTRY * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
|
||||
typedef GLvoid * (APIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
|
||||
typedef GLboolean (APIENTRY * PFNGLUNMAPBUFFERARBPROC) (GLenum target);
|
||||
typedef void (APIENTRY * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRY * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid **params);
|
||||
|
||||
extern GLEW_EXPORT PFNGLBINDBUFFERARBPROC glBindBufferARB;
|
||||
extern GLEW_EXPORT PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB;
|
||||
extern GLEW_EXPORT PFNGLGENBUFFERSARBPROC glGenBuffersARB;
|
||||
extern GLEW_EXPORT PFNGLISBUFFERARBPROC glIsBufferARB;
|
||||
extern GLEW_EXPORT PFNGLBUFFERDATAARBPROC glBufferDataARB;
|
||||
extern GLEW_EXPORT PFNGLBUFFERSUBDATAARBPROC glBufferSubDataARB;
|
||||
extern GLEW_EXPORT PFNGLGETBUFFERSUBDATAARBPROC glGetBufferSubDataARB;
|
||||
extern GLEW_EXPORT PFNGLMAPBUFFERARBPROC glMapBufferARB;
|
||||
extern GLEW_EXPORT PFNGLUNMAPBUFFERARBPROC glUnmapBufferARB;
|
||||
extern GLEW_EXPORT PFNGLGETBUFFERPARAMETERIVARBPROC glGetBufferParameterivARB;
|
||||
extern GLEW_EXPORT PFNGLGETBUFFERPOINTERVARBPROC glGetBufferPointervARB;
|
||||
|
||||
#endif /* GL_ARB_vertex_buffer_object */
|
||||
|
||||
/* --------------------------- ARB_vertex_blend --------------------------- */
|
||||
|
||||
#ifdef GL_ARB_vertex_blend
|
||||
@ -3811,6 +3860,102 @@ extern GLEW_EXPORT PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC glGetProgramLocalParam
|
||||
|
||||
#define GL_HALF_FLOAT_NV 0x140B
|
||||
|
||||
typedef unsigned short GLhalf;
|
||||
|
||||
typedef void (APIENTRY * PFNGLVERTEX2HNVPROC) (GLhalf x, GLhalf y);
|
||||
typedef void (APIENTRY * PFNGLVERTEX2HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEX3HNVPROC) (GLhalf x, GLhalf y, GLhalf z);
|
||||
typedef void (APIENTRY * PFNGLVERTEX3HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEX4HNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w);
|
||||
typedef void (APIENTRY * PFNGLVERTEX4HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLNORMAL3HNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz);
|
||||
typedef void (APIENTRY * PFNGLNORMAL3HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLCOLOR3HNVPROC) (GLhalf red, GLhalf green, GLhalf blue);
|
||||
typedef void (APIENTRY * PFNGLCOLOR3HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLCOLOR4HNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha);
|
||||
typedef void (APIENTRY * PFNGLCOLOR4HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD1HNVPROC) (GLhalf s);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD1HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD2HNVPROC) (GLhalf s, GLhalf t);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD2HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD3HNVPROC) (GLhalf s, GLhalf t, GLhalf r);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD3HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD4HNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q);
|
||||
typedef void (APIENTRY * PFNGLTEXCOORD4HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalf s);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalf s, GLhalf t);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q);
|
||||
typedef void (APIENTRY * PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLFOGCOORDHNVPROC) (GLhalf fog);
|
||||
typedef void (APIENTRY * PFNGLFOGCOORDHVNVPROC) (const GLhalf *fog);
|
||||
typedef void (APIENTRY * PFNGLSECONDARYCOLOR3HNVPROC) (GLhalf red, GLhalf green, GLhalf blue);
|
||||
typedef void (APIENTRY * PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXWEIGHTHNVPROC) (GLhalf weight);
|
||||
typedef void (APIENTRY * PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalf *weight);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalf x);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalf x, GLhalf y);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalf *v);
|
||||
typedef void (APIENTRY * PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalf *v);
|
||||
|
||||
extern PFNGLVERTEX2HNVPROC glVertex2hNV;
|
||||
extern PFNGLVERTEX2HVNVPROC glVertex2hvNV;
|
||||
extern PFNGLVERTEX3HNVPROC glVertex3hNV;
|
||||
extern PFNGLVERTEX3HVNVPROC glVertex3hvNV;
|
||||
extern PFNGLVERTEX4HNVPROC glVertex4hNV;
|
||||
extern PFNGLVERTEX4HVNVPROC glVertex4hvNV;
|
||||
extern PFNGLNORMAL3HNVPROC glNormal3hNV;
|
||||
extern PFNGLNORMAL3HVNVPROC glNormal3hvNV;
|
||||
extern PFNGLCOLOR3HNVPROC glColor3hNV;
|
||||
extern PFNGLCOLOR3HVNVPROC glColor3hvNV;
|
||||
extern PFNGLCOLOR4HNVPROC glColor4hNV;
|
||||
extern PFNGLCOLOR4HVNVPROC glColor4hvNV;
|
||||
extern PFNGLTEXCOORD1HNVPROC glTexCoord1hNV;
|
||||
extern PFNGLTEXCOORD1HVNVPROC glTexCoord1hvNV;
|
||||
extern PFNGLTEXCOORD2HNVPROC glTexCoord2hNV;
|
||||
extern PFNGLTEXCOORD2HVNVPROC glTexCoord2hvNV;
|
||||
extern PFNGLTEXCOORD3HNVPROC glTexCoord3hNV;
|
||||
extern PFNGLTEXCOORD3HVNVPROC glTexCoord3hvNV;
|
||||
extern PFNGLTEXCOORD4HNVPROC glTexCoord4hNV;
|
||||
extern PFNGLTEXCOORD4HVNVPROC glTexCoord4hvNV;
|
||||
extern PFNGLMULTITEXCOORD1HNVPROC glMultiTexCoord1hNV;
|
||||
extern PFNGLMULTITEXCOORD1HVNVPROC glMultiTexCoord1hvNV;
|
||||
extern PFNGLMULTITEXCOORD2HNVPROC glMultiTexCoord2hNV;
|
||||
extern PFNGLMULTITEXCOORD2HVNVPROC glMultiTexCoord2hvNV;
|
||||
extern PFNGLMULTITEXCOORD3HNVPROC glMultiTexCoord3hNV;
|
||||
extern PFNGLMULTITEXCOORD3HVNVPROC glMultiTexCoord3hvNV;
|
||||
extern PFNGLMULTITEXCOORD4HNVPROC glMultiTexCoord4hNV;
|
||||
extern PFNGLMULTITEXCOORD4HVNVPROC glMultiTexCoord4hvNV;
|
||||
extern PFNGLFOGCOORDHNVPROC glFogCoordhNV;
|
||||
extern PFNGLFOGCOORDHVNVPROC glFogCoordhvNV;
|
||||
extern PFNGLSECONDARYCOLOR3HNVPROC glSecondaryColor3hNV;
|
||||
extern PFNGLSECONDARYCOLOR3HVNVPROC glSecondaryColor3hvNV;
|
||||
extern PFNGLVERTEXWEIGHTHNVPROC glVertexWeighthNV;
|
||||
extern PFNGLVERTEXWEIGHTHVNVPROC glVertexWeighthvNV;
|
||||
extern PFNGLVERTEXATTRIB1HNVPROC glVertexAttrib1hNV;
|
||||
extern PFNGLVERTEXATTRIB1HVNVPROC glVertexAttrib1hvNV;
|
||||
extern PFNGLVERTEXATTRIB2HNVPROC glVertexAttrib2hNV;
|
||||
extern PFNGLVERTEXATTRIB2HVNVPROC glVertexAttrib2hvNV;
|
||||
extern PFNGLVERTEXATTRIB3HNVPROC glVertexAttrib3hNV;
|
||||
extern PFNGLVERTEXATTRIB3HVNVPROC glVertexAttrib3hvNV;
|
||||
extern PFNGLVERTEXATTRIB4HNVPROC glVertexAttrib4hNV;
|
||||
extern PFNGLVERTEXATTRIB4HVNVPROC glVertexAttrib4hvNV;
|
||||
extern PFNGLVERTEXATTRIBS1HVNVPROC glVertexAttribs1hvNV;
|
||||
extern PFNGLVERTEXATTRIBS2HVNVPROC glVertexAttribs2hvNV;
|
||||
extern PFNGLVERTEXATTRIBS3HVNVPROC glVertexAttribs3hvNV;
|
||||
extern PFNGLVERTEXATTRIBS4HVNVPROC glVertexAttribs4hvNV;
|
||||
|
||||
#endif /* GL_NV_half_float */
|
||||
|
||||
/* ------------------------- NV_light_max_exponent ------------------------ */
|
||||
@ -4486,6 +4631,7 @@ struct GLEW
|
||||
unsigned int ARB_texture_mirrored_repeat : 1;
|
||||
unsigned int ARB_transpose_matrix : 1;
|
||||
unsigned int ARB_vertex_blend : 1;
|
||||
unsigned int ARB_vertex_buffer_object : 1;
|
||||
unsigned int ARB_vertex_program : 1;
|
||||
unsigned int ARB_window_pos : 1;
|
||||
|
||||
|
@ -19,21 +19,32 @@
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2002 Milan Ikits
|
||||
** Copyright (C) 2003, 2002, Milan Ikits
|
||||
** Copyright (C) 2002, Lev Povalahev
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are met:
|
||||
**
|
||||
** * Redistributions of source code must retain the above copyright notice,
|
||||
** this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright notice,
|
||||
** this list of conditions and the following disclaimer in the documentation
|
||||
** and/or other materials provided with the distribution.
|
||||
** * The name of the author may be used to endorse or promote products
|
||||
** derived from this software without specific prior written permission.
|
||||
**
|
||||
** This library is free software; you can redistribute it and/or
|
||||
** modify it under the terms of the GNU Lesser General Public
|
||||
** License as published by the Free Software Foundation; either
|
||||
** version 2.1 of the License, or (at your option) any later version.
|
||||
**
|
||||
** This library is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** Lesser General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU Lesser General Public
|
||||
** License along with this library; if not, write to the Free Software
|
||||
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
** THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef __glxew_h__
|
||||
|
@ -28,6 +28,8 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2003, 2002, Milan Ikits
|
||||
** Copyright (C) 2002, Lev Povalahev
|
||||
** All rights reserved.
|
||||
**
|
||||
@ -55,25 +57,6 @@
|
||||
** THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2002 Milan Ikits
|
||||
**
|
||||
** This library is free software; you can redistribute it and/or
|
||||
** modify it under the terms of the GNU Lesser General Public
|
||||
** License as published by the Free Software Foundation; either
|
||||
** version 2.1 of the License, or (at your option) any later version.
|
||||
**
|
||||
** This library is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** Lesser General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU Lesser General Public
|
||||
** License along with this library; if not, write to the Free Software
|
||||
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __wglew_h__
|
||||
#define __wglew_h__
|
||||
|
||||
|
212
src/glew.c
212
src/glew.c
@ -1,52 +1,6 @@
|
||||
/*
|
||||
** License Applicability. Except to the extent portions of this file are
|
||||
** made subject to an alternative license as permitted in the SGI Free
|
||||
** Software License B, Version 1.1 (the "License"), the contents of this
|
||||
** file are subject only to the provisions of the License. You may not use
|
||||
** this file except in compliance with the License. You may obtain a copy
|
||||
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
||||
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
||||
**
|
||||
** http://oss.sgi.com/projects/FreeB
|
||||
**
|
||||
** Note that, as provided in the License, the Software is distributed on an
|
||||
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
||||
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
||||
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
||||
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||
**
|
||||
** Original Code. The Original Code is: OpenGL Sample Implementation,
|
||||
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
||||
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
||||
** Copyright in any portions created by third parties is as indicated
|
||||
** elsewhere herein. All Rights Reserved.
|
||||
**
|
||||
** Additional Notice Provisions: This software was created using the
|
||||
** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
|
||||
** not been independently verified as being compliant with the OpenGL(R)
|
||||
** version 1.2.1 Specification.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The contents of this file are subject to the GLX Public License Version 1.0
|
||||
** (the "License"). You may not use this file except in compliance with the
|
||||
** License. You may obtain a copy of the License at Silicon Graphics, Inc.,
|
||||
** attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043
|
||||
** or at http://www.sgi.com/software/opensource/glx/license.html.
|
||||
**
|
||||
** Software distributed under the License is distributed on an "AS IS"
|
||||
** basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY
|
||||
** IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
|
||||
** PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific
|
||||
** language governing rights and limitations under the License.
|
||||
**
|
||||
** The Original Software is GLX version 1.2 source code, released February,
|
||||
** 1999. The developer of the Original Software is Silicon Graphics, Inc.
|
||||
** Those portions of the Subject Software created by Silicon Graphics, Inc.
|
||||
** are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2003, 2002, Milan Ikits
|
||||
** Copyright (C) 2002, Lev Povalahev
|
||||
** All rights reserved.
|
||||
**
|
||||
@ -74,25 +28,6 @@
|
||||
** THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2002 Milan Ikits
|
||||
**
|
||||
** This library is free software; you can redistribute it and/or
|
||||
** modify it under the terms of the GNU Lesser General Public
|
||||
** License as published by the Free Software Foundation; either
|
||||
** version 2.1 of the License, or (at your option) any later version.
|
||||
**
|
||||
** This library is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** Lesser General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU Lesser General Public
|
||||
** License along with this library; if not, write to the Free Software
|
||||
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <GL/glew.h>
|
||||
#include <GL/wglew.h>
|
||||
#include <GL/glxew.h>
|
||||
@ -612,6 +547,39 @@ static GLboolean _glewInit_ARB_vertex_blend ()
|
||||
}
|
||||
#endif /* GL_ARB_vertex_blend */
|
||||
|
||||
/* ---------------------- ARB_vertex_buffer_object ------------------------ */
|
||||
|
||||
#ifdef GL_ARB_vertex_buffer_object
|
||||
PFNGLBINDBUFFERARBPROC glBindBufferARB;
|
||||
PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB;
|
||||
PFNGLGENBUFFERSARBPROC glGenBuffersARB;
|
||||
PFNGLISBUFFERARBPROC glIsBufferARB;
|
||||
PFNGLBUFFERDATAARBPROC glBufferDataARB;
|
||||
PFNGLBUFFERSUBDATAARBPROC glBufferSubDataARB;
|
||||
PFNGLGETBUFFERSUBDATAARBPROC glGetBufferSubDataARB;
|
||||
PFNGLMAPBUFFERARBPROC glMapBufferARB;
|
||||
PFNGLUNMAPBUFFERARBPROC glUnmapBufferARB;
|
||||
PFNGLGETBUFFERPARAMETERIVARBPROC glGetBufferParameterivARB;
|
||||
PFNGLGETBUFFERPOINTERVARBPROC glGetBufferPointervARB;
|
||||
|
||||
static GLboolean _glewInit_ARB_vertex_buffer_object ()
|
||||
{
|
||||
GLboolean r = GL_FALSE;
|
||||
r = r || (glBindBufferARB = (PFNGLBINDBUFFERARBPROC)glewGetProcAddress("glBindBufferARB")) == NULL;
|
||||
r = r || (glDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)glewGetProcAddress("glDeleteBuffersARB")) == NULL;
|
||||
r = r || (glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)glewGetProcAddress("glGenBuffersARB")) == NULL;
|
||||
r = r || (glIsBufferARB = (PFNGLISBUFFERARBPROC)glewGetProcAddress("glIsBufferARB")) == NULL;
|
||||
r = r || (glBufferDataARB = (PFNGLBUFFERDATAARBPROC)glewGetProcAddress("glBufferDataARB")) == NULL;
|
||||
r = r || (glBufferSubDataARB = (PFNGLBUFFERSUBDATAARBPROC)glewGetProcAddress("glBufferSubDataARB")) == NULL;
|
||||
r = r || (glGetBufferSubDataARB = (PFNGLGETBUFFERSUBDATAARBPROC)glewGetProcAddress("glGetBufferSubDataARB")) == NULL;
|
||||
r = r || (glMapBufferARB = (PFNGLMAPBUFFERARBPROC)glewGetProcAddress("glMapBufferARB")) == NULL;
|
||||
r = r || (glUnmapBufferARB = (PFNGLUNMAPBUFFERARBPROC)glewGetProcAddress("glUnmapBufferARB")) == NULL;
|
||||
r = r || (glGetBufferParameterivARB = (PFNGLGETBUFFERPARAMETERIVARBPROC)glewGetProcAddress("glGetBufferParameterivARB")) == NULL;
|
||||
r = r || (glGetBufferPointervARB = (PFNGLGETBUFFERPOINTERVARBPROC)glewGetProcAddress("glGetBufferPointervARB")) == NULL;
|
||||
return r;
|
||||
}
|
||||
#endif /* GL_ARB_vertex_buffer_object */
|
||||
|
||||
/* -------------------------- ARB_vertex_program -------------------------- */
|
||||
|
||||
#ifdef GL_ARB_vertex_program
|
||||
@ -1526,6 +1494,109 @@ static GLboolean _glewInit_NV_fence ()
|
||||
}
|
||||
#endif /* GL_NV_fence */
|
||||
|
||||
/* ----------------------------- NV_half_float ---------------------------- */
|
||||
|
||||
#ifdef GL_NV_half_float
|
||||
PFNGLVERTEX2HNVPROC glVertex2hNV;
|
||||
PFNGLVERTEX2HVNVPROC glVertex2hvNV;
|
||||
PFNGLVERTEX3HNVPROC glVertex3hNV;
|
||||
PFNGLVERTEX3HVNVPROC glVertex3hvNV;
|
||||
PFNGLVERTEX4HNVPROC glVertex4hNV;
|
||||
PFNGLVERTEX4HVNVPROC glVertex4hvNV;
|
||||
PFNGLNORMAL3HNVPROC glNormal3hNV;
|
||||
PFNGLNORMAL3HVNVPROC glNormal3hvNV;
|
||||
PFNGLCOLOR3HNVPROC glColor3hNV;
|
||||
PFNGLCOLOR3HVNVPROC glColor3hvNV;
|
||||
PFNGLCOLOR4HNVPROC glColor4hNV;
|
||||
PFNGLCOLOR4HVNVPROC glColor4hvNV;
|
||||
PFNGLTEXCOORD1HNVPROC glTexCoord1hNV;
|
||||
PFNGLTEXCOORD1HVNVPROC glTexCoord1hvNV;
|
||||
PFNGLTEXCOORD2HNVPROC glTexCoord2hNV;
|
||||
PFNGLTEXCOORD2HVNVPROC glTexCoord2hvNV;
|
||||
PFNGLTEXCOORD3HNVPROC glTexCoord3hNV;
|
||||
PFNGLTEXCOORD3HVNVPROC glTexCoord3hvNV;
|
||||
PFNGLTEXCOORD4HNVPROC glTexCoord4hNV;
|
||||
PFNGLTEXCOORD4HVNVPROC glTexCoord4hvNV;
|
||||
PFNGLMULTITEXCOORD1HNVPROC glMultiTexCoord1hNV;
|
||||
PFNGLMULTITEXCOORD1HVNVPROC glMultiTexCoord1hvNV;
|
||||
PFNGLMULTITEXCOORD2HNVPROC glMultiTexCoord2hNV;
|
||||
PFNGLMULTITEXCOORD2HVNVPROC glMultiTexCoord2hvNV;
|
||||
PFNGLMULTITEXCOORD3HNVPROC glMultiTexCoord3hNV;
|
||||
PFNGLMULTITEXCOORD3HVNVPROC glMultiTexCoord3hvNV;
|
||||
PFNGLMULTITEXCOORD4HNVPROC glMultiTexCoord4hNV;
|
||||
PFNGLMULTITEXCOORD4HVNVPROC glMultiTexCoord4hvNV;
|
||||
PFNGLFOGCOORDHNVPROC glFogCoordhNV;
|
||||
PFNGLFOGCOORDHVNVPROC glFogCoordhvNV;
|
||||
PFNGLSECONDARYCOLOR3HNVPROC glSecondaryColor3hNV;
|
||||
PFNGLSECONDARYCOLOR3HVNVPROC glSecondaryColor3hvNV;
|
||||
PFNGLVERTEXWEIGHTHNVPROC glVertexWeighthNV;
|
||||
PFNGLVERTEXWEIGHTHVNVPROC glVertexWeighthvNV;
|
||||
PFNGLVERTEXATTRIB1HNVPROC glVertexAttrib1hNV;
|
||||
PFNGLVERTEXATTRIB1HVNVPROC glVertexAttrib1hvNV;
|
||||
PFNGLVERTEXATTRIB2HNVPROC glVertexAttrib2hNV;
|
||||
PFNGLVERTEXATTRIB2HVNVPROC glVertexAttrib2hvNV;
|
||||
PFNGLVERTEXATTRIB3HNVPROC glVertexAttrib3hNV;
|
||||
PFNGLVERTEXATTRIB3HVNVPROC glVertexAttrib3hvNV;
|
||||
PFNGLVERTEXATTRIB4HNVPROC glVertexAttrib4hNV;
|
||||
PFNGLVERTEXATTRIB4HVNVPROC glVertexAttrib4hvNV;
|
||||
PFNGLVERTEXATTRIBS1HVNVPROC glVertexAttribs1hvNV;
|
||||
PFNGLVERTEXATTRIBS2HVNVPROC glVertexAttribs2hvNV;
|
||||
PFNGLVERTEXATTRIBS3HVNVPROC glVertexAttribs3hvNV;
|
||||
PFNGLVERTEXATTRIBS4HVNVPROC glVertexAttribs4hvNV;
|
||||
|
||||
static GLboolean _glewInit_NV_half_float ()
|
||||
{
|
||||
GLboolean r = GL_FALSE;
|
||||
r = r || (glVertex2hNV = (PFNGLVERTEX2HNVPROC)glewGetProcAddress("glVertex2hNV")) == NULL;
|
||||
r = r || (glVertex2hvNV = (PFNGLVERTEX2HVNVPROC)glewGetProcAddress("glVertex2hvNV")) == NULL;
|
||||
r = r || (glVertex3hNV = (PFNGLVERTEX3HNVPROC)glewGetProcAddress("glVertex3hNV")) == NULL;
|
||||
r = r || (glVertex3hvNV = (PFNGLVERTEX3HVNVPROC)glewGetProcAddress("glVertex3hvNV")) == NULL;
|
||||
r = r || (glVertex4hNV = (PFNGLVERTEX4HNVPROC)glewGetProcAddress("glVertex4hNV")) == NULL;
|
||||
r = r || (glVertex4hvNV = (PFNGLVERTEX4HVNVPROC)glewGetProcAddress("glVertex4hvNV")) == NULL;
|
||||
r = r || (glNormal3hNV = (PFNGLNORMAL3HNVPROC)glewGetProcAddress("glNormal3hNV")) == NULL;
|
||||
r = r || (glNormal3hvNV = (PFNGLNORMAL3HVNVPROC)glewGetProcAddress("glNormal3hvNV")) == NULL;
|
||||
r = r || (glColor3hNV = (PFNGLCOLOR3HNVPROC)glewGetProcAddress("glColor3hNV")) == NULL;
|
||||
r = r || (glColor3hvNV = (PFNGLCOLOR3HVNVPROC)glewGetProcAddress("glColor3hvNV")) == NULL;
|
||||
r = r || (glColor4hNV = (PFNGLCOLOR4HNVPROC)glewGetProcAddress("glColor4hNV")) == NULL;
|
||||
r = r || (glColor4hvNV = (PFNGLCOLOR4HVNVPROC)glewGetProcAddress("glColor4hvNV")) == NULL;
|
||||
r = r || (glTexCoord1hNV = (PFNGLTEXCOORD1HNVPROC)glewGetProcAddress("glTexCoord1hNV")) == NULL;
|
||||
r = r || (glTexCoord1hvNV = (PFNGLTEXCOORD1HVNVPROC)glewGetProcAddress("glTexCoord1hvNV")) == NULL;
|
||||
r = r || (glTexCoord2hNV = (PFNGLTEXCOORD2HNVPROC)glewGetProcAddress("glTexCoord2hNV")) == NULL;
|
||||
r = r || (glTexCoord2hvNV = (PFNGLTEXCOORD2HVNVPROC)glewGetProcAddress("glTexCoord2hvNV")) == NULL;
|
||||
r = r || (glTexCoord3hNV = (PFNGLTEXCOORD3HNVPROC)glewGetProcAddress("glTexCoord3hNV")) == NULL;
|
||||
r = r || (glTexCoord3hvNV = (PFNGLTEXCOORD3HVNVPROC)glewGetProcAddress("glTexCoord3hvNV")) == NULL;
|
||||
r = r || (glTexCoord4hNV = (PFNGLTEXCOORD4HNVPROC)glewGetProcAddress("glTexCoord4hNV")) == NULL;
|
||||
r = r || (glTexCoord4hvNV = (PFNGLTEXCOORD4HVNVPROC)glewGetProcAddress("glTexCoord4hvNV")) == NULL;
|
||||
r = r || (glMultiTexCoord1hNV = (PFNGLMULTITEXCOORD1HNVPROC)glewGetProcAddress("glMultiTexCoord1hNV")) == NULL;
|
||||
r = r || (glMultiTexCoord1hvNV = (PFNGLMULTITEXCOORD1HVNVPROC)glewGetProcAddress("glMultiTexCoord1hvNV")) == NULL;
|
||||
r = r || (glMultiTexCoord2hNV = (PFNGLMULTITEXCOORD2HNVPROC)glewGetProcAddress("glMultiTexCoord2hNV")) == NULL;
|
||||
r = r || (glMultiTexCoord2hvNV = (PFNGLMULTITEXCOORD2HVNVPROC)glewGetProcAddress("glMultiTexCoord2hvNV")) == NULL;
|
||||
r = r || (glMultiTexCoord3hNV = (PFNGLMULTITEXCOORD3HNVPROC)glewGetProcAddress("glMultiTexCoord3hNV")) == NULL;
|
||||
r = r || (glMultiTexCoord3hvNV = (PFNGLMULTITEXCOORD3HVNVPROC)glewGetProcAddress("glMultiTexCoord3hvNV")) == NULL;
|
||||
r = r || (glMultiTexCoord4hNV = (PFNGLMULTITEXCOORD4HNVPROC)glewGetProcAddress("glMultiTexCoord4hNV")) == NULL;
|
||||
r = r || (glMultiTexCoord4hvNV = (PFNGLMULTITEXCOORD4HVNVPROC)glewGetProcAddress("glMultiTexCoord4hvNV")) == NULL;
|
||||
r = r || (glFogCoordhNV = (PFNGLFOGCOORDHNVPROC)glewGetProcAddress("glFogCoordhNV")) == NULL;
|
||||
r = r || (glFogCoordhvNV = (PFNGLFOGCOORDHVNVPROC)glewGetProcAddress("glFogCoordhvNV")) == NULL;
|
||||
r = r || (glSecondaryColor3hNV = (PFNGLSECONDARYCOLOR3HNVPROC)glewGetProcAddress("glSecondaryColor3hNV")) == NULL;
|
||||
r = r || (glSecondaryColor3hvNV = (PFNGLSECONDARYCOLOR3HVNVPROC)glewGetProcAddress("glSecondaryColor3hvNV")) == NULL;
|
||||
r = r || (glVertexWeighthNV = (PFNGLVERTEXWEIGHTHNVPROC)glewGetProcAddress("glVertexWeighthNV")) == NULL;
|
||||
r = r || (glVertexWeighthvNV = (PFNGLVERTEXWEIGHTHVNVPROC)glewGetProcAddress("glVertexWeighthvNV")) == NULL;
|
||||
r = r || (glVertexAttrib1hNV = (PFNGLVERTEXATTRIB1HNVPROC)glewGetProcAddress("glVertexAttrib1hNV")) == NULL;
|
||||
r = r || (glVertexAttrib1hvNV = (PFNGLVERTEXATTRIB1HVNVPROC)glewGetProcAddress("glVertexAttrib1hvNV")) == NULL;
|
||||
r = r || (glVertexAttrib2hNV = (PFNGLVERTEXATTRIB2HNVPROC)glewGetProcAddress("glVertexAttrib2hNV")) == NULL;
|
||||
r = r || (glVertexAttrib2hvNV = (PFNGLVERTEXATTRIB2HVNVPROC)glewGetProcAddress("glVertexAttrib2hvNV")) == NULL;
|
||||
r = r || (glVertexAttrib3hNV = (PFNGLVERTEXATTRIB3HNVPROC)glewGetProcAddress("glVertexAttrib3hNV")) == NULL;
|
||||
r = r || (glVertexAttrib3hvNV = (PFNGLVERTEXATTRIB3HVNVPROC)glewGetProcAddress("glVertexAttrib3hvNV")) == NULL;
|
||||
r = r || (glVertexAttrib4hNV = (PFNGLVERTEXATTRIB4HNVPROC)glewGetProcAddress("glVertexAttrib4hNV")) == NULL;
|
||||
r = r || (glVertexAttrib4hvNV = (PFNGLVERTEXATTRIB4HVNVPROC)glewGetProcAddress("glVertexAttrib4hvNV")) == NULL;
|
||||
r = r || (glVertexAttribs1hvNV = (PFNGLVERTEXATTRIBS1HVNVPROC)glewGetProcAddress("glVertexAttribs1hvNV")) == NULL;
|
||||
r = r || (glVertexAttribs2hvNV = (PFNGLVERTEXATTRIBS2HVNVPROC)glewGetProcAddress("glVertexAttribs2hvNV")) == NULL;
|
||||
r = r || (glVertexAttribs3hvNV = (PFNGLVERTEXATTRIBS3HVNVPROC)glewGetProcAddress("glVertexAttribs3hvNV")) == NULL;
|
||||
r = r || (glVertexAttribs4hvNV = (PFNGLVERTEXATTRIBS4HVNVPROC)glewGetProcAddress("glVertexAttribs4hvNV")) == NULL;
|
||||
return r;
|
||||
}
|
||||
#endif /* GL_NV_half_float */
|
||||
|
||||
/* -------------------------- NV_occlusion_query -------------------------- */
|
||||
|
||||
#ifdef GL_NV_occlusion_query
|
||||
@ -2732,6 +2803,10 @@ static GLint _glewInit ()
|
||||
glew.ARB_vertex_blend = glewGetExtension("GL_ARB_vertex_blend");
|
||||
if (glewExperimental || glew.ARB_vertex_blend) glew.ARB_vertex_blend = !_glewInit_ARB_vertex_blend();
|
||||
#endif
|
||||
#ifdef GL_ARB_vertex_buffer_object
|
||||
glew.ARB_vertex_buffer_object = glewGetExtension("GL_ARB_vertex_buffer_object");
|
||||
if (glewExperimental || glew.ARB_vertex_buffer_object) glew.ARB_vertex_buffer_object = !_glewInit_ARB_vertex_buffer_object();
|
||||
#endif
|
||||
#ifdef GL_ARB_vertex_program
|
||||
glew.ARB_vertex_program = glewGetExtension("GL_ARB_vertex_program");
|
||||
if (glewExperimental || glew.ARB_vertex_program) glew.ARB_vertex_program = !_glewInit_ARB_vertex_program();
|
||||
@ -2961,8 +3036,9 @@ static GLint _glewInit ()
|
||||
glew.NV_fragment_program = glewGetExtension("GL_NV_fragment_program");
|
||||
if (glewExperimental || glew.NV_fragment_program) glew.NV_fragment_program = !_glewInit_NV_fragment_program();
|
||||
#endif
|
||||
#ifdef GL_NV_light_max_exponent
|
||||
#ifdef GL_NV_half_float
|
||||
glew.NV_half_float = glewGetExtension("GL_NV_half_float");
|
||||
if (glewExperimental || glew.NV_half_float) glew.NV_half_float = !_glewInit_NV_half_float();
|
||||
#endif
|
||||
#ifdef GL_NV_light_max_exponent
|
||||
glew.NV_light_max_exponent = glewGetExtension("GL_NV_light_max_exponent");
|
||||
|
149
src/glewinfo.c
149
src/glewinfo.c
@ -1,52 +1,6 @@
|
||||
/*
|
||||
** License Applicability. Except to the extent portions of this file are
|
||||
** made subject to an alternative license as permitted in the SGI Free
|
||||
** Software License B, Version 1.1 (the "License"), the contents of this
|
||||
** file are subject only to the provisions of the License. You may not use
|
||||
** this file except in compliance with the License. You may obtain a copy
|
||||
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
||||
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
||||
**
|
||||
** http://oss.sgi.com/projects/FreeB
|
||||
**
|
||||
** Note that, as provided in the License, the Software is distributed on an
|
||||
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
||||
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
||||
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
||||
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||
**
|
||||
** Original Code. The Original Code is: OpenGL Sample Implementation,
|
||||
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
||||
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
||||
** Copyright in any portions created by third parties is as indicated
|
||||
** elsewhere herein. All Rights Reserved.
|
||||
**
|
||||
** Additional Notice Provisions: This software was created using the
|
||||
** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
|
||||
** not been independently verified as being compliant with the OpenGL(R)
|
||||
** version 1.2.1 Specification.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The contents of this file are subject to the GLX Public License Version 1.0
|
||||
** (the "License"). You may not use this file except in compliance with the
|
||||
** License. You may obtain a copy of the License at Silicon Graphics, Inc.,
|
||||
** attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043
|
||||
** or at http://www.sgi.com/software/opensource/glx/license.html.
|
||||
**
|
||||
** Software distributed under the License is distributed on an "AS IS"
|
||||
** basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY
|
||||
** IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
|
||||
** PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific
|
||||
** language governing rights and limitations under the License.
|
||||
**
|
||||
** The Original Software is GLX version 1.2 source code, released February,
|
||||
** 1999. The developer of the Original Software is Silicon Graphics, Inc.
|
||||
** Those portions of the Subject Software created by Silicon Graphics, Inc.
|
||||
** are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2003, 2002, Milan Ikits
|
||||
** Copyright (C) 2002, Lev Povalahev
|
||||
** All rights reserved.
|
||||
**
|
||||
@ -74,25 +28,6 @@
|
||||
** THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2002 Milan Ikits
|
||||
**
|
||||
** This library is free software; you can redistribute it and/or
|
||||
** modify it under the terms of the GNU Lesser General Public
|
||||
** License as published by the Free Software Foundation; either
|
||||
** version 2.1 of the License, or (at your option) any later version.
|
||||
**
|
||||
** This library is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** Lesser General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU Lesser General Public
|
||||
** License along with this library; if not, write to the Free Software
|
||||
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <GL/glew.h>
|
||||
@ -415,6 +350,26 @@ static void glewInfo_ARB_vertex_blend ()
|
||||
}
|
||||
#endif /* GL_ARB_vertex_blend */
|
||||
|
||||
/* ---------------------- ARB_vertex_buffer_object ------------------------ */
|
||||
|
||||
#ifdef GL_ARB_vertex_buffer_object
|
||||
static void glewInfo_ARB_vertex_buffer_object ()
|
||||
{
|
||||
char me[] = "GL_ARB_vertex_buffer_object"; glewPrintExt(me, glew.ARB_vertex_buffer_object);
|
||||
glewInfoFunc(glBindBufferARB == NULL, "glBindBufferARB");
|
||||
glewInfoFunc(glDeleteBuffersARB == NULL, "glDeleteBuffersARB");
|
||||
glewInfoFunc(glGenBuffersARB == NULL, "glGenBuffersARB");
|
||||
glewInfoFunc(glIsBufferARB == NULL, "glIsBufferARB");
|
||||
glewInfoFunc(glBufferDataARB == NULL, "glBufferDataARB");
|
||||
glewInfoFunc(glBufferSubDataARB == NULL, "glBufferSubDataARB");
|
||||
glewInfoFunc(glGetBufferSubDataARB == NULL, "glGetBufferSubDataARB");
|
||||
glewInfoFunc(glMapBufferARB == NULL, "glMapBufferARB");
|
||||
glewInfoFunc(glUnmapBufferARB == NULL, "glUnmapBufferARB");
|
||||
glewInfoFunc(glGetBufferParameterivARB == NULL, "glGetBufferParameterivARB");
|
||||
glewInfoFunc(glGetBufferPointervARB == NULL, "glGetBufferPointervARB");
|
||||
}
|
||||
#endif /* GL_ARB_vertex_buffer_object */
|
||||
|
||||
/* -------------------------- ARB_vertex_program -------------------------- */
|
||||
|
||||
#ifdef GL_ARB_vertex_program
|
||||
@ -971,6 +926,61 @@ static void glewInfo_NV_fence ()
|
||||
}
|
||||
#endif /* GL_NV_fence */
|
||||
|
||||
/* ----------------------------- NV_half_float ---------------------------- */
|
||||
|
||||
#ifdef GL_NV_half_float
|
||||
static void glewInfo_NV_half_float ()
|
||||
{
|
||||
char me[] = "GL_NV_half_float"; glewPrintExt(me, glew.NV_half_float);
|
||||
glewInfoFunc(glVertex2hNV == NULL, "glVertex2hNV");
|
||||
glewInfoFunc(glVertex2hvNV == NULL, "glVertex2hvNV");
|
||||
glewInfoFunc(glVertex3hNV == NULL, "glVertex3hNV");
|
||||
glewInfoFunc(glVertex3hvNV == NULL, "glVertex3hvNV");
|
||||
glewInfoFunc(glVertex4hNV == NULL, "glVertex4hNV");
|
||||
glewInfoFunc(glVertex4hvNV == NULL, "glVertex4hvNV");
|
||||
glewInfoFunc(glNormal3hNV == NULL, "glNormal3hNV");
|
||||
glewInfoFunc(glNormal3hvNV == NULL, "glNormal3hvNV");
|
||||
glewInfoFunc(glColor3hNV == NULL, "glColor3hNV");
|
||||
glewInfoFunc(glColor3hvNV == NULL, "glColor3hvNV");
|
||||
glewInfoFunc(glColor4hNV == NULL, "glColor4hNV");
|
||||
glewInfoFunc(glColor4hvNV == NULL, "glColor4hvNV ");
|
||||
glewInfoFunc(glTexCoord1hNV == NULL, "glTexCoord1hNV");
|
||||
glewInfoFunc(glTexCoord1hvNV == NULL, "glTexCoord1hvNV");
|
||||
glewInfoFunc(glTexCoord2hNV == NULL, "glTexCoord2hNV");
|
||||
glewInfoFunc(glTexCoord2hvNV == NULL, "glTexCoord2hvNV");
|
||||
glewInfoFunc(glTexCoord3hNV == NULL, "glTexCoord3hNV");
|
||||
glewInfoFunc(glTexCoord3hvNV == NULL, "glTexCoord3hvNV");
|
||||
glewInfoFunc(glTexCoord4hNV == NULL, "glTexCoord4hNV");
|
||||
glewInfoFunc(glTexCoord4hvNV == NULL, "glTexCoord4hvNV");
|
||||
glewInfoFunc(glMultiTexCoord1hNV == NULL, "glMultiTexCoord1hNV");
|
||||
glewInfoFunc(glMultiTexCoord1hvNV == NULL, "glMultiTexCoord1hvNV");
|
||||
glewInfoFunc(glMultiTexCoord2hNV == NULL, "glMultiTexCoord2hNV");
|
||||
glewInfoFunc(glMultiTexCoord2hvNV == NULL, "glMultiTexCoord2hvNV");
|
||||
glewInfoFunc(glMultiTexCoord3hNV == NULL, "glMultiTexCoord3hNV");
|
||||
glewInfoFunc(glMultiTexCoord3hvNV == NULL, "glMultiTexCoord3hvNV");
|
||||
glewInfoFunc(glMultiTexCoord4hNV == NULL, "glMultiTexCoord4hNV");
|
||||
glewInfoFunc(glMultiTexCoord4hvNV == NULL, "glMultiTexCoord4hvNV");
|
||||
glewInfoFunc(glFogCoordhNV == NULL, "glFogCoordhNV");
|
||||
glewInfoFunc(glFogCoordhvNV == NULL, "glFogCoordhvNV");
|
||||
glewInfoFunc(glSecondaryColor3hNV == NULL, "glSecondaryColor3hNV");
|
||||
glewInfoFunc(glSecondaryColor3hvNV == NULL, "glSecondaryColor3hvNV");
|
||||
glewInfoFunc(glVertexWeighthNV == NULL, "glVertexWeighthNV");
|
||||
glewInfoFunc(glVertexWeighthvNV == NULL, "glVertexWeighthvNV");
|
||||
glewInfoFunc(glVertexAttrib1hNV == NULL, "glVertexAttrib1hNV");
|
||||
glewInfoFunc(glVertexAttrib1hvNV == NULL, "glVertexAttrib1hvNV");
|
||||
glewInfoFunc(glVertexAttrib2hNV == NULL, "glVertexAttrib2hNV");
|
||||
glewInfoFunc(glVertexAttrib2hvNV == NULL, "glVertexAttrib2hvNV");
|
||||
glewInfoFunc(glVertexAttrib3hNV == NULL, "glVertexAttrib3hNV");
|
||||
glewInfoFunc(glVertexAttrib3hvNV == NULL, "glVertexAttrib3hvNV");
|
||||
glewInfoFunc(glVertexAttrib4hNV == NULL, "glVertexAttrib4hNV");
|
||||
glewInfoFunc(glVertexAttrib4hvNV == NULL, "glVertexAttrib4hvNV");
|
||||
glewInfoFunc(glVertexAttribs1hvNV == NULL, "glVertexAttribs1hvNV");
|
||||
glewInfoFunc(glVertexAttribs2hvNV == NULL, "glVertexAttribs2hvNV");
|
||||
glewInfoFunc(glVertexAttribs3hvNV == NULL, "glVertexAttribs3hvNV");
|
||||
glewInfoFunc(glVertexAttribs4hvNV == NULL, "glVertexAttribs4hvNV");
|
||||
}
|
||||
#endif /* GL_NV_half_float */
|
||||
|
||||
/* -------------------------- NV_occlusion_query -------------------------- */
|
||||
|
||||
#ifdef GL_NV_occlusion_query
|
||||
@ -1735,6 +1745,9 @@ static void glewInfo ()
|
||||
#ifdef GL_ARB_vertex_blend
|
||||
glewInfo_ARB_vertex_blend();
|
||||
#endif
|
||||
#ifdef GL_ARB_vertex_buffer_object
|
||||
glewInfo_ARB_vertex_buffer_object();
|
||||
#endif
|
||||
#ifdef GL_ARB_vertex_program
|
||||
glewInfo_ARB_vertex_program();
|
||||
#endif
|
||||
@ -1933,7 +1946,7 @@ static void glewInfo ()
|
||||
glewInfo_NV_fragment_program();
|
||||
#endif
|
||||
#ifdef GL_NV_half_float
|
||||
glewPrintExt("GL_NV_half_float", glew.NV_half_float);
|
||||
glewInfo_NV_half_float();
|
||||
#endif
|
||||
#ifdef GL_NV_light_max_exponent
|
||||
glewPrintExt("GL_NV_light_max_exponent", glew.NV_light_max_exponent);
|
||||
|
Loading…
Reference in New Issue
Block a user