Commit Graph

32 Commits

Author SHA1 Message Date
Matthias Bentrup
e935fcad83 Load core function pointers before checking the extension string.
For GL versions since 3.0 the glGetString() function is deprecated or removed,
and the right way to query extensions is glGetStringi(), but that has to be
loaded first.

Also instead of searching the whole extension string n times lookup the
known extensions in a static hash table. The hash table is built with
the gperf utility.
2015-12-16 21:10:52 +10:00
Nigel Stewart
a4aa9b2717 Remove MX support due to the complexity of supporting both MX and Core contexts 2015-12-06 12:49:24 +10:00
Nigel Stewart
6cea54733a [CoreSupport] Use 4th line of extension specification to reused extensions
Such as OpenGL 3.0 reusing ARB_vertex_array_object
Implement reused lists for OpenGL 3.0, 3.1 and 3.2 so far
2015-12-06 12:49:21 +10:00
Nigel Stewart
0fcb9a3061 Skip #ifdef block for extensions detected purely from extension string. 2015-12-06 12:49:19 +10:00
Nigel Stewart
d33d3b5b0f [CoreSupport] Linux/GLX touch-ups for GL 3.0 + extension detection, GLX. 2015-12-06 12:49:15 +10:00
Nigel Stewart
731b1e6602 [CoreSupport] Represent the extension string(s) as an array of GLboolean - _glewGetExtensionString and _glewGetExtensionEnable
glewinfo output is identical.
TODO core context glGetStringi support.
TODO MX support.
2015-12-06 12:49:11 +10:00
Nigel Stewart
4fc4327945 Eliminate the internal use of CONST_CAST, to avoid gcc warnings with -Wcast-qual flag.
https://github.com/nigels-com/glew/issues/5
2014-07-14 17:53:21 +10:00
Nigel Stewart
48e4e82de0 Clarify name of extension string begin and end 2011-03-31 07:49:53 -05:00
Nigel Stewart
1b38b41837 Patch ID: 3260500 - Query extension string only once 2011-03-30 11:38:25 -05:00
nigels
628edd3c0b Only check OpenGL extension string if there is a non-empty string to check for. GL_VERSION_* are detected from the version info.
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@589 783a27ee-832a-0410-bc00-9f386506c6dd
2010-03-10 15:37:02 +00:00
nigels
4744f99070 The first three lines of each core or extension file is now: name, URL and GL extension string name. For example GL_NV_geometry_program4 is available iff GL_NV_gpu_program4 appears in the extension string.
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@587 783a27ee-832a-0410-bc00-9f386506c6dd
2010-03-05 18:19:59 +00:00
ikits
3f63c6224c Year change
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@521 783a27ee-832a-0410-bc00-9f386506c6dd
2007-12-28 01:47:25 +00:00
ikits
c9a40e3cee const correctness change
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@498 783a27ee-832a-0410-bc00-9f386506c6dd
2007-03-19 13:33:36 +00:00
ikits
7e708af2be version & year bump
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@469 783a27ee-832a-0410-bc00-9f386506c6dd
2007-03-01 05:11:36 +00:00
ikits
89ad8ec389 bug fixes and copyright year changes
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@427 783a27ee-832a-0410-bc00-9f386506c6dd
2006-02-26 16:45:12 +00:00
ikits
7d2fe795e9 bug fixes
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@337 783a27ee-832a-0410-bc00-9f386506c6dd
2005-01-04 03:29:39 +00:00
ikits
d50db91bd0 Year bump in copyright message. Removed obsolete files from auto/src.
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@333 783a27ee-832a-0410-bc00-9f386506c6dd
2005-01-03 07:32:34 +00:00
ikits
254737d17b added customized subset selection
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@326 783a27ee-832a-0410-bc00-9f386506c6dd
2004-12-31 08:50:04 +00:00
ikits
a576f04909 Version bump; added glewIsSupported; split source file, it is too big for VC7.1
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@319 783a27ee-832a-0410-bc00-9f386506c6dd
2004-12-29 05:43:35 +00:00
ikits
527190f4be fixed problem with ARB_shader_objects and ARB_vertex_shader
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@246 783a27ee-832a-0410-bc00-9f386506c6dd
2004-03-19 00:53:01 +00:00
ikits
055a3884a7 *** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@237 783a27ee-832a-0410-bc00-9f386506c6dd
2004-02-19 09:43:14 +00:00
ikits
7214d0be63 *** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@233 783a27ee-832a-0410-bc00-9f386506c6dd
2004-02-19 07:49:16 +00:00
ikits
4d82054139 added binary compatibility for the single pipe version (through global variables) -- GLEW_MX is not a compilation switch
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@227 783a27ee-832a-0410-bc00-9f386506c6dd
2004-02-19 04:37:07 +00:00
ikits
f7a917ba23 *** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@223 783a27ee-832a-0410-bc00-9f386506c6dd
2004-02-02 03:03:13 +00:00
ikits
dbb7f8c798 updated copyright notices
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@207 783a27ee-832a-0410-bc00-9f386506c6dd
2004-02-01 20:03:26 +00:00
ikits
e21be8b86a added glew mx
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@202 783a27ee-832a-0410-bc00-9f386506c6dd
2004-02-01 18:13:05 +00:00
ikits
412814404b added Solaris support
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@154 783a27ee-832a-0410-bc00-9f386506c6dd
2003-10-27 05:28:55 +00:00
ikits
cd64fd9607 removed WGL_{ARB,EXT}_extensions_string dependency
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@120 783a27ee-832a-0410-bc00-9f386506c6dd
2003-09-15 15:35:32 +00:00
ikits
ef757f2529 *** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@118 783a27ee-832a-0410-bc00-9f386506c6dd
2003-09-12 04:46:10 +00:00
ikits
cac690ca3e *** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@98 783a27ee-832a-0410-bc00-9f386506c6dd
2003-07-08 17:56:49 +00:00
ikits
e68c8d8886 *** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@96 783a27ee-832a-0410-bc00-9f386506c6dd
2003-07-08 16:43:30 +00:00
mem
2b9775d8d3 Merge Milan's 1.1.x
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@80 783a27ee-832a-0410-bc00-9f386506c6dd
2003-07-06 15:01:13 +00:00