Added support for glArrayElement(EXT|) to the immediate mode layer.
Support NUM_EXTENSIONS in glGet(Integer|Float|Double|Boolean|Integer64)v(EXT|)
Added interception for glGetStringi and glGetIntergerv
Improve loading of GLES and EGL libraries on Android
Various bug fixes...
Merged pull requests:
#131 NaCL Pepper now uses GLES2 prefix for ES2.0 functions, rather than gl
#130 Copyright bump to 2014
#129 NaCL-related build tweaks for regaltest, nacl example and pnacl.
#128 GLEW refresh
#126 boost::print fix for mapping 'long' and 'long long' to 32-bit or 64-bit for length purposes
#125 Resolve clang compilation error: lookup of 'Depth' in member access expression is ambiguous
#124 Add Makefile support for gcc-4.4, gcc-4.6 and clang toolchains on Linux.
#116 Make it compile with Visual Studio 2013 (VC12)
49 lines
1.2 KiB
Python
49 lines
1.2 KiB
Python
#!/usr/bin/python -B
|
|
|
|
formulae = {
|
|
'GetString' : {
|
|
'entries' : [ 'glGetString' ],
|
|
'impl' : '''
|
|
// Regal interceptions
|
|
RegalAssert(_context->emuInfo);
|
|
switch (name)
|
|
{
|
|
case GL_VENDOR: return reinterpret_cast<const GLubyte *>(_context->emuInfo->vendor.c_str());
|
|
case GL_RENDERER: return reinterpret_cast<const GLubyte *>(_context->emuInfo->renderer.c_str());
|
|
case GL_VERSION: return reinterpret_cast<const GLubyte *>(_context->emuInfo->version.c_str());
|
|
case GL_EXTENSIONS: return reinterpret_cast<const GLubyte *>(_context->extensions.c_str());
|
|
default:
|
|
break;
|
|
}'''
|
|
},
|
|
'GetStringi' : {
|
|
'entries' : [ 'glGetStringi' ],
|
|
'impl' : '''
|
|
// Regal interceptions
|
|
switch (name)
|
|
{
|
|
case GL_EXTENSIONS:
|
|
{
|
|
std::set<std::string>::iterator it = _context->extensionsSet.begin();
|
|
std::advance(it, index);
|
|
return reinterpret_cast<const GLubyte *>(it->c_str());
|
|
};
|
|
default:
|
|
break;
|
|
}'''
|
|
},
|
|
'Get' : {
|
|
'entries' : [ 'glGet(Integer|Float|Double|Boolean|Integer64)v(EXT|)' ],
|
|
'impl' : '''
|
|
// Regal interceptions
|
|
switch (pname)
|
|
{
|
|
case GL_NUM_EXTENSIONS:
|
|
_context->numExtensions( ${arg1} );
|
|
return;
|
|
|
|
default:
|
|
break;
|
|
}'''
|
|
}
|
|
}
|