/src/regal/RegalDispatchError.cpp
https://bitbucket.org/nigels_com/regal · C++ · 29650 lines · 28209 code · 1294 blank · 147 comment · 4685 complexity · c991d608f374cecd00c7f4d6810ff70d MD5 · raw file
- /* NOTE: Do not edit this file, it is generated by a script:
- Export.py --api gl 4.4 --api wgl 4.4 --api glx 4.4 --api cgl 1.4 --api egl 1.0 --outdir .
- */
- /*
- Copyright (c) 2011-2013 NVIDIA Corporation
- Copyright (c) 2011-2013 Cass Everitt
- Copyright (c) 2012-2013 Scott Nations
- Copyright (c) 2012 Mathias Schott
- Copyright (c) 2012-2013 Nigel Stewart
- Copyright (c) 2012-2013 Google Inc.
- 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.
- 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 HOLDER 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.
- */
- /*
- Intended formatting conventions:
- $ astyle --style=allman --indent=spaces=2 --indent-switches
- */
- #include "pch.h" /* For MS precompiled header support */
- #include "RegalUtil.h"
- #if REGAL_ERROR
- REGAL_GLOBAL_BEGIN
- #include <string>
- using namespace std;
- #include "RegalLog.h"
- #include "RegalBreak.h"
- #include "RegalPush.h"
- #include "RegalToken.h"
- #include "RegalHelper.h"
- #include "RegalPrivate.h"
- #include "RegalContext.h"
- REGAL_GLOBAL_END
- REGAL_NAMESPACE_BEGIN
- using namespace ::REGAL_NAMESPACE_INTERNAL::Logging;
- using namespace ::REGAL_NAMESPACE_INTERNAL::Token;
- // GL_VERSION_1_0
- static void REGAL_CALL error_glAccum(GLenum op, GLfloat value)
- {
- Internal("error_glAccum","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glAccum)(op, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAccum : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glAlphaFunc(GLenum func, GLclampf ref)
- {
- Internal("error_glAlphaFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glAlphaFunc)(func, ref);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAlphaFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBegin(GLenum mode)
- {
- Internal("error_glBegin","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _context->err.inBeginEnd = true;
- _next->call(&_next->glBegin)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBegin : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
- {
- Internal("error_glBitmap","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBitmap)(width, height, xorig, yorig, xmove, ymove, bitmap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBitmap : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFunc(GLenum sfactor, GLenum dfactor)
- {
- Internal("error_glBlendFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFunc)(sfactor, dfactor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCallList(GLuint list)
- {
- Internal("error_glCallList","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCallList)(list);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCallList : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCallLists(GLsizei n, GLenum type, const GLvoid *lists)
- {
- Internal("error_glCallLists","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCallLists)(n, type, lists);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCallLists : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClear(GLbitfield mask)
- {
- Internal("error_glClear","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClear)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClear : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
- {
- Internal("error_glClearAccum","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearAccum)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearAccum : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- {
- Internal("error_glClearColor","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearColor)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearColor : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearDepth(GLclampd depth)
- {
- Internal("error_glClearDepth","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearDepth)(depth);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearDepth : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearIndex(GLfloat c)
- {
- Internal("error_glClearIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearIndex)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearStencil(GLint s)
- {
- Internal("error_glClearStencil","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearStencil)(s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearStencil : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClipPlane(GLenum plane, const GLdouble *equation)
- {
- Internal("error_glClipPlane","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClipPlane)(plane, equation);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClipPlane : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3b(GLbyte red, GLbyte green, GLbyte blue)
- {
- Internal("error_glColor3b","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3b)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3b : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3bv(const GLbyte *v)
- {
- Internal("error_glColor3bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3bv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3d(GLdouble red, GLdouble green, GLdouble blue)
- {
- Internal("error_glColor3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3d)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3dv(const GLdouble *v)
- {
- Internal("error_glColor3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3f(GLfloat red, GLfloat green, GLfloat blue)
- {
- Internal("error_glColor3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3f)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3fv(const GLfloat *v)
- {
- Internal("error_glColor3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3i(GLint red, GLint green, GLint blue)
- {
- Internal("error_glColor3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3i)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3iv(const GLint *v)
- {
- Internal("error_glColor3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3s(GLshort red, GLshort green, GLshort blue)
- {
- Internal("error_glColor3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3s)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3sv(const GLshort *v)
- {
- Internal("error_glColor3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3ub(GLubyte red, GLubyte green, GLubyte blue)
- {
- Internal("error_glColor3ub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3ub)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3ub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3ubv(const GLubyte *v)
- {
- Internal("error_glColor3ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3ubv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3ui(GLuint red, GLuint green, GLuint blue)
- {
- Internal("error_glColor3ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3ui)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3uiv(const GLuint *v)
- {
- Internal("error_glColor3uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3uiv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3us(GLushort red, GLushort green, GLushort blue)
- {
- Internal("error_glColor3us","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3us)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3us : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3usv(const GLushort *v)
- {
- Internal("error_glColor3usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3usv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
- {
- Internal("error_glColor4b","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4b)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4b : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4bv(const GLbyte *v)
- {
- Internal("error_glColor4bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4bv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
- {
- Internal("error_glColor4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4d)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4dv(const GLdouble *v)
- {
- Internal("error_glColor4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
- {
- Internal("error_glColor4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4f)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4fv(const GLfloat *v)
- {
- Internal("error_glColor4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4i(GLint red, GLint green, GLint blue, GLint alpha)
- {
- Internal("error_glColor4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4i)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4iv(const GLint *v)
- {
- Internal("error_glColor4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
- {
- Internal("error_glColor4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4s)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4sv(const GLshort *v)
- {
- Internal("error_glColor4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
- {
- Internal("error_glColor4ub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4ub)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4ub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4ubv(const GLubyte *v)
- {
- Internal("error_glColor4ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4ubv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
- {
- Internal("error_glColor4ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4ui)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4uiv(const GLuint *v)
- {
- Internal("error_glColor4uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4uiv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
- {
- Internal("error_glColor4us","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4us)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4us : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4usv(const GLushort *v)
- {
- Internal("error_glColor4usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4usv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- {
- Internal("error_glColorMask","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorMask)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorMask : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorMaterial(GLenum face, GLenum mode)
- {
- Internal("error_glColorMaterial","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorMaterial)(face, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorMaterial : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
- {
- Internal("error_glCopyPixels","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyPixels)(x, y, width, height, type);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyPixels : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCullFace(GLenum mode)
- {
- Internal("error_glCullFace","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCullFace)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCullFace : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteLists(GLuint list, GLsizei range)
- {
- Internal("error_glDeleteLists","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteLists)(list, range);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteLists : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthFunc(GLenum func)
- {
- Internal("error_glDepthFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthFunc)(func);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthMask(GLboolean flag)
- {
- Internal("error_glDepthMask","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthMask)(flag);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthMask : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthRange(GLclampd zNear, GLclampd zFar)
- {
- Internal("error_glDepthRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthRange)(zNear, zFar);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDisable(GLenum cap)
- {
- Internal("error_glDisable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDisable)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDisable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawBuffer(GLenum mode)
- {
- Internal("error_glDrawBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawBuffer)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glDrawPixels","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawPixels)(width, height, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawPixels : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEdgeFlag(GLboolean flag)
- {
- Internal("error_glEdgeFlag","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEdgeFlag)(flag);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEdgeFlag : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEdgeFlagv(const GLboolean *flag)
- {
- Internal("error_glEdgeFlagv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEdgeFlagv)(flag);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEdgeFlagv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnable(GLenum cap)
- {
- Internal("error_glEnable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnable)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnd(void)
- {
- Internal("error_glEnd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnd)();
- _context->err.inBeginEnd = false;
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndList(void)
- {
- Internal("error_glEndList","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndList)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndList : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord1d(GLdouble u)
- {
- Internal("error_glEvalCoord1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord1d)(u);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord1dv(const GLdouble *u)
- {
- Internal("error_glEvalCoord1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord1dv)(u);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord1f(GLfloat u)
- {
- Internal("error_glEvalCoord1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord1f)(u);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord1fv(const GLfloat *u)
- {
- Internal("error_glEvalCoord1fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord1fv)(u);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord1fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord2d(GLdouble u, GLdouble v)
- {
- Internal("error_glEvalCoord2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord2d)(u, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord2dv(const GLdouble *u)
- {
- Internal("error_glEvalCoord2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord2dv)(u);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord2f(GLfloat u, GLfloat v)
- {
- Internal("error_glEvalCoord2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord2f)(u, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalCoord2fv(const GLfloat *u)
- {
- Internal("error_glEvalCoord2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalCoord2fv)(u);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalCoord2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalMesh1(GLenum mode, GLint i1, GLint i2)
- {
- Internal("error_glEvalMesh1","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalMesh1)(mode, i1, i2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalMesh1 : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
- {
- Internal("error_glEvalMesh2","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalMesh2)(mode, i1, i2, j1, j2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalMesh2 : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalPoint1(GLint i)
- {
- Internal("error_glEvalPoint1","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalPoint1)(i);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalPoint1 : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEvalPoint2(GLint i, GLint j)
- {
- Internal("error_glEvalPoint2","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEvalPoint2)(i, j);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEvalPoint2 : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
- {
- Internal("error_glFeedbackBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFeedbackBuffer)(size, type, buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFeedbackBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFinish(void)
- {
- Internal("error_glFinish","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFinish)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFinish : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFlush(void)
- {
- Internal("error_glFlush","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFlush)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFlush : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogf(GLenum pname, GLfloat param)
- {
- Internal("error_glFogf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogf)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogfv(GLenum pname, const GLfloat *params)
- {
- Internal("error_glFogfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogfv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogi(GLenum pname, GLint param)
- {
- Internal("error_glFogi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogi)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogiv(GLenum pname, const GLint *params)
- {
- Internal("error_glFogiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogiv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFrontFace(GLenum mode)
- {
- Internal("error_glFrontFace","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFrontFace)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFrontFace : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
- {
- Internal("error_glFrustum","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFrustum)(left, right, bottom, top, zNear, zFar);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFrustum : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glGenLists(GLsizei range)
- {
- Internal("error_glGenLists","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glGenLists)(range);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenLists : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetBooleanv(GLenum pname, GLboolean *params)
- {
- Internal("error_glGetBooleanv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetBooleanv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetBooleanv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetClipPlane(GLenum plane, GLdouble *equation)
- {
- Internal("error_glGetClipPlane","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetClipPlane)(plane, equation);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetClipPlane : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetDoublev(GLenum pname, GLdouble *params)
- {
- Internal("error_glGetDoublev","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetDoublev)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetDoublev : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLenum REGAL_CALL error_glGetError(void)
- {
- Internal("error_glGetError","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum error = _next->call(&_next->glGetError)();
- return error;
- }
- static void REGAL_CALL error_glGetFloatv(GLenum pname, GLfloat *params)
- {
- Internal("error_glGetFloatv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetFloatv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetFloatv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetIntegerv(GLenum pname, GLint *params)
- {
- Internal("error_glGetIntegerv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetIntegerv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetIntegerv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetLightfv(GLenum light, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetLightfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetLightfv)(light, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetLightfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetLightiv(GLenum light, GLenum pname, GLint *params)
- {
- Internal("error_glGetLightiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetLightiv)(light, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetLightiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMapdv(GLenum target, GLenum query, GLdouble *v)
- {
- Internal("error_glGetMapdv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMapdv)(target, query, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMapdv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMapfv(GLenum target, GLenum query, GLfloat *v)
- {
- Internal("error_glGetMapfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMapfv)(target, query, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMapfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMapiv(GLenum target, GLenum query, GLint *v)
- {
- Internal("error_glGetMapiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMapiv)(target, query, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMapiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetMaterialfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMaterialfv)(face, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMaterialfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMaterialiv(GLenum face, GLenum pname, GLint *params)
- {
- Internal("error_glGetMaterialiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMaterialiv)(face, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMaterialiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPixelMapfv(GLenum map, GLfloat *values)
- {
- Internal("error_glGetPixelMapfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPixelMapfv)(map, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPixelMapfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPixelMapuiv(GLenum map, GLuint *values)
- {
- Internal("error_glGetPixelMapuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPixelMapuiv)(map, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPixelMapuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPixelMapusv(GLenum map, GLushort *values)
- {
- Internal("error_glGetPixelMapusv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPixelMapusv)(map, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPixelMapusv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPolygonStipple(GLubyte *mask)
- {
- Internal("error_glGetPolygonStipple","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPolygonStipple)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPolygonStipple : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static const GLubyte *REGAL_CALL error_glGetString(GLenum name)
- {
- Internal("error_glGetString","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- const GLubyte * ret = _next->call(&_next->glGetString)(name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetString : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetTexEnvfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexEnvfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexEnvfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexEnviv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetTexEnviv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexEnviv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexEnviv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
- {
- Internal("error_glGetTexGendv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexGendv)(coord, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexGendv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetTexGenfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexGenfv)(coord, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexGenfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
- {
- Internal("error_glGetTexGeniv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexGeniv)(coord, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexGeniv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
- {
- Internal("error_glGetTexImage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexImage)(target, level, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexImage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetTexLevelParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexLevelParameterfv)(target, level, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexLevelParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
- {
- Internal("error_glGetTexLevelParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexLevelParameteriv)(target, level, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexLevelParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetTexParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetTexParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glHint(GLenum target, GLenum mode)
- {
- Internal("error_glHint","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glHint)(target, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glHint : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexMask(GLuint mask)
- {
- Internal("error_glIndexMask","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexMask)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexMask : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexd(GLdouble c)
- {
- Internal("error_glIndexd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexd)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexdv(const GLdouble *c)
- {
- Internal("error_glIndexdv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexdv)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexdv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexf(GLfloat c)
- {
- Internal("error_glIndexf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexf)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexfv(const GLfloat *c)
- {
- Internal("error_glIndexfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexfv)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexi(GLint c)
- {
- Internal("error_glIndexi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexi)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexiv(const GLint *c)
- {
- Internal("error_glIndexiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexiv)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexs(GLshort c)
- {
- Internal("error_glIndexs","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexs)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexs : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexsv(const GLshort *c)
- {
- Internal("error_glIndexsv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexsv)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexsv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInitNames(void)
- {
- Internal("error_glInitNames","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInitNames)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInitNames : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsEnabled(GLenum cap)
- {
- Internal("error_glIsEnabled","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsEnabled)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsEnabled : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glIsList(GLuint list)
- {
- Internal("error_glIsList","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsList)(list);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsList : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glLightModelf(GLenum pname, GLfloat param)
- {
- Internal("error_glLightModelf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightModelf)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightModelf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLightModelfv(GLenum pname, const GLfloat *params)
- {
- Internal("error_glLightModelfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightModelfv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightModelfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLightModeli(GLenum pname, GLint param)
- {
- Internal("error_glLightModeli","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightModeli)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightModeli : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLightModeliv(GLenum pname, const GLint *params)
- {
- Internal("error_glLightModeliv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightModeliv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightModeliv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLightf(GLenum light, GLenum pname, GLfloat param)
- {
- Internal("error_glLightf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightf)(light, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLightfv(GLenum light, GLenum pname, const GLfloat *params)
- {
- Internal("error_glLightfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightfv)(light, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLighti(GLenum light, GLenum pname, GLint param)
- {
- Internal("error_glLighti","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLighti)(light, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLighti : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLightiv(GLenum light, GLenum pname, const GLint *params)
- {
- Internal("error_glLightiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLightiv)(light, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLightiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLineStipple(GLint factor, GLushort pattern)
- {
- Internal("error_glLineStipple","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLineStipple)(factor, pattern);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLineStipple : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLineWidth(GLfloat width)
- {
- Internal("error_glLineWidth","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLineWidth)(width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLineWidth : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glListBase(GLuint base)
- {
- Internal("error_glListBase","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glListBase)(base);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glListBase : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadIdentity(void)
- {
- Internal("error_glLoadIdentity","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadIdentity)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadIdentity : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadMatrixd(const GLdouble *m)
- {
- Internal("error_glLoadMatrixd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadMatrixd)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadMatrixd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadMatrixf(const GLfloat *m)
- {
- Internal("error_glLoadMatrixf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadMatrixf)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadMatrixf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadName(GLuint name)
- {
- Internal("error_glLoadName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadName)(name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLogicOp(GLenum opcode)
- {
- Internal("error_glLogicOp","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLogicOp)(opcode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLogicOp : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
- {
- Internal("error_glMap1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMap1d)(target, u1, u2, stride, order, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMap1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
- {
- Internal("error_glMap1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMap1f)(target, u1, u2, stride, order, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMap1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
- {
- Internal("error_glMap2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMap2d)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMap2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
- {
- Internal("error_glMap2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMap2f)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMap2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
- {
- Internal("error_glMapGrid1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapGrid1d)(un, u1, u2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapGrid1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
- {
- Internal("error_glMapGrid1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapGrid1f)(un, u1, u2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapGrid1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
- {
- Internal("error_glMapGrid2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapGrid2d)(un, u1, u2, vn, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapGrid2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
- {
- Internal("error_glMapGrid2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapGrid2f)(un, u1, u2, vn, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapGrid2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMaterialf(GLenum face, GLenum pname, GLfloat param)
- {
- Internal("error_glMaterialf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMaterialf)(face, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMaterialf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
- {
- Internal("error_glMaterialfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMaterialfv)(face, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMaterialfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMateriali(GLenum face, GLenum pname, GLint param)
- {
- Internal("error_glMateriali","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMateriali)(face, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMateriali : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMaterialiv(GLenum face, GLenum pname, const GLint *params)
- {
- Internal("error_glMaterialiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMaterialiv)(face, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMaterialiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMatrixMode(GLenum mode)
- {
- Internal("error_glMatrixMode","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMatrixMode)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMatrixMode : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultMatrixd(const GLdouble *m)
- {
- Internal("error_glMultMatrixd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultMatrixd)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultMatrixd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultMatrixf(const GLfloat *m)
- {
- Internal("error_glMultMatrixf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultMatrixf)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultMatrixf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNewList(GLuint list, GLenum mode)
- {
- Internal("error_glNewList","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNewList)(list, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNewList : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
- {
- Internal("error_glNormal3b","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3b)(nx, ny, nz);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3b : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3bv(const GLbyte *v)
- {
- Internal("error_glNormal3bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3bv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
- {
- Internal("error_glNormal3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3d)(nx, ny, nz);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3dv(const GLdouble *v)
- {
- Internal("error_glNormal3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
- {
- Internal("error_glNormal3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3f)(nx, ny, nz);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3fv(const GLfloat *v)
- {
- Internal("error_glNormal3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3i(GLint nx, GLint ny, GLint nz)
- {
- Internal("error_glNormal3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3i)(nx, ny, nz);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3iv(const GLint *v)
- {
- Internal("error_glNormal3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3s(GLshort nx, GLshort ny, GLshort nz)
- {
- Internal("error_glNormal3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3s)(nx, ny, nz);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNormal3sv(const GLshort *v)
- {
- Internal("error_glNormal3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormal3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormal3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
- {
- Internal("error_glOrtho","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glOrtho)(left, right, bottom, top, zNear, zFar);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glOrtho : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPassThrough(GLfloat token)
- {
- Internal("error_glPassThrough","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPassThrough)(token);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPassThrough : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
- {
- Internal("error_glPixelMapfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelMapfv)(map, mapsize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelMapfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
- {
- Internal("error_glPixelMapuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelMapuiv)(map, mapsize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelMapuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
- {
- Internal("error_glPixelMapusv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelMapusv)(map, mapsize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelMapusv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelStoref(GLenum pname, GLfloat param)
- {
- Internal("error_glPixelStoref","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelStoref)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelStoref : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelStorei(GLenum pname, GLint param)
- {
- Internal("error_glPixelStorei","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelStorei)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelStorei : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelTransferf(GLenum pname, GLfloat param)
- {
- Internal("error_glPixelTransferf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelTransferf)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelTransferf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelTransferi(GLenum pname, GLint param)
- {
- Internal("error_glPixelTransferi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelTransferi)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelTransferi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPixelZoom(GLfloat xfactor, GLfloat yfactor)
- {
- Internal("error_glPixelZoom","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPixelZoom)(xfactor, yfactor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPixelZoom : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPointSize(GLfloat size)
- {
- Internal("error_glPointSize","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointSize)(size);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointSize : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPolygonMode(GLenum face, GLenum mode)
- {
- Internal("error_glPolygonMode","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPolygonMode)(face, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPolygonMode : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPolygonStipple(const GLubyte *mask)
- {
- Internal("error_glPolygonStipple","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPolygonStipple)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPolygonStipple : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPopAttrib(void)
- {
- Internal("error_glPopAttrib","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPopAttrib)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPopAttrib : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPopMatrix(void)
- {
- Internal("error_glPopMatrix","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPopMatrix)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPopMatrix : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPopName(void)
- {
- Internal("error_glPopName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPopName)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPopName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPushAttrib(GLbitfield mask)
- {
- Internal("error_glPushAttrib","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPushAttrib)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPushAttrib : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPushMatrix(void)
- {
- Internal("error_glPushMatrix","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPushMatrix)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPushMatrix : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPushName(GLuint name)
- {
- Internal("error_glPushName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPushName)(name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPushName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2d(GLdouble x, GLdouble y)
- {
- Internal("error_glRasterPos2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2d)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2dv(const GLdouble *v)
- {
- Internal("error_glRasterPos2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2f(GLfloat x, GLfloat y)
- {
- Internal("error_glRasterPos2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2f)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2fv(const GLfloat *v)
- {
- Internal("error_glRasterPos2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2i(GLint x, GLint y)
- {
- Internal("error_glRasterPos2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2i)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2iv(const GLint *v)
- {
- Internal("error_glRasterPos2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2s(GLshort x, GLshort y)
- {
- Internal("error_glRasterPos2s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2s)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos2sv(const GLshort *v)
- {
- Internal("error_glRasterPos2sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos2sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos2sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glRasterPos3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3d)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3dv(const GLdouble *v)
- {
- Internal("error_glRasterPos3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glRasterPos3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3f)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3fv(const GLfloat *v)
- {
- Internal("error_glRasterPos3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3i(GLint x, GLint y, GLint z)
- {
- Internal("error_glRasterPos3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3i)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3iv(const GLint *v)
- {
- Internal("error_glRasterPos3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3s(GLshort x, GLshort y, GLshort z)
- {
- Internal("error_glRasterPos3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3s)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos3sv(const GLshort *v)
- {
- Internal("error_glRasterPos3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
- {
- Internal("error_glRasterPos4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4d)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4dv(const GLdouble *v)
- {
- Internal("error_glRasterPos4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
- {
- Internal("error_glRasterPos4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4f)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4fv(const GLfloat *v)
- {
- Internal("error_glRasterPos4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4i(GLint x, GLint y, GLint z, GLint w)
- {
- Internal("error_glRasterPos4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4i)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4iv(const GLint *v)
- {
- Internal("error_glRasterPos4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
- {
- Internal("error_glRasterPos4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4s)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRasterPos4sv(const GLshort *v)
- {
- Internal("error_glRasterPos4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRasterPos4sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRasterPos4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glReadBuffer(GLenum mode)
- {
- Internal("error_glReadBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glReadBuffer)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glReadBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
- {
- Internal("error_glReadPixels","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glReadPixels)(x, y, width, height, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glReadPixels : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
- {
- Internal("error_glRectd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRectd)(x1, y1, x2, y2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRectd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRectdv(const GLdouble *v1, const GLdouble *v2)
- {
- Internal("error_glRectdv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRectdv)(v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRectdv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
- {
- Internal("error_glRectf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRectf)(x1, y1, x2, y2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRectf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRectfv(const GLfloat *v1, const GLfloat *v2)
- {
- Internal("error_glRectfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRectfv)(v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRectfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRecti(GLint x1, GLint y1, GLint x2, GLint y2)
- {
- Internal("error_glRecti","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRecti)(x1, y1, x2, y2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRecti : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRectiv(const GLint *v1, const GLint *v2)
- {
- Internal("error_glRectiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRectiv)(v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRectiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
- {
- Internal("error_glRects","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRects)(x1, y1, x2, y2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRects : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRectsv(const GLshort *v1, const GLshort *v2)
- {
- Internal("error_glRectsv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRectsv)(v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRectsv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLint REGAL_CALL error_glRenderMode(GLenum mode)
- {
- Internal("error_glRenderMode","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glRenderMode)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRenderMode : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glRotated","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRotated)(angle, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRotated : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glRotatef","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRotatef)(angle, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRotatef : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glScaled(GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glScaled","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glScaled)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glScaled : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glScalef(GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glScalef","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glScalef)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glScalef : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
- {
- Internal("error_glScissor","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glScissor)(x, y, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glScissor : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSelectBuffer(GLsizei size, GLuint *buffer)
- {
- Internal("error_glSelectBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSelectBuffer)(size, buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSelectBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glShadeModel(GLenum mode)
- {
- Internal("error_glShadeModel","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glShadeModel)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glShadeModel : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glStencilFunc(GLenum func, GLint ref, GLuint mask)
- {
- Internal("error_glStencilFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilFunc)(func, ref, mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glStencilMask(GLuint mask)
- {
- Internal("error_glStencilMask","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilMask)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilMask : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
- {
- Internal("error_glStencilOp","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilOp)(fail, zfail, zpass);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilOp : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1d(GLdouble s)
- {
- Internal("error_glTexCoord1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1d)(s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1dv(const GLdouble *v)
- {
- Internal("error_glTexCoord1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1f(GLfloat s)
- {
- Internal("error_glTexCoord1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1f)(s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1fv(const GLfloat *v)
- {
- Internal("error_glTexCoord1fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1i(GLint s)
- {
- Internal("error_glTexCoord1i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1i)(s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1iv(const GLint *v)
- {
- Internal("error_glTexCoord1iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1s(GLshort s)
- {
- Internal("error_glTexCoord1s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1s)(s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord1sv(const GLshort *v)
- {
- Internal("error_glTexCoord1sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord1sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord1sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2d(GLdouble s, GLdouble t)
- {
- Internal("error_glTexCoord2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2d)(s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2dv(const GLdouble *v)
- {
- Internal("error_glTexCoord2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2f(GLfloat s, GLfloat t)
- {
- Internal("error_glTexCoord2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2f)(s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2fv(const GLfloat *v)
- {
- Internal("error_glTexCoord2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2i(GLint s, GLint t)
- {
- Internal("error_glTexCoord2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2i)(s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2iv(const GLint *v)
- {
- Internal("error_glTexCoord2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2s(GLshort s, GLshort t)
- {
- Internal("error_glTexCoord2s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2s)(s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord2sv(const GLshort *v)
- {
- Internal("error_glTexCoord2sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord2sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord2sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
- {
- Internal("error_glTexCoord3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3d)(s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3dv(const GLdouble *v)
- {
- Internal("error_glTexCoord3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
- {
- Internal("error_glTexCoord3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3f)(s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3fv(const GLfloat *v)
- {
- Internal("error_glTexCoord3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3i(GLint s, GLint t, GLint r)
- {
- Internal("error_glTexCoord3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3i)(s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3iv(const GLint *v)
- {
- Internal("error_glTexCoord3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3s(GLshort s, GLshort t, GLshort r)
- {
- Internal("error_glTexCoord3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3s)(s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord3sv(const GLshort *v)
- {
- Internal("error_glTexCoord3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
- {
- Internal("error_glTexCoord4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4d)(s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4dv(const GLdouble *v)
- {
- Internal("error_glTexCoord4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
- {
- Internal("error_glTexCoord4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4f)(s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4fv(const GLfloat *v)
- {
- Internal("error_glTexCoord4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4i(GLint s, GLint t, GLint r, GLint q)
- {
- Internal("error_glTexCoord4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4i)(s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4iv(const GLint *v)
- {
- Internal("error_glTexCoord4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
- {
- Internal("error_glTexCoord4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4s)(s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoord4sv(const GLshort *v)
- {
- Internal("error_glTexCoord4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoord4sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoord4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexEnvf(GLenum target, GLenum pname, GLfloat param)
- {
- Internal("error_glTexEnvf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexEnvf)(target, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexEnvf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
- {
- Internal("error_glTexEnvfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexEnvfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexEnvfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexEnvi(GLenum target, GLenum pname, GLint param)
- {
- Internal("error_glTexEnvi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexEnvi)(target, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexEnvi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexEnviv(GLenum target, GLenum pname, const GLint *params)
- {
- Internal("error_glTexEnviv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexEnviv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexEnviv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexGend(GLenum coord, GLenum pname, GLdouble param)
- {
- Internal("error_glTexGend","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexGend)(coord, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexGend : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
- {
- Internal("error_glTexGendv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexGendv)(coord, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexGendv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexGenf(GLenum coord, GLenum pname, GLfloat param)
- {
- Internal("error_glTexGenf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexGenf)(coord, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexGenf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
- {
- Internal("error_glTexGenfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexGenfv)(coord, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexGenfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexGeni(GLenum coord, GLenum pname, GLint param)
- {
- Internal("error_glTexGeni","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexGeni)(coord, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexGeni : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexGeniv(GLenum coord, GLenum pname, const GLint *params)
- {
- Internal("error_glTexGeniv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexGeniv)(coord, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexGeniv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glTexImage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexImage1D)(target, level, internalformat, width, border, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexImage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glTexImage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexImage2D)(target, level, internalformat, width, height, border, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexImage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexParameterf(GLenum target, GLenum pname, GLfloat param)
- {
- Internal("error_glTexParameterf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexParameterf)(target, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexParameterf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
- {
- Internal("error_glTexParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexParameteri(GLenum target, GLenum pname, GLint param)
- {
- Internal("error_glTexParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexParameteri)(target, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
- {
- Internal("error_glTexParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTranslated(GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glTranslated","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTranslated)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTranslated : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTranslatef(GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glTranslatef","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTranslatef)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTranslatef : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2d(GLdouble x, GLdouble y)
- {
- Internal("error_glVertex2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2d)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2dv(const GLdouble *v)
- {
- Internal("error_glVertex2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2f(GLfloat x, GLfloat y)
- {
- Internal("error_glVertex2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2f)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2fv(const GLfloat *v)
- {
- Internal("error_glVertex2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2i(GLint x, GLint y)
- {
- Internal("error_glVertex2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2i)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2iv(const GLint *v)
- {
- Internal("error_glVertex2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2s(GLshort x, GLshort y)
- {
- Internal("error_glVertex2s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2s)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex2sv(const GLshort *v)
- {
- Internal("error_glVertex2sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex2sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex2sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3d(GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glVertex3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3d)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3dv(const GLdouble *v)
- {
- Internal("error_glVertex3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3f(GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glVertex3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3f)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3fv(const GLfloat *v)
- {
- Internal("error_glVertex3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3i(GLint x, GLint y, GLint z)
- {
- Internal("error_glVertex3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3i)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3iv(const GLint *v)
- {
- Internal("error_glVertex3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3s(GLshort x, GLshort y, GLshort z)
- {
- Internal("error_glVertex3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3s)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex3sv(const GLshort *v)
- {
- Internal("error_glVertex3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
- {
- Internal("error_glVertex4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4d)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4dv(const GLdouble *v)
- {
- Internal("error_glVertex4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
- {
- Internal("error_glVertex4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4f)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4fv(const GLfloat *v)
- {
- Internal("error_glVertex4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4i(GLint x, GLint y, GLint z, GLint w)
- {
- Internal("error_glVertex4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4i)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4iv(const GLint *v)
- {
- Internal("error_glVertex4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
- {
- Internal("error_glVertex4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4s)(x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertex4sv(const GLshort *v)
- {
- Internal("error_glVertex4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertex4sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertex4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
- {
- Internal("error_glViewport","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glViewport)(x, y, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glViewport : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_1_1
- static GLboolean REGAL_CALL error_glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
- {
- Internal("error_glAreTexturesResident","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glAreTexturesResident)(n, textures, residences);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAreTexturesResident : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glArrayElement(GLint index)
- {
- Internal("error_glArrayElement","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glArrayElement)(index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glArrayElement : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindTexture(GLenum target, GLuint texture)
- {
- Internal("error_glBindTexture","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindTexture)(target, texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindTexture : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glColorPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorPointer)(size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
- {
- Internal("error_glCopyTexImage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyTexImage1D)(target, level, internalformat, x, y, width, border);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyTexImage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
- {
- Internal("error_glCopyTexImage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyTexImage2D)(target, level, internalformat, x, y, width, height, border);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyTexImage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
- {
- Internal("error_glCopyTexSubImage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyTexSubImage1D)(target, level, xoffset, x, y, width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyTexSubImage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
- {
- Internal("error_glCopyTexSubImage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyTexSubImage2D)(target, level, xoffset, yoffset, x, y, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyTexSubImage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteTextures(GLsizei n, const GLuint *textures)
- {
- Internal("error_glDeleteTextures","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteTextures)(n, textures);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteTextures : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDisableClientState(GLenum cap)
- {
- Internal("error_glDisableClientState","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDisableClientState)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDisableClientState : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawArrays(GLenum mode, GLint first, GLsizei count)
- {
- Internal("error_glDrawArrays","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawArrays)(mode, first, count);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawArrays : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
- {
- Internal("error_glDrawElements","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElements)(mode, count, type, indices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElements : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glEdgeFlagPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEdgeFlagPointer)(stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEdgeFlagPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnableClientState(GLenum cap)
- {
- Internal("error_glEnableClientState","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnableClientState)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnableClientState : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenTextures(GLsizei n, GLuint *textures)
- {
- Internal("error_glGenTextures","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenTextures)(n, textures);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenTextures : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPointerv(GLenum pname, GLvoid **params)
- {
- Internal("error_glGetPointerv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPointerv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPointerv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glIndexPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexPointer)(type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexub(GLubyte c)
- {
- Internal("error_glIndexub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexub)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glIndexubv(const GLubyte *c)
- {
- Internal("error_glIndexubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glIndexubv)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIndexubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glInterleavedArrays","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInterleavedArrays)(format, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInterleavedArrays : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsTexture(GLuint texture)
- {
- Internal("error_glIsTexture","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsTexture)(texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsTexture : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glNormalPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNormalPointer)(type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNormalPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPolygonOffset(GLfloat factor, GLfloat units)
- {
- Internal("error_glPolygonOffset","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPolygonOffset)(factor, units);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPolygonOffset : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPopClientAttrib(void)
- {
- Internal("error_glPopClientAttrib","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPopClientAttrib)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPopClientAttrib : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
- {
- Internal("error_glPrioritizeTextures","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPrioritizeTextures)(n, textures, priorities);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPrioritizeTextures : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPushClientAttrib(GLbitfield mask)
- {
- Internal("error_glPushClientAttrib","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPushClientAttrib)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPushClientAttrib : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glTexCoordPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexCoordPointer)(size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexCoordPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glTexSubImage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexSubImage1D)(target, level, xoffset, width, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexSubImage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glTexSubImage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexSubImage2D)(target, level, xoffset, yoffset, width, height, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexSubImage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glVertexPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexPointer)(size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_1_2
- static void REGAL_CALL error_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- {
- Internal("error_glBlendColor","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendColor)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendColor : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendEquation(GLenum mode)
- {
- Internal("error_glBlendEquation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquation)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
- {
- Internal("error_glCopyTexSubImage3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyTexSubImage3D)(target, level, xoffset, yoffset, zoffset, x, y, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyTexSubImage3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
- {
- Internal("error_glDrawRangeElements","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawRangeElements)(mode, start, end, count, type, indices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawRangeElements : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glTexImage3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexImage3D)(target, level, internalformat, width, height, depth, border, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexImage3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glTexSubImage3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexSubImage3D)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexSubImage3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_1_3
- static void REGAL_CALL error_glActiveTexture(GLenum texture)
- {
- Internal("error_glActiveTexture","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glActiveTexture)(texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glActiveTexture : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClientActiveTexture(GLenum texture)
- {
- Internal("error_glClientActiveTexture","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClientActiveTexture)(texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClientActiveTexture : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexImage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexImage1D)(target, level, internalformat, width, border, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexImage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexImage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexImage2D)(target, level, internalformat, width, height, border, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexImage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexImage3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexImage3D)(target, level, internalformat, width, height, depth, border, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexImage3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexSubImage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexSubImage1D)(target, level, xoffset, width, format, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexSubImage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexSubImage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexSubImage2D)(target, level, xoffset, yoffset, width, height, format, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexSubImage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexSubImage3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexSubImage3D)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexSubImage3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetCompressedTexImage(GLenum target, GLint lod, GLvoid *img)
- {
- Internal("error_glGetCompressedTexImage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetCompressedTexImage)(target, lod, img);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetCompressedTexImage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadTransposeMatrixd(const GLdouble *m)
- {
- Internal("error_glLoadTransposeMatrixd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadTransposeMatrixd)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadTransposeMatrixd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadTransposeMatrixf(const GLfloat *m)
- {
- Internal("error_glLoadTransposeMatrixf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadTransposeMatrixf)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadTransposeMatrixf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultTransposeMatrixd(const GLdouble *m)
- {
- Internal("error_glMultTransposeMatrixd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultTransposeMatrixd)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultTransposeMatrixd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultTransposeMatrixf(const GLfloat *m)
- {
- Internal("error_glMultTransposeMatrixf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultTransposeMatrixf)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultTransposeMatrixf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1d(GLenum target, GLdouble s)
- {
- Internal("error_glMultiTexCoord1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1d)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1dv(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1dv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1f(GLenum target, GLfloat s)
- {
- Internal("error_glMultiTexCoord1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1f)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1fv(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord1fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1fv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1i(GLenum target, GLint s)
- {
- Internal("error_glMultiTexCoord1i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1i)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1iv(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord1iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1iv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1s(GLenum target, GLshort s)
- {
- Internal("error_glMultiTexCoord1s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1s)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1sv(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord1sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1sv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t)
- {
- Internal("error_glMultiTexCoord2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2d)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2dv(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2dv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t)
- {
- Internal("error_glMultiTexCoord2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2f)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2fv(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2fv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2i(GLenum target, GLint s, GLint t)
- {
- Internal("error_glMultiTexCoord2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2i)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2iv(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2iv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2s(GLenum target, GLshort s, GLshort t)
- {
- Internal("error_glMultiTexCoord2s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2s)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2sv(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord2sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2sv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r)
- {
- Internal("error_glMultiTexCoord3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3d)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3dv(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3dv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r)
- {
- Internal("error_glMultiTexCoord3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3f)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3fv(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3fv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r)
- {
- Internal("error_glMultiTexCoord3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3i)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3iv(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3iv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r)
- {
- Internal("error_glMultiTexCoord3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3s)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3sv(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3sv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
- {
- Internal("error_glMultiTexCoord4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4d)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4dv(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4dv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
- {
- Internal("error_glMultiTexCoord4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4f)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4fv(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4fv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r, GLint q)
- {
- Internal("error_glMultiTexCoord4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4i)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4iv(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4iv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
- {
- Internal("error_glMultiTexCoord4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4s)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4sv(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4sv)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSampleCoverage(GLclampf value, GLboolean invert)
- {
- Internal("error_glSampleCoverage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSampleCoverage)(value, invert);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSampleCoverage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_1_4
- static void REGAL_CALL error_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
- {
- Internal("error_glBlendFuncSeparate","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFuncSeparate)(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFuncSeparate : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogCoordPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glFogCoordPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogCoordPointer)(type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogCoordPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogCoordd(GLdouble coord)
- {
- Internal("error_glFogCoordd","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogCoordd)(coord);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogCoordd : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogCoorddv(const GLdouble *coord)
- {
- Internal("error_glFogCoorddv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogCoorddv)(coord);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogCoorddv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogCoordf(GLfloat coord)
- {
- Internal("error_glFogCoordf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogCoordf)(coord);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogCoordf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFogCoordfv(const GLfloat *coord)
- {
- Internal("error_glFogCoordfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFogCoordfv)(coord);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFogCoordfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
- {
- Internal("error_glMultiDrawArrays","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawArrays)(mode, first, count, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawArrays : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid * const *indices, GLsizei primcount)
- {
- Internal("error_glMultiDrawElements","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawElements)(mode, count, type, indices, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawElements : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPointParameterf(GLenum pname, GLfloat param)
- {
- Internal("error_glPointParameterf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointParameterf)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointParameterf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPointParameterfv(GLenum pname, const GLfloat *params)
- {
- Internal("error_glPointParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointParameterfv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPointParameteri(GLenum pname, GLint param)
- {
- Internal("error_glPointParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointParameteri)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPointParameteriv(GLenum pname, const GLint *params)
- {
- Internal("error_glPointParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointParameteriv)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue)
- {
- Internal("error_glSecondaryColor3b","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3b)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3b : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3bv(const GLbyte *v)
- {
- Internal("error_glSecondaryColor3bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3bv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue)
- {
- Internal("error_glSecondaryColor3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3d)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3dv(const GLdouble *v)
- {
- Internal("error_glSecondaryColor3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3f(GLfloat red, GLfloat green, GLfloat blue)
- {
- Internal("error_glSecondaryColor3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3f)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3fv(const GLfloat *v)
- {
- Internal("error_glSecondaryColor3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3i(GLint red, GLint green, GLint blue)
- {
- Internal("error_glSecondaryColor3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3i)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3iv(const GLint *v)
- {
- Internal("error_glSecondaryColor3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3s(GLshort red, GLshort green, GLshort blue)
- {
- Internal("error_glSecondaryColor3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3s)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3sv(const GLshort *v)
- {
- Internal("error_glSecondaryColor3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue)
- {
- Internal("error_glSecondaryColor3ub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3ub)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3ub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3ubv(const GLubyte *v)
- {
- Internal("error_glSecondaryColor3ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3ubv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue)
- {
- Internal("error_glSecondaryColor3ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3ui)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3uiv(const GLuint *v)
- {
- Internal("error_glSecondaryColor3uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3uiv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3us(GLushort red, GLushort green, GLushort blue)
- {
- Internal("error_glSecondaryColor3us","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3us)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3us : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColor3usv(const GLushort *v)
- {
- Internal("error_glSecondaryColor3usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColor3usv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColor3usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glSecondaryColorPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSecondaryColorPointer)(size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSecondaryColorPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2d(GLdouble x, GLdouble y)
- {
- Internal("error_glWindowPos2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2d)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2dv(const GLdouble *p)
- {
- Internal("error_glWindowPos2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2dv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2f(GLfloat x, GLfloat y)
- {
- Internal("error_glWindowPos2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2f)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2fv(const GLfloat *p)
- {
- Internal("error_glWindowPos2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2fv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2i(GLint x, GLint y)
- {
- Internal("error_glWindowPos2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2i)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2iv(const GLint *p)
- {
- Internal("error_glWindowPos2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2iv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2s(GLshort x, GLshort y)
- {
- Internal("error_glWindowPos2s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2s)(x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos2sv(const GLshort *p)
- {
- Internal("error_glWindowPos2sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos2sv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos2sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3d(GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glWindowPos3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3d)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3dv(const GLdouble *p)
- {
- Internal("error_glWindowPos3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3dv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glWindowPos3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3f)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3fv(const GLfloat *p)
- {
- Internal("error_glWindowPos3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3fv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3i(GLint x, GLint y, GLint z)
- {
- Internal("error_glWindowPos3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3i)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3iv(const GLint *p)
- {
- Internal("error_glWindowPos3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3iv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3s(GLshort x, GLshort y, GLshort z)
- {
- Internal("error_glWindowPos3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3s)(x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glWindowPos3sv(const GLshort *p)
- {
- Internal("error_glWindowPos3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWindowPos3sv)(p);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWindowPos3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_1_5
- static void REGAL_CALL error_glBeginQuery(GLenum target, GLuint id)
- {
- Internal("error_glBeginQuery","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginQuery)(target, id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginQuery : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindBuffer(GLenum target, GLuint buffer)
- {
- Internal("error_glBindBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindBuffer)(target, buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
- {
- Internal("error_glBufferData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBufferData)(target, size, data, usage);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBufferData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)
- {
- Internal("error_glBufferSubData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBufferSubData)(target, offset, size, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBufferSubData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteBuffers(GLsizei n, const GLuint *buffers)
- {
- Internal("error_glDeleteBuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteBuffers)(n, buffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteBuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteQueries(GLsizei n, const GLuint *ids)
- {
- Internal("error_glDeleteQueries","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteQueries)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteQueries : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndQuery(GLenum target)
- {
- Internal("error_glEndQuery","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndQuery)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndQuery : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenBuffers(GLsizei n, GLuint *buffers)
- {
- Internal("error_glGenBuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenBuffers)(n, buffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenBuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenQueries(GLsizei n, GLuint *ids)
- {
- Internal("error_glGenQueries","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenQueries)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenQueries : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetBufferParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetBufferParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetBufferParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetBufferPointerv(GLenum target, GLenum pname, GLvoid **params)
- {
- Internal("error_glGetBufferPointerv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetBufferPointerv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetBufferPointerv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data)
- {
- Internal("error_glGetBufferSubData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetBufferSubData)(target, offset, size, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetBufferSubData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryObjectiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectiv)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params)
- {
- Internal("error_glGetQueryObjectuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectuiv)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryiv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryiv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsBuffer(GLuint buffer)
- {
- Internal("error_glIsBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsBuffer)(buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glIsQuery(GLuint id)
- {
- Internal("error_glIsQuery","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsQuery)(id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsQuery : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLvoid *REGAL_CALL error_glMapBuffer(GLenum target, GLenum access)
- {
- Internal("error_glMapBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLvoid * ret = _next->call(&_next->glMapBuffer)(target, access);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glUnmapBuffer(GLenum target)
- {
- Internal("error_glUnmapBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glUnmapBuffer)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUnmapBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_VERSION_2_0
- static void REGAL_CALL error_glAttachShader(GLuint program, GLuint shader)
- {
- Internal("error_glAttachShader","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glAttachShader)(program, shader);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAttachShader : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindAttribLocation(GLuint program, GLuint index, const GLchar *name)
- {
- Internal("error_glBindAttribLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindAttribLocation)(program, index, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindAttribLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
- {
- Internal("error_glBlendEquationSeparate","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationSeparate)(modeRGB, modeAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationSeparate : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompileShader(GLuint shader)
- {
- Internal("error_glCompileShader","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompileShader)(shader);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompileShader : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glCreateProgram(void)
- {
- Internal("error_glCreateProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glCreateProgram)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCreateProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLuint REGAL_CALL error_glCreateShader(GLenum type)
- {
- Internal("error_glCreateShader","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glCreateShader)(type);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCreateShader : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glDeleteProgram(GLuint program)
- {
- Internal("error_glDeleteProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteProgram)(program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteShader(GLuint shader)
- {
- Internal("error_glDeleteShader","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteShader)(shader);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteShader : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDetachShader(GLuint program, GLuint shader)
- {
- Internal("error_glDetachShader","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDetachShader)(program, shader);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDetachShader : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDisableVertexAttribArray(GLuint index)
- {
- Internal("error_glDisableVertexAttribArray","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDisableVertexAttribArray)(index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDisableVertexAttribArray : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawBuffers(GLsizei n, const GLenum *bufs)
- {
- Internal("error_glDrawBuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawBuffers)(n, bufs);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawBuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnableVertexAttribArray(GLuint index)
- {
- Internal("error_glEnableVertexAttribArray","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnableVertexAttribArray)(index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnableVertexAttribArray : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
- {
- Internal("error_glGetActiveAttrib","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveAttrib)(program, index, bufSize, length, size, type, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveAttrib : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
- {
- Internal("error_glGetActiveUniform","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveUniform)(program, index, bufSize, length, size, type, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveUniform : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
- {
- Internal("error_glGetAttachedShaders","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetAttachedShaders)(program, maxCount, count, shaders);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetAttachedShaders : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLint REGAL_CALL error_glGetAttribLocation(GLuint program, const GLchar *name)
- {
- Internal("error_glGetAttribLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetAttribLocation)(program, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetAttribLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
- {
- Internal("error_glGetProgramInfoLog","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramInfoLog)(program, bufSize, length, infoLog);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramInfoLog : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetProgramiv(GLuint program, GLenum pname, GLint *params)
- {
- Internal("error_glGetProgramiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramiv)(program, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
- {
- Internal("error_glGetShaderInfoLog","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetShaderInfoLog)(shader, bufSize, length, infoLog);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetShaderInfoLog : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
- {
- Internal("error_glGetShaderSource","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetShaderSource)(shader, bufSize, length, source);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetShaderSource : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
- {
- Internal("error_glGetShaderiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetShaderiv)(shader, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetShaderiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLint REGAL_CALL error_glGetUniformLocation(GLuint program, const GLchar *name)
- {
- Internal("error_glGetUniformLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetUniformLocation)(program, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetUniformfv(GLuint program, GLint location, GLfloat *params)
- {
- Internal("error_glGetUniformfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformfv)(program, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetUniformiv(GLuint program, GLint location, GLint *params)
- {
- Internal("error_glGetUniformiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformiv)(program, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid **pointer)
- {
- Internal("error_glGetVertexAttribPointerv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribPointerv)(index, pname, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribPointerv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params)
- {
- Internal("error_glGetVertexAttribdv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribdv)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribdv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetVertexAttribfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribfv)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
- {
- Internal("error_glGetVertexAttribiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribiv)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsProgram(GLuint program)
- {
- Internal("error_glIsProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsProgram)(program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glIsShader(GLuint shader)
- {
- Internal("error_glIsShader","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsShader)(shader);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsShader : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glLinkProgram(GLuint program)
- {
- Internal("error_glLinkProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLinkProgram)(program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLinkProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glShaderSource(GLuint shader, GLsizei count, const GLchar * const *string, const GLint *length)
- {
- Internal("error_glShaderSource","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glShaderSource)(shader, count, string, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glShaderSource : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
- {
- Internal("error_glStencilFuncSeparate","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilFuncSeparate)(face, func, ref, mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilFuncSeparate : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glStencilMaskSeparate(GLenum face, GLuint mask)
- {
- Internal("error_glStencilMaskSeparate","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilMaskSeparate)(face, mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilMaskSeparate : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
- {
- Internal("error_glStencilOpSeparate","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilOpSeparate)(face, fail, zfail, zpass);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilOpSeparate : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1f(GLint location, GLfloat v0)
- {
- Internal("error_glUniform1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1f)(location, v0);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1fv(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform1fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1fv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1i(GLint location, GLint v0)
- {
- Internal("error_glUniform1i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1i)(location, v0);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1iv(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform1iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1iv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2f(GLint location, GLfloat v0, GLfloat v1)
- {
- Internal("error_glUniform2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2f)(location, v0, v1);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2fv(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2fv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2i(GLint location, GLint v0, GLint v1)
- {
- Internal("error_glUniform2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2i)(location, v0, v1);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2iv(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2iv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
- {
- Internal("error_glUniform3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3f)(location, v0, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3fv(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3fv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3i(GLint location, GLint v0, GLint v1, GLint v2)
- {
- Internal("error_glUniform3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3i)(location, v0, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3iv(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3iv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
- {
- Internal("error_glUniform4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4f)(location, v0, v1, v2, v3);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4fv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
- {
- Internal("error_glUniform4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4i)(location, v0, v1, v2, v3);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4iv(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4iv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUseProgram(GLuint program)
- {
- Internal("error_glUseProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUseProgram)(program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUseProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glValidateProgram(GLuint program)
- {
- Internal("error_glValidateProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glValidateProgram)(program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glValidateProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib1d(GLuint index, GLdouble x)
- {
- Internal("error_glVertexAttrib1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib1d)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib1dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttrib1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib1dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib1f(GLuint index, GLfloat x)
- {
- Internal("error_glVertexAttrib1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib1f)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib1fv(GLuint index, const GLfloat *v)
- {
- Internal("error_glVertexAttrib1fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib1fv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib1fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib1s(GLuint index, GLshort x)
- {
- Internal("error_glVertexAttrib1s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib1s)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib1s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib1sv(GLuint index, const GLshort *v)
- {
- Internal("error_glVertexAttrib1sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib1sv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib1sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y)
- {
- Internal("error_glVertexAttrib2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib2d)(index, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib2dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttrib2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib2dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y)
- {
- Internal("error_glVertexAttrib2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib2f)(index, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib2fv(GLuint index, const GLfloat *v)
- {
- Internal("error_glVertexAttrib2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib2fv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib2s(GLuint index, GLshort x, GLshort y)
- {
- Internal("error_glVertexAttrib2s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib2s)(index, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib2s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib2sv(GLuint index, const GLshort *v)
- {
- Internal("error_glVertexAttrib2sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib2sv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib2sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glVertexAttrib3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib3d)(index, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib3dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttrib3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib3dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glVertexAttrib3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib3f)(index, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib3fv(GLuint index, const GLfloat *v)
- {
- Internal("error_glVertexAttrib3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib3fv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z)
- {
- Internal("error_glVertexAttrib3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib3s)(index, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib3sv(GLuint index, const GLshort *v)
- {
- Internal("error_glVertexAttrib3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib3sv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Nbv(GLuint index, const GLbyte *v)
- {
- Internal("error_glVertexAttrib4Nbv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Nbv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Nbv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Niv(GLuint index, const GLint *v)
- {
- Internal("error_glVertexAttrib4Niv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Niv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Niv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Nsv(GLuint index, const GLshort *v)
- {
- Internal("error_glVertexAttrib4Nsv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Nsv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Nsv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
- {
- Internal("error_glVertexAttrib4Nub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Nub)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Nub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Nubv(GLuint index, const GLubyte *v)
- {
- Internal("error_glVertexAttrib4Nubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Nubv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Nubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Nuiv(GLuint index, const GLuint *v)
- {
- Internal("error_glVertexAttrib4Nuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Nuiv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Nuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4Nusv(GLuint index, const GLushort *v)
- {
- Internal("error_glVertexAttrib4Nusv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4Nusv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4Nusv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4bv(GLuint index, const GLbyte *v)
- {
- Internal("error_glVertexAttrib4bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4bv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
- {
- Internal("error_glVertexAttrib4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4d)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttrib4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
- {
- Internal("error_glVertexAttrib4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4f)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4fv(GLuint index, const GLfloat *v)
- {
- Internal("error_glVertexAttrib4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4fv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4iv(GLuint index, const GLint *v)
- {
- Internal("error_glVertexAttrib4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4iv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
- {
- Internal("error_glVertexAttrib4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4s)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4sv(GLuint index, const GLshort *v)
- {
- Internal("error_glVertexAttrib4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4sv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4ubv(GLuint index, const GLubyte *v)
- {
- Internal("error_glVertexAttrib4ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4ubv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4uiv(GLuint index, const GLuint *v)
- {
- Internal("error_glVertexAttrib4uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4uiv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttrib4usv(GLuint index, const GLushort *v)
- {
- Internal("error_glVertexAttrib4usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttrib4usv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttrib4usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glVertexAttribPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribPointer)(index, size, type, normalized, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_2_1
- static void REGAL_CALL error_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix2x3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2x3fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2x3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix2x4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2x4fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2x4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix3x2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3x2fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3x2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix3x4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3x4fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3x4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix4x2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4x2fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4x2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix4x3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4x3fv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4x3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_3_0
- static void REGAL_CALL error_glBeginConditionalRender(GLuint id, GLenum mode)
- {
- Internal("error_glBeginConditionalRender","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginConditionalRender)(id, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginConditionalRender : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBeginTransformFeedback(GLenum primitiveMode)
- {
- Internal("error_glBeginTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginTransformFeedback)(primitiveMode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name)
- {
- Internal("error_glBindFragDataLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindFragDataLocation)(program, color, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindFragDataLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClampColor(GLenum target, GLenum clamp)
- {
- Internal("error_glClampColor","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClampColor)(target, clamp);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClampColor : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
- {
- Internal("error_glClearBufferfi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearBufferfi)(buffer, drawbuffer, depth, stencil);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearBufferfi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value)
- {
- Internal("error_glClearBufferfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearBufferfv)(buffer, drawbuffer, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearBufferfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value)
- {
- Internal("error_glClearBufferiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearBufferiv)(buffer, drawbuffer, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearBufferiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value)
- {
- Internal("error_glClearBufferuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearBufferuiv)(buffer, drawbuffer, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearBufferuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
- {
- Internal("error_glColorMaski","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorMaski)(index, r, g, b, a);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorMaski : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDisablei(GLenum cap, GLuint index)
- {
- Internal("error_glDisablei","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDisablei)(cap, index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDisablei : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnablei(GLenum cap, GLuint index)
- {
- Internal("error_glEnablei","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnablei)(cap, index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnablei : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndConditionalRender(void)
- {
- Internal("error_glEndConditionalRender","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndConditionalRender)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndConditionalRender : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndTransformFeedback(void)
- {
- Internal("error_glEndTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndTransformFeedback)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetBooleani_v(GLenum target, GLuint index, GLboolean *data)
- {
- Internal("error_glGetBooleani_v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetBooleani_v)(target, index, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetBooleani_v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLint REGAL_CALL error_glGetFragDataLocation(GLuint program, const GLchar *name)
- {
- Internal("error_glGetFragDataLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetFragDataLocation)(program, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetFragDataLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static const GLubyte *REGAL_CALL error_glGetStringi(GLenum name, GLuint index)
- {
- Internal("error_glGetStringi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- const GLubyte * ret = _next->call(&_next->glGetStringi)(name, index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetStringi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetTexParameterIiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexParameterIiv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexParameterIiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params)
- {
- Internal("error_glGetTexParameterIuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexParameterIuiv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexParameterIuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name)
- {
- Internal("error_glGetTransformFeedbackVarying","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTransformFeedbackVarying)(program, index, bufSize, length, size, type, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTransformFeedbackVarying : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetUniformuiv(GLuint program, GLint location, GLuint *params)
- {
- Internal("error_glGetUniformuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformuiv)(program, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params)
- {
- Internal("error_glGetVertexAttribIiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribIiv)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribIiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params)
- {
- Internal("error_glGetVertexAttribIuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribIuiv)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribIuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsEnabledi(GLenum target, GLuint index)
- {
- Internal("error_glIsEnabledi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsEnabledi)(target, index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsEnabledi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glTexParameterIiv(GLenum target, GLenum pname, const GLint *params)
- {
- Internal("error_glTexParameterIiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexParameterIiv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexParameterIiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params)
- {
- Internal("error_glTexParameterIuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexParameterIuiv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexParameterIuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar * const *varyings, GLenum bufferMode)
- {
- Internal("error_glTransformFeedbackVaryings","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTransformFeedbackVaryings)(program, count, varyings, bufferMode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTransformFeedbackVaryings : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1ui(GLint location, GLuint v0)
- {
- Internal("error_glUniform1ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1ui)(location, v0);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1uiv(GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glUniform1uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1uiv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2ui(GLint location, GLuint v0, GLuint v1)
- {
- Internal("error_glUniform2ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2ui)(location, v0, v1);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2uiv(GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glUniform2uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2uiv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2)
- {
- Internal("error_glUniform3ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3ui)(location, v0, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3uiv(GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glUniform3uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3uiv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
- {
- Internal("error_glUniform4ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4ui)(location, v0, v1, v2, v3);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4uiv(GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glUniform4uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4uiv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI1i(GLuint index, GLint x)
- {
- Internal("error_glVertexAttribI1i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI1i)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI1i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI1iv(GLuint index, const GLint *v)
- {
- Internal("error_glVertexAttribI1iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI1iv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI1iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI1ui(GLuint index, GLuint x)
- {
- Internal("error_glVertexAttribI1ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI1ui)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI1ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI1uiv(GLuint index, const GLuint *v)
- {
- Internal("error_glVertexAttribI1uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI1uiv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI1uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI2i(GLuint index, GLint x, GLint y)
- {
- Internal("error_glVertexAttribI2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI2i)(index, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI2iv(GLuint index, const GLint *v)
- {
- Internal("error_glVertexAttribI2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI2iv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI2ui(GLuint index, GLuint x, GLuint y)
- {
- Internal("error_glVertexAttribI2ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI2ui)(index, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI2ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI2uiv(GLuint index, const GLuint *v)
- {
- Internal("error_glVertexAttribI2uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI2uiv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI2uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI3i(GLuint index, GLint x, GLint y, GLint z)
- {
- Internal("error_glVertexAttribI3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI3i)(index, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI3iv(GLuint index, const GLint *v)
- {
- Internal("error_glVertexAttribI3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI3iv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI3ui(GLuint index, GLuint x, GLuint y, GLuint z)
- {
- Internal("error_glVertexAttribI3ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI3ui)(index, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI3ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI3uiv(GLuint index, const GLuint *v)
- {
- Internal("error_glVertexAttribI3uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI3uiv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI3uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4bv(GLuint index, const GLbyte *v)
- {
- Internal("error_glVertexAttribI4bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4bv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w)
- {
- Internal("error_glVertexAttribI4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4i)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4iv(GLuint index, const GLint *v)
- {
- Internal("error_glVertexAttribI4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4iv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4sv(GLuint index, const GLshort *v)
- {
- Internal("error_glVertexAttribI4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4sv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4ubv(GLuint index, const GLubyte *v)
- {
- Internal("error_glVertexAttribI4ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4ubv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
- {
- Internal("error_glVertexAttribI4ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4ui)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4uiv(GLuint index, const GLuint *v)
- {
- Internal("error_glVertexAttribI4uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4uiv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribI4usv(GLuint index, const GLushort *v)
- {
- Internal("error_glVertexAttribI4usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribI4usv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribI4usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glVertexAttribIPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribIPointer)(index, size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribIPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_3_1
- static void REGAL_CALL error_glDrawArraysInstanced(GLenum mode, GLint start, GLsizei count, GLsizei primcount)
- {
- Internal("error_glDrawArraysInstanced","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawArraysInstanced)(mode, start, count, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawArraysInstanced : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)
- {
- Internal("error_glDrawElementsInstanced","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsInstanced)(mode, count, type, indices, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsInstanced : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPrimitiveRestartIndex(GLuint index)
- {
- Internal("error_glPrimitiveRestartIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPrimitiveRestartIndex)(index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPrimitiveRestartIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer)
- {
- Internal("error_glTexBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexBuffer)(target, internalformat, buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_3_2
- static void REGAL_CALL error_glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level)
- {
- Internal("error_glFramebufferTexture","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTexture)(target, attachment, texture, level);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTexture : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params)
- {
- Internal("error_glGetBufferParameteri64v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetBufferParameteri64v)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetBufferParameteri64v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data)
- {
- Internal("error_glGetInteger64i_v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetInteger64i_v)(target, index, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetInteger64i_v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_3_3
- static void REGAL_CALL error_glVertexAttribDivisor(GLuint index, GLuint divisor)
- {
- Internal("error_glVertexAttribDivisor","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribDivisor)(index, divisor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribDivisor : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_VERSION_4_0
- static void REGAL_CALL error_glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha)
- {
- Internal("error_glBlendEquationSeparatei","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationSeparatei)(buf, modeRGB, modeAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationSeparatei : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendEquationi(GLuint buf, GLenum mode)
- {
- Internal("error_glBlendEquationi","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationi)(buf, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationi : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- {
- Internal("error_glBlendFuncSeparatei","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFuncSeparatei)(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFuncSeparatei : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFunci(GLuint buf, GLenum src, GLenum dst)
- {
- Internal("error_glBlendFunci","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFunci)(buf, src, dst);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFunci : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_3DFX_tbuffer
- static void REGAL_CALL error_glTbufferMask3DFX(GLuint mask)
- {
- Internal("error_glTbufferMask3DFX","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTbufferMask3DFX)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTbufferMask3DFX : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_debug_output
- static void REGAL_CALL error_glDebugMessageCallbackAMD(GLDEBUGPROCAMD callback, GLvoid *userParam)
- {
- Internal("error_glDebugMessageCallbackAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDebugMessageCallbackAMD)(callback, userParam);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDebugMessageCallbackAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDebugMessageEnableAMD(GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
- {
- Internal("error_glDebugMessageEnableAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDebugMessageEnableAMD)(category, severity, count, ids, enabled);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDebugMessageEnableAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDebugMessageInsertAMD(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf)
- {
- Internal("error_glDebugMessageInsertAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDebugMessageInsertAMD)(category, severity, id, length, buf);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDebugMessageInsertAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glGetDebugMessageLogAMD(GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message)
- {
- Internal("error_glGetDebugMessageLogAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glGetDebugMessageLogAMD)(count, bufsize, categories, severities, ids, lengths, message);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetDebugMessageLogAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_AMD_draw_buffers_blend
- static void REGAL_CALL error_glBlendEquationIndexedAMD(GLuint buf, GLenum mode)
- {
- Internal("error_glBlendEquationIndexedAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationIndexedAMD)(buf, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationIndexedAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendEquationSeparateIndexedAMD(GLuint buf, GLenum modeRGB, GLenum modeAlpha)
- {
- Internal("error_glBlendEquationSeparateIndexedAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationSeparateIndexedAMD)(buf, modeRGB, modeAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationSeparateIndexedAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFuncIndexedAMD(GLuint buf, GLenum src, GLenum dst)
- {
- Internal("error_glBlendFuncIndexedAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFuncIndexedAMD)(buf, src, dst);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFuncIndexedAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFuncSeparateIndexedAMD(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- {
- Internal("error_glBlendFuncSeparateIndexedAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFuncSeparateIndexedAMD)(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFuncSeparateIndexedAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_interleaved_elements
- static void REGAL_CALL error_glVertexAttribParameteriAMD(GLuint index, GLenum pname, GLint param)
- {
- Internal("error_glVertexAttribParameteriAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribParameteriAMD)(index, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribParameteriAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_multi_draw_indirect
- static void REGAL_CALL error_glMultiDrawArraysIndirectAMD(GLenum mode, const GLvoid *indirect, GLsizei primcount, GLsizei stride)
- {
- Internal("error_glMultiDrawArraysIndirectAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawArraysIndirectAMD)(mode, indirect, primcount, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawArraysIndirectAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawElementsIndirectAMD(GLenum mode, GLenum type, const GLvoid *indirect, GLsizei primcount, GLsizei stride)
- {
- Internal("error_glMultiDrawElementsIndirectAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawElementsIndirectAMD)(mode, type, indirect, primcount, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawElementsIndirectAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_name_gen_delete
- static void REGAL_CALL error_glDeleteNamesAMD(GLenum identifier, GLuint num, const GLuint *names)
- {
- Internal("error_glDeleteNamesAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteNamesAMD)(identifier, num, names);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteNamesAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenNamesAMD(GLenum identifier, GLuint num, GLuint *names)
- {
- Internal("error_glGenNamesAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenNamesAMD)(identifier, num, names);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenNamesAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsNameAMD(GLenum identifier, GLuint name)
- {
- Internal("error_glIsNameAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsNameAMD)(identifier, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsNameAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_AMD_performance_monitor
- static void REGAL_CALL error_glBeginPerfMonitorAMD(GLuint monitor)
- {
- Internal("error_glBeginPerfMonitorAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginPerfMonitorAMD)(monitor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginPerfMonitorAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeletePerfMonitorsAMD(GLsizei n, GLuint *monitors)
- {
- Internal("error_glDeletePerfMonitorsAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeletePerfMonitorsAMD)(n, monitors);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeletePerfMonitorsAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndPerfMonitorAMD(GLuint monitor)
- {
- Internal("error_glEndPerfMonitorAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndPerfMonitorAMD)(monitor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndPerfMonitorAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenPerfMonitorsAMD(GLsizei n, GLuint *monitors)
- {
- Internal("error_glGenPerfMonitorsAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenPerfMonitorsAMD)(n, monitors);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenPerfMonitorsAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten)
- {
- Internal("error_glGetPerfMonitorCounterDataAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPerfMonitorCounterDataAMD)(monitor, pname, dataSize, data, bytesWritten);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPerfMonitorCounterDataAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, GLvoid *data)
- {
- Internal("error_glGetPerfMonitorCounterInfoAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPerfMonitorCounterInfoAMD)(group, counter, pname, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPerfMonitorCounterInfoAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString)
- {
- Internal("error_glGetPerfMonitorCounterStringAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPerfMonitorCounterStringAMD)(group, counter, bufSize, length, counterString);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPerfMonitorCounterStringAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPerfMonitorCountersAMD(GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei countersSize, GLuint *counters)
- {
- Internal("error_glGetPerfMonitorCountersAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPerfMonitorCountersAMD)(group, numCounters, maxActiveCounters, countersSize, counters);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPerfMonitorCountersAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString)
- {
- Internal("error_glGetPerfMonitorGroupStringAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPerfMonitorGroupStringAMD)(group, bufSize, length, groupString);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPerfMonitorGroupStringAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetPerfMonitorGroupsAMD(GLint *numGroups, GLsizei groupsSize, GLuint *groups)
- {
- Internal("error_glGetPerfMonitorGroupsAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetPerfMonitorGroupsAMD)(numGroups, groupsSize, groups);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetPerfMonitorGroupsAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList)
- {
- Internal("error_glSelectPerfMonitorCountersAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSelectPerfMonitorCountersAMD)(monitor, enable, group, numCounters, counterList);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSelectPerfMonitorCountersAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_sample_positions
- static void REGAL_CALL error_glSetMultisamplefvAMD(GLenum pname, GLuint index, const GLfloat *val)
- {
- Internal("error_glSetMultisamplefvAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSetMultisamplefvAMD)(pname, index, val);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSetMultisamplefvAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_sparse_texture
- static void REGAL_CALL error_glTexStorageSparseAMD(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags)
- {
- Internal("error_glTexStorageSparseAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexStorageSparseAMD)(target, internalFormat, width, height, depth, layers, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexStorageSparseAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureStorageSparseAMD(GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags)
- {
- Internal("error_glTextureStorageSparseAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureStorageSparseAMD)(texture, target, internalFormat, width, height, depth, layers, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureStorageSparseAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_stencil_operation_extended
- static void REGAL_CALL error_glStencilOpValueAMD(GLenum face, GLuint value)
- {
- Internal("error_glStencilOpValueAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glStencilOpValueAMD)(face, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glStencilOpValueAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_AMD_vertex_shader_tessellator
- static void REGAL_CALL error_glTessellationFactorAMD(GLfloat factor)
- {
- Internal("error_glTessellationFactorAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTessellationFactorAMD)(factor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTessellationFactorAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTessellationModeAMD(GLenum mode)
- {
- Internal("error_glTessellationModeAMD","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTessellationModeAMD)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTessellationModeAMD : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ANGLE_framebuffer_blit
- static void REGAL_CALL error_glBlitFramebufferANGLE(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
- {
- Internal("error_glBlitFramebufferANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlitFramebufferANGLE)(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlitFramebufferANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ANGLE_framebuffer_multisample
- static void REGAL_CALL error_glRenderbufferStorageMultisampleANGLE(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
- {
- Internal("error_glRenderbufferStorageMultisampleANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRenderbufferStorageMultisampleANGLE)(target, samples, internalformat, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRenderbufferStorageMultisampleANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ANGLE_instanced_arrays
- static void REGAL_CALL error_glDrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount)
- {
- Internal("error_glDrawArraysInstancedANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawArraysInstancedANGLE)(mode, first, count, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawArraysInstancedANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)
- {
- Internal("error_glDrawElementsInstancedANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsInstancedANGLE)(mode, count, type, indices, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsInstancedANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribDivisorANGLE(GLuint index, GLuint divisor)
- {
- Internal("error_glVertexAttribDivisorANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribDivisorANGLE)(index, divisor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribDivisorANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ANGLE_timer_query
- static void REGAL_CALL error_glBeginQueryANGLE(GLenum target, GLuint id)
- {
- Internal("error_glBeginQueryANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginQueryANGLE)(target, id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginQueryANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteQueriesANGLE(GLsizei n, const GLuint *ids)
- {
- Internal("error_glDeleteQueriesANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteQueriesANGLE)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteQueriesANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndQueryANGLE(GLenum target)
- {
- Internal("error_glEndQueryANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndQueryANGLE)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndQueryANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenQueriesANGLE(GLsizei n, GLuint *ids)
- {
- Internal("error_glGenQueriesANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenQueriesANGLE)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenQueriesANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjecti64vANGLE(GLuint id, GLenum pname, GLint64 *params)
- {
- Internal("error_glGetQueryObjecti64vANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjecti64vANGLE)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjecti64vANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectivANGLE(GLuint id, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryObjectivANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectivANGLE)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectivANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectui64vANGLE(GLuint id, GLenum pname, GLuint64 *params)
- {
- Internal("error_glGetQueryObjectui64vANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectui64vANGLE)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectui64vANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectuivANGLE(GLuint id, GLenum pname, GLuint *params)
- {
- Internal("error_glGetQueryObjectuivANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectuivANGLE)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectuivANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryivANGLE(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryivANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryivANGLE)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryivANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsQueryANGLE(GLuint id)
- {
- Internal("error_glIsQueryANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsQueryANGLE)(id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsQueryANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glQueryCounterANGLE(GLuint id, GLenum target)
- {
- Internal("error_glQueryCounterANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glQueryCounterANGLE)(id, target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glQueryCounterANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ANGLE_translated_shader_source
- static void REGAL_CALL error_glGetTranslatedShaderSourceANGLE(GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source)
- {
- Internal("error_glGetTranslatedShaderSourceANGLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTranslatedShaderSourceANGLE)(shader, bufsize, length, source);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTranslatedShaderSourceANGLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_copy_texture_levels
- static void REGAL_CALL error_glCopyTextureLevelsAPPLE(GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount)
- {
- Internal("error_glCopyTextureLevelsAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyTextureLevelsAPPLE)(destinationTexture, sourceTexture, sourceBaseLevel, sourceLevelCount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyTextureLevelsAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_element_array
- static void REGAL_CALL error_glDrawElementArrayAPPLE(GLenum mode, GLint first, GLsizei count)
- {
- Internal("error_glDrawElementArrayAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementArrayAPPLE)(mode, first, count);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementArrayAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawRangeElementArrayAPPLE(GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count)
- {
- Internal("error_glDrawRangeElementArrayAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawRangeElementArrayAPPLE)(mode, start, end, first, count);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawRangeElementArrayAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glElementPointerAPPLE(GLenum type, const GLvoid *pointer)
- {
- Internal("error_glElementPointerAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glElementPointerAPPLE)(type, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glElementPointerAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawElementArrayAPPLE(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
- {
- Internal("error_glMultiDrawElementArrayAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawElementArrayAPPLE)(mode, first, count, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawElementArrayAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawRangeElementArrayAPPLE(GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount)
- {
- Internal("error_glMultiDrawRangeElementArrayAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawRangeElementArrayAPPLE)(mode, start, end, first, count, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawRangeElementArrayAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_fence
- static void REGAL_CALL error_glDeleteFencesAPPLE(GLsizei n, const GLuint *fences)
- {
- Internal("error_glDeleteFencesAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteFencesAPPLE)(n, fences);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteFencesAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFinishFenceAPPLE(GLuint fence)
- {
- Internal("error_glFinishFenceAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFinishFenceAPPLE)(fence);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFinishFenceAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFinishObjectAPPLE(GLenum object, GLint name)
- {
- Internal("error_glFinishObjectAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFinishObjectAPPLE)(object, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFinishObjectAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenFencesAPPLE(GLsizei n, GLuint *fences)
- {
- Internal("error_glGenFencesAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenFencesAPPLE)(n, fences);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenFencesAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsFenceAPPLE(GLuint fence)
- {
- Internal("error_glIsFenceAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsFenceAPPLE)(fence);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsFenceAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glSetFenceAPPLE(GLuint fence)
- {
- Internal("error_glSetFenceAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSetFenceAPPLE)(fence);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSetFenceAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glTestFenceAPPLE(GLuint fence)
- {
- Internal("error_glTestFenceAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glTestFenceAPPLE)(fence);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTestFenceAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glTestObjectAPPLE(GLenum object, GLuint name)
- {
- Internal("error_glTestObjectAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glTestObjectAPPLE)(object, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTestObjectAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_APPLE_flush_buffer_range
- static void REGAL_CALL error_glBufferParameteriAPPLE(GLenum target, GLenum pname, GLint param)
- {
- Internal("error_glBufferParameteriAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBufferParameteriAPPLE)(target, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBufferParameteriAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFlushMappedBufferRangeAPPLE(GLenum target, GLintptr offset, GLsizeiptr size)
- {
- Internal("error_glFlushMappedBufferRangeAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFlushMappedBufferRangeAPPLE)(target, offset, size);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFlushMappedBufferRangeAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_flush_render
- static void REGAL_CALL error_glFinishRenderAPPLE(void)
- {
- Internal("error_glFinishRenderAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFinishRenderAPPLE)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFinishRenderAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFlushRenderAPPLE(void)
- {
- Internal("error_glFlushRenderAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFlushRenderAPPLE)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFlushRenderAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSwapAPPLE(void)
- {
- Internal("error_glSwapAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSwapAPPLE)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSwapAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_framebuffer_multisample
- static void REGAL_CALL error_glRenderbufferStorageMultisampleAPPLE(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
- {
- Internal("error_glRenderbufferStorageMultisampleAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRenderbufferStorageMultisampleAPPLE)(target, samples, internalformat, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRenderbufferStorageMultisampleAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glResolveMultisampleFramebufferAPPLE(void)
- {
- Internal("error_glResolveMultisampleFramebufferAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glResolveMultisampleFramebufferAPPLE)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glResolveMultisampleFramebufferAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_object_purgeable
- static void REGAL_CALL error_glGetObjectParameterivAPPLE(GLenum objectType, GLuint name, GLenum pname, GLint *params)
- {
- Internal("error_glGetObjectParameterivAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetObjectParameterivAPPLE)(objectType, name, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetObjectParameterivAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLenum REGAL_CALL error_glObjectPurgeableAPPLE(GLenum objectType, GLuint name, GLenum option)
- {
- Internal("error_glObjectPurgeableAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLenum ret = _next->call(&_next->glObjectPurgeableAPPLE)(objectType, name, option);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glObjectPurgeableAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLenum REGAL_CALL error_glObjectUnpurgeableAPPLE(GLenum objectType, GLuint name, GLenum option)
- {
- Internal("error_glObjectUnpurgeableAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLenum ret = _next->call(&_next->glObjectUnpurgeableAPPLE)(objectType, name, option);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glObjectUnpurgeableAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_APPLE_sync
- static GLenum REGAL_CALL error_glClientWaitSyncAPPLE(GLsync sync, GLbitfield flags, GLuint64 timeout)
- {
- Internal("error_glClientWaitSyncAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLenum ret = _next->call(&_next->glClientWaitSyncAPPLE)(sync, flags, timeout);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClientWaitSyncAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glDeleteSyncAPPLE(GLsync sync)
- {
- Internal("error_glDeleteSyncAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteSyncAPPLE)(sync);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteSyncAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLsync REGAL_CALL error_glFenceSyncAPPLE(GLenum condition, GLbitfield flags)
- {
- Internal("error_glFenceSyncAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLsync ret = _next->call(&_next->glFenceSyncAPPLE)(condition, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFenceSyncAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetInteger64vAPPLE(GLenum pname, GLint64 *params)
- {
- Internal("error_glGetInteger64vAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetInteger64vAPPLE)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetInteger64vAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSyncivAPPLE(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values)
- {
- Internal("error_glGetSyncivAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSyncivAPPLE)(sync, pname, bufSize, length, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSyncivAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsSyncAPPLE(GLsync sync)
- {
- Internal("error_glIsSyncAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsSyncAPPLE)(sync);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsSyncAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glWaitSyncAPPLE(GLsync sync, GLbitfield flags, GLuint64 timeout)
- {
- Internal("error_glWaitSyncAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWaitSyncAPPLE)(sync, flags, timeout);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWaitSyncAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_texture_range
- static void REGAL_CALL error_glGetTexParameterPointervAPPLE(GLenum target, GLenum pname, GLvoid **params)
- {
- Internal("error_glGetTexParameterPointervAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetTexParameterPointervAPPLE)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTexParameterPointervAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureRangeAPPLE(GLenum target, GLsizei length, const GLvoid *pointer)
- {
- Internal("error_glTextureRangeAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureRangeAPPLE)(target, length, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureRangeAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_vertex_array_object
- static void REGAL_CALL error_glBindVertexArrayAPPLE(GLuint array)
- {
- Internal("error_glBindVertexArrayAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindVertexArrayAPPLE)(array);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindVertexArrayAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteVertexArraysAPPLE(GLsizei n, const GLuint *arrays)
- {
- Internal("error_glDeleteVertexArraysAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteVertexArraysAPPLE)(n, arrays);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteVertexArraysAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenVertexArraysAPPLE(GLsizei n, GLuint *arrays)
- {
- Internal("error_glGenVertexArraysAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenVertexArraysAPPLE)(n, arrays);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenVertexArraysAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsVertexArrayAPPLE(GLuint array)
- {
- Internal("error_glIsVertexArrayAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsVertexArrayAPPLE)(array);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsVertexArrayAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_APPLE_vertex_array_range
- static void REGAL_CALL error_glFlushVertexArrayRangeAPPLE(GLsizei length, GLvoid *pointer)
- {
- Internal("error_glFlushVertexArrayRangeAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFlushVertexArrayRangeAPPLE)(length, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFlushVertexArrayRangeAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayParameteriAPPLE(GLenum pname, GLint param)
- {
- Internal("error_glVertexArrayParameteriAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayParameteriAPPLE)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayParameteriAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayRangeAPPLE(GLsizei length, GLvoid *pointer)
- {
- Internal("error_glVertexArrayRangeAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayRangeAPPLE)(length, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayRangeAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_APPLE_vertex_program_evaluators
- static void REGAL_CALL error_glDisableVertexAttribAPPLE(GLuint index, GLenum pname)
- {
- Internal("error_glDisableVertexAttribAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDisableVertexAttribAPPLE)(index, pname);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDisableVertexAttribAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnableVertexAttribAPPLE(GLuint index, GLenum pname)
- {
- Internal("error_glEnableVertexAttribAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnableVertexAttribAPPLE)(index, pname);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnableVertexAttribAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsVertexAttribEnabledAPPLE(GLuint index, GLenum pname)
- {
- Internal("error_glIsVertexAttribEnabledAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsVertexAttribEnabledAPPLE)(index, pname);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsVertexAttribEnabledAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glMapVertexAttrib1dAPPLE(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
- {
- Internal("error_glMapVertexAttrib1dAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapVertexAttrib1dAPPLE)(index, size, u1, u2, stride, order, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapVertexAttrib1dAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapVertexAttrib1fAPPLE(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
- {
- Internal("error_glMapVertexAttrib1fAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapVertexAttrib1fAPPLE)(index, size, u1, u2, stride, order, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapVertexAttrib1fAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapVertexAttrib2dAPPLE(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
- {
- Internal("error_glMapVertexAttrib2dAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapVertexAttrib2dAPPLE)(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapVertexAttrib2dAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMapVertexAttrib2fAPPLE(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
- {
- Internal("error_glMapVertexAttrib2fAPPLE","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMapVertexAttrib2fAPPLE)(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapVertexAttrib2fAPPLE : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_ES2_compatibility
- static void REGAL_CALL error_glClearDepthf(GLclampf d)
- {
- Internal("error_glClearDepthf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearDepthf)(d);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearDepthf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthRangef(GLclampf n, GLclampf f)
- {
- Internal("error_glDepthRangef","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthRangef)(n, f);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthRangef : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
- {
- Internal("error_glGetShaderPrecisionFormat","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetShaderPrecisionFormat)(shadertype, precisiontype, range, precision);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetShaderPrecisionFormat : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glReleaseShaderCompiler(void)
- {
- Internal("error_glReleaseShaderCompiler","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glReleaseShaderCompiler)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glReleaseShaderCompiler : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length)
- {
- Internal("error_glShaderBinary","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glShaderBinary)(count, shaders, binaryformat, binary, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glShaderBinary : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_base_instance
- static void REGAL_CALL error_glDrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count, GLsizei primcount, GLuint baseinstance)
- {
- Internal("error_glDrawArraysInstancedBaseInstance","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawArraysInstancedBaseInstance)(mode, first, count, primcount, baseinstance);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawArraysInstancedBaseInstance : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsInstancedBaseInstance(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLuint baseinstance)
- {
- Internal("error_glDrawElementsInstancedBaseInstance","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsInstancedBaseInstance)(mode, count, type, indices, primcount, baseinstance);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsInstancedBaseInstance : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex, GLuint baseinstance)
- {
- Internal("error_glDrawElementsInstancedBaseVertexBaseInstance","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsInstancedBaseVertexBaseInstance)(mode, count, type, indices, primcount, basevertex, baseinstance);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsInstancedBaseVertexBaseInstance : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_bindless_texture
- static GLuint64 REGAL_CALL error_glGetImageHandleARB(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format)
- {
- Internal("error_glGetImageHandleARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint64 ret = _next->call(&_next->glGetImageHandleARB)(texture, level, layered, layer, format);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetImageHandleARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLuint64 REGAL_CALL error_glGetTextureHandleARB(GLuint texture)
- {
- Internal("error_glGetTextureHandleARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint64 ret = _next->call(&_next->glGetTextureHandleARB)(texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTextureHandleARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLuint64 REGAL_CALL error_glGetTextureSamplerHandleARB(GLuint texture, GLuint sampler)
- {
- Internal("error_glGetTextureSamplerHandleARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint64 ret = _next->call(&_next->glGetTextureSamplerHandleARB)(texture, sampler);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetTextureSamplerHandleARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetVertexAttribLui64vARB(GLuint index, GLenum pname, GLuint64EXT *params)
- {
- Internal("error_glGetVertexAttribLui64vARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribLui64vARB)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribLui64vARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsImageHandleResidentARB(GLuint64 handle)
- {
- Internal("error_glIsImageHandleResidentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsImageHandleResidentARB)(handle);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsImageHandleResidentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glIsTextureHandleResidentARB(GLuint64 handle)
- {
- Internal("error_glIsTextureHandleResidentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsTextureHandleResidentARB)(handle);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsTextureHandleResidentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glMakeImageHandleNonResidentARB(GLuint64 handle)
- {
- Internal("error_glMakeImageHandleNonResidentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMakeImageHandleNonResidentARB)(handle);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMakeImageHandleNonResidentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMakeImageHandleResidentARB(GLuint64 handle, GLenum access)
- {
- Internal("error_glMakeImageHandleResidentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMakeImageHandleResidentARB)(handle, access);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMakeImageHandleResidentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMakeTextureHandleNonResidentARB(GLuint64 handle)
- {
- Internal("error_glMakeTextureHandleNonResidentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMakeTextureHandleNonResidentARB)(handle);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMakeTextureHandleNonResidentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMakeTextureHandleResidentARB(GLuint64 handle)
- {
- Internal("error_glMakeTextureHandleResidentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMakeTextureHandleResidentARB)(handle);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMakeTextureHandleResidentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformHandleui64ARB(GLuint program, GLint location, GLuint64 value)
- {
- Internal("error_glProgramUniformHandleui64ARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformHandleui64ARB)(program, location, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformHandleui64ARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformHandleui64vARB(GLuint program, GLint location, GLsizei count, const GLuint64 *values)
- {
- Internal("error_glProgramUniformHandleui64vARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformHandleui64vARB)(program, location, count, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformHandleui64vARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformHandleui64ARB(GLint location, GLuint64 value)
- {
- Internal("error_glUniformHandleui64ARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformHandleui64ARB)(location, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformHandleui64ARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformHandleui64vARB(GLint location, GLsizei count, const GLuint64 *value)
- {
- Internal("error_glUniformHandleui64vARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformHandleui64vARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformHandleui64vARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL1ui64ARB(GLuint index, GLuint64EXT x)
- {
- Internal("error_glVertexAttribL1ui64ARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL1ui64ARB)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL1ui64ARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL1ui64vARB(GLuint index, const GLuint64EXT *v)
- {
- Internal("error_glVertexAttribL1ui64vARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL1ui64vARB)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL1ui64vARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_blend_func_extended
- static void REGAL_CALL error_glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name)
- {
- Internal("error_glBindFragDataLocationIndexed","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindFragDataLocationIndexed)(program, colorNumber, index, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindFragDataLocationIndexed : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLint REGAL_CALL error_glGetFragDataIndex(GLuint program, const GLchar *name)
- {
- Internal("error_glGetFragDataIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetFragDataIndex)(program, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetFragDataIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_ARB_buffer_storage
- static void REGAL_CALL error_glBufferStorage(GLenum target, GLsizeiptr size, const GLvoid *data, GLbitfield flags)
- {
- Internal("error_glBufferStorage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBufferStorage)(target, size, data, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBufferStorage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNamedBufferStorageEXT(GLuint buffer, GLsizeiptr size, const GLvoid *data, GLbitfield flags)
- {
- Internal("error_glNamedBufferStorageEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNamedBufferStorageEXT)(buffer, size, data, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNamedBufferStorageEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_cl_event
- static GLsync REGAL_CALL error_glCreateSyncFromCLeventARB(cl_context context, cl_event event, GLbitfield flags)
- {
- Internal("error_glCreateSyncFromCLeventARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLsync ret = _next->call(&_next->glCreateSyncFromCLeventARB)(context, event, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCreateSyncFromCLeventARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_ARB_clear_buffer_object
- static void REGAL_CALL error_glClearBufferData(GLenum target, GLenum internalformat, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glClearBufferData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearBufferData)(target, internalformat, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearBufferData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearBufferSubData(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glClearBufferSubData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearBufferSubData)(target, internalformat, offset, size, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearBufferSubData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearNamedBufferDataEXT(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glClearNamedBufferDataEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearNamedBufferDataEXT)(buffer, internalformat, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearNamedBufferDataEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearNamedBufferSubDataEXT(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glClearNamedBufferSubDataEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearNamedBufferSubDataEXT)(buffer, internalformat, offset, size, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearNamedBufferSubDataEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_clear_texture
- static void REGAL_CALL error_glClearTexImage(GLuint texture, GLint level, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glClearTexImage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearTexImage)(texture, level, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearTexImage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glClearTexSubImage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearTexSubImage)(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearTexSubImage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_color_buffer_float
- static void REGAL_CALL error_glClampColorARB(GLenum target, GLenum clamp)
- {
- Internal("error_glClampColorARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClampColorARB)(target, clamp);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClampColorARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_compute_shader
- static void REGAL_CALL error_glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z)
- {
- Internal("error_glDispatchCompute","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDispatchCompute)(num_groups_x, num_groups_y, num_groups_z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDispatchCompute : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDispatchComputeIndirect(GLintptr indirect)
- {
- Internal("error_glDispatchComputeIndirect","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDispatchComputeIndirect)(indirect);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDispatchComputeIndirect : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_compute_variable_group_size
- static void REGAL_CALL error_glDispatchComputeGroupSizeARB(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z)
- {
- Internal("error_glDispatchComputeGroupSizeARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDispatchComputeGroupSizeARB)(num_groups_x, num_groups_y, num_groups_z, group_size_x, group_size_y, group_size_z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDispatchComputeGroupSizeARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_copy_buffer
- static void REGAL_CALL error_glCopyBufferSubData(GLenum readtarget, GLenum writetarget, GLintptr readoffset, GLintptr writeoffset, GLsizeiptr size)
- {
- Internal("error_glCopyBufferSubData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyBufferSubData)(readtarget, writetarget, readoffset, writeoffset, size);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyBufferSubData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_copy_image
- static void REGAL_CALL error_glCopyImageSubData(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth)
- {
- Internal("error_glCopyImageSubData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyImageSubData)(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyImageSubData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_debug_output
- static void REGAL_CALL error_glDebugMessageCallbackARB(GLDEBUGPROCARB callback, const GLvoid *userParam)
- {
- Internal("error_glDebugMessageCallbackARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDebugMessageCallbackARB)(callback, userParam);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDebugMessageCallbackARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDebugMessageControlARB(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
- {
- Internal("error_glDebugMessageControlARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDebugMessageControlARB)(source, type, severity, count, ids, enabled);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDebugMessageControlARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDebugMessageInsertARB(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf)
- {
- Internal("error_glDebugMessageInsertARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDebugMessageInsertARB)(source, type, id, severity, length, buf);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDebugMessageInsertARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glGetDebugMessageLogARB(GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog)
- {
- Internal("error_glGetDebugMessageLogARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glGetDebugMessageLogARB)(count, bufsize, sources, types, ids, severities, lengths, messageLog);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetDebugMessageLogARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_ARB_draw_buffers
- static void REGAL_CALL error_glDrawBuffersARB(GLsizei n, const GLenum *bufs)
- {
- Internal("error_glDrawBuffersARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawBuffersARB)(n, bufs);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawBuffersARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_draw_buffers_blend
- static void REGAL_CALL error_glBlendEquationSeparateiARB(GLuint buf, GLenum modeRGB, GLenum modeAlpha)
- {
- Internal("error_glBlendEquationSeparateiARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationSeparateiARB)(buf, modeRGB, modeAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationSeparateiARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendEquationiARB(GLuint buf, GLenum mode)
- {
- Internal("error_glBlendEquationiARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendEquationiARB)(buf, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendEquationiARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFuncSeparateiARB(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- {
- Internal("error_glBlendFuncSeparateiARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFuncSeparateiARB)(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFuncSeparateiARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFunciARB(GLuint buf, GLenum src, GLenum dst)
- {
- Internal("error_glBlendFunciARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFunciARB)(buf, src, dst);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFunciARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_draw_elements_base_vertex
- static void REGAL_CALL error_glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)
- {
- Internal("error_glDrawElementsBaseVertex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsBaseVertex)(mode, count, type, indices, basevertex);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsBaseVertex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex)
- {
- Internal("error_glDrawElementsInstancedBaseVertex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsInstancedBaseVertex)(mode, count, type, indices, primcount, basevertex);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsInstancedBaseVertex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)
- {
- Internal("error_glDrawRangeElementsBaseVertex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawRangeElementsBaseVertex)(mode, start, end, count, type, indices, basevertex);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawRangeElementsBaseVertex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid * const *indices, GLsizei primcount, const GLint *basevertex)
- {
- Internal("error_glMultiDrawElementsBaseVertex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawElementsBaseVertex)(mode, count, type, indices, primcount, basevertex);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawElementsBaseVertex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_draw_indirect
- static void REGAL_CALL error_glDrawArraysIndirect(GLenum mode, const GLvoid *indirect)
- {
- Internal("error_glDrawArraysIndirect","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawArraysIndirect)(mode, indirect);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawArraysIndirect : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsIndirect(GLenum mode, GLenum type, const GLvoid *indirect)
- {
- Internal("error_glDrawElementsIndirect","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsIndirect)(mode, type, indirect);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsIndirect : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_draw_instanced
- static void REGAL_CALL error_glDrawArraysInstancedARB(GLenum mode, GLint start, GLsizei count, GLsizei primcount)
- {
- Internal("error_glDrawArraysInstancedARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawArraysInstancedARB)(mode, start, count, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawArraysInstancedARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawElementsInstancedARB(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)
- {
- Internal("error_glDrawElementsInstancedARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawElementsInstancedARB)(mode, count, type, indices, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawElementsInstancedARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_framebuffer_no_attachments
- static void REGAL_CALL error_glFramebufferParameteri(GLenum target, GLenum pname, GLint param)
- {
- Internal("error_glFramebufferParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferParameteri)(target, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetFramebufferParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetFramebufferParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetFramebufferParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetNamedFramebufferParameterivEXT(GLuint framebuffer, GLenum pname, GLint *params)
- {
- Internal("error_glGetNamedFramebufferParameterivEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetNamedFramebufferParameterivEXT)(framebuffer, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetNamedFramebufferParameterivEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glNamedFramebufferParameteriEXT(GLuint framebuffer, GLenum pname, GLint param)
- {
- Internal("error_glNamedFramebufferParameteriEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNamedFramebufferParameteriEXT)(framebuffer, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNamedFramebufferParameteriEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_framebuffer_object
- static void REGAL_CALL error_glBindFramebuffer(GLenum target, GLuint framebuffer)
- {
- Internal("error_glBindFramebuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindFramebuffer)(target, framebuffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindFramebuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindRenderbuffer(GLenum target, GLuint renderbuffer)
- {
- Internal("error_glBindRenderbuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindRenderbuffer)(target, renderbuffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindRenderbuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
- {
- Internal("error_glBlitFramebuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlitFramebuffer)(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlitFramebuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLenum REGAL_CALL error_glCheckFramebufferStatus(GLenum target)
- {
- Internal("error_glCheckFramebufferStatus","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLenum ret = _next->call(&_next->glCheckFramebufferStatus)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCheckFramebufferStatus : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
- {
- Internal("error_glDeleteFramebuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteFramebuffers)(n, framebuffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteFramebuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
- {
- Internal("error_glDeleteRenderbuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteRenderbuffers)(n, renderbuffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteRenderbuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
- {
- Internal("error_glFramebufferRenderbuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferRenderbuffer)(target, attachment, renderbuffertarget, renderbuffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferRenderbuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
- {
- Internal("error_glFramebufferTexture1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTexture1D)(target, attachment, textarget, texture, level);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTexture1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
- {
- Internal("error_glFramebufferTexture2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTexture2D)(target, attachment, textarget, texture, level);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTexture2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer)
- {
- Internal("error_glFramebufferTexture3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTexture3D)(target, attachment, textarget, texture, level, layer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTexture3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
- {
- Internal("error_glFramebufferTextureLayer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTextureLayer)(target, attachment, texture, level, layer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTextureLayer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenFramebuffers(GLsizei n, GLuint *framebuffers)
- {
- Internal("error_glGenFramebuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenFramebuffers)(n, framebuffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenFramebuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
- {
- Internal("error_glGenRenderbuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenRenderbuffers)(n, renderbuffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenRenderbuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenerateMipmap(GLenum target)
- {
- Internal("error_glGenerateMipmap","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenerateMipmap)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenerateMipmap : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
- {
- Internal("error_glGetFramebufferAttachmentParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetFramebufferAttachmentParameteriv)(target, attachment, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetFramebufferAttachmentParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetRenderbufferParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetRenderbufferParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetRenderbufferParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsFramebuffer(GLuint framebuffer)
- {
- Internal("error_glIsFramebuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsFramebuffer)(framebuffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsFramebuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLboolean REGAL_CALL error_glIsRenderbuffer(GLuint renderbuffer)
- {
- Internal("error_glIsRenderbuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsRenderbuffer)(renderbuffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsRenderbuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
- {
- Internal("error_glRenderbufferStorage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRenderbufferStorage)(target, internalformat, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRenderbufferStorage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
- {
- Internal("error_glRenderbufferStorageMultisample","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glRenderbufferStorageMultisample)(target, samples, internalformat, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glRenderbufferStorageMultisample : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_geometry_shader4
- static void REGAL_CALL error_glFramebufferTextureARB(GLenum target, GLenum attachment, GLuint texture, GLint level)
- {
- Internal("error_glFramebufferTextureARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTextureARB)(target, attachment, texture, level);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTextureARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferTextureFaceARB(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face)
- {
- Internal("error_glFramebufferTextureFaceARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTextureFaceARB)(target, attachment, texture, level, face);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTextureFaceARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glFramebufferTextureLayerARB(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
- {
- Internal("error_glFramebufferTextureLayerARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFramebufferTextureLayerARB)(target, attachment, texture, level, layer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFramebufferTextureLayerARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramParameteriARB(GLuint program, GLenum pname, GLint value)
- {
- Internal("error_glProgramParameteriARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramParameteriARB)(program, pname, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramParameteriARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_get_program_binary
- static void REGAL_CALL error_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)
- {
- Internal("error_glGetProgramBinary","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramBinary)(program, bufSize, length, binaryFormat, binary);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramBinary : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length)
- {
- Internal("error_glProgramBinary","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramBinary)(program, binaryFormat, binary, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramBinary : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramParameteri(GLuint program, GLenum pname, GLint value)
- {
- Internal("error_glProgramParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramParameteri)(program, pname, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_gpu_shader_fp64
- static void REGAL_CALL error_glGetUniformdv(GLuint program, GLint location, GLdouble *params)
- {
- Internal("error_glGetUniformdv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformdv)(program, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformdv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1d(GLint location, GLdouble x)
- {
- Internal("error_glUniform1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1d)(location, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1dv(GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glUniform1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1dv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2d(GLint location, GLdouble x, GLdouble y)
- {
- Internal("error_glUniform2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2d)(location, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2dv(GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glUniform2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2dv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glUniform3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3d)(location, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3dv(GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glUniform3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3dv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
- {
- Internal("error_glUniform4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4d)(location, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4dv(GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glUniform4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4dv)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix2x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix2x3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2x3dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2x3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix2x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix2x4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2x4dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2x4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix3x2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3x2dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3x2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix3x4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3x4dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3x4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix4x2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4x2dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4x2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glUniformMatrix4x3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4x3dv)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4x3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_imaging
- static void REGAL_CALL error_glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
- {
- Internal("error_glColorSubTable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorSubTable)(target, start, count, format, type, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorSubTable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
- {
- Internal("error_glColorTable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorTable)(target, internalformat, width, format, type, table);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorTable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params)
- {
- Internal("error_glColorTableParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorTableParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorTableParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorTableParameteriv(GLenum target, GLenum pname, const GLint *params)
- {
- Internal("error_glColorTableParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorTableParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorTableParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)
- {
- Internal("error_glConvolutionFilter1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glConvolutionFilter1D)(target, internalformat, width, format, type, image);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glConvolutionFilter1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)
- {
- Internal("error_glConvolutionFilter2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glConvolutionFilter2D)(target, internalformat, width, height, format, type, image);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glConvolutionFilter2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params)
- {
- Internal("error_glConvolutionParameterf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glConvolutionParameterf)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glConvolutionParameterf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat *params)
- {
- Internal("error_glConvolutionParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glConvolutionParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glConvolutionParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glConvolutionParameteri(GLenum target, GLenum pname, GLint params)
- {
- Internal("error_glConvolutionParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glConvolutionParameteri)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glConvolutionParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glConvolutionParameteriv(GLenum target, GLenum pname, const GLint *params)
- {
- Internal("error_glConvolutionParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glConvolutionParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glConvolutionParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
- {
- Internal("error_glCopyColorSubTable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyColorSubTable)(target, start, x, y, width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyColorSubTable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
- {
- Internal("error_glCopyColorTable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyColorTable)(target, internalformat, x, y, width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyColorTable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
- {
- Internal("error_glCopyConvolutionFilter1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyConvolutionFilter1D)(target, internalformat, x, y, width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyConvolutionFilter1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
- {
- Internal("error_glCopyConvolutionFilter2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyConvolutionFilter2D)(target, internalformat, x, y, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyConvolutionFilter2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table)
- {
- Internal("error_glGetColorTable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetColorTable)(target, format, type, table);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetColorTable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetColorTableParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetColorTableParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetColorTableParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetColorTableParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetColorTableParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetColorTableParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image)
- {
- Internal("error_glGetConvolutionFilter","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetConvolutionFilter)(target, format, type, image);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetConvolutionFilter : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetConvolutionParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetConvolutionParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetConvolutionParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetConvolutionParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetConvolutionParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetConvolutionParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
- {
- Internal("error_glGetHistogram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetHistogram)(target, reset, format, type, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetHistogram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetHistogramParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetHistogramParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetHistogramParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetHistogramParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetHistogramParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetHistogramParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values)
- {
- Internal("error_glGetMinmax","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMinmax)(target, reset, format, types, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMinmax : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetMinmaxParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMinmaxParameterfv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMinmaxParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetMinmaxParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMinmaxParameteriv)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMinmaxParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)
- {
- Internal("error_glGetSeparableFilter","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSeparableFilter)(target, format, type, row, column, span);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSeparableFilter : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
- {
- Internal("error_glHistogram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glHistogram)(target, width, internalformat, sink);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glHistogram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMinmax(GLenum target, GLenum internalformat, GLboolean sink)
- {
- Internal("error_glMinmax","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMinmax)(target, internalformat, sink);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMinmax : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glResetHistogram(GLenum target)
- {
- Internal("error_glResetHistogram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glResetHistogram)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glResetHistogram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glResetMinmax(GLenum target)
- {
- Internal("error_glResetMinmax","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glResetMinmax)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glResetMinmax : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)
- {
- Internal("error_glSeparableFilter2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSeparableFilter2D)(target, internalformat, width, height, format, type, row, column);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSeparableFilter2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_indirect_parameters
- static void REGAL_CALL error_glMultiDrawArraysIndirectCountARB(GLenum mode, const GLvoid *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride)
- {
- Internal("error_glMultiDrawArraysIndirectCountARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawArraysIndirectCountARB)(mode, indirect, drawcount, maxdrawcount, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawArraysIndirectCountARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawElementsIndirectCountARB(GLenum mode, GLenum type, const GLvoid *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride)
- {
- Internal("error_glMultiDrawElementsIndirectCountARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawElementsIndirectCountARB)(mode, type, indirect, drawcount, maxdrawcount, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawElementsIndirectCountARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_instanced_arrays
- static void REGAL_CALL error_glVertexAttribDivisorARB(GLuint index, GLuint divisor)
- {
- Internal("error_glVertexAttribDivisorARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribDivisorARB)(index, divisor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribDivisorARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_internalformat_query
- static void REGAL_CALL error_glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params)
- {
- Internal("error_glGetInternalformativ","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetInternalformativ)(target, internalformat, pname, bufSize, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetInternalformativ : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_internalformat_query2
- static void REGAL_CALL error_glGetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params)
- {
- Internal("error_glGetInternalformati64v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetInternalformati64v)(target, internalformat, pname, bufSize, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetInternalformati64v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_invalidate_subdata
- static void REGAL_CALL error_glInvalidateBufferData(GLuint buffer)
- {
- Internal("error_glInvalidateBufferData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInvalidateBufferData)(buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInvalidateBufferData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInvalidateBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr length)
- {
- Internal("error_glInvalidateBufferSubData","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInvalidateBufferSubData)(buffer, offset, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInvalidateBufferSubData : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments)
- {
- Internal("error_glInvalidateFramebuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInvalidateFramebuffer)(target, numAttachments, attachments);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInvalidateFramebuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height)
- {
- Internal("error_glInvalidateSubFramebuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInvalidateSubFramebuffer)(target, numAttachments, attachments, x, y, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInvalidateSubFramebuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInvalidateTexImage(GLuint texture, GLint level)
- {
- Internal("error_glInvalidateTexImage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInvalidateTexImage)(texture, level);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInvalidateTexImage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glInvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth)
- {
- Internal("error_glInvalidateTexSubImage","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glInvalidateTexSubImage)(texture, level, xoffset, yoffset, zoffset, width, height, depth);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glInvalidateTexSubImage : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_map_buffer_range
- static void REGAL_CALL error_glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length)
- {
- Internal("error_glFlushMappedBufferRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glFlushMappedBufferRange)(target, offset, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFlushMappedBufferRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLvoid *REGAL_CALL error_glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
- {
- Internal("error_glMapBufferRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLvoid * ret = _next->call(&_next->glMapBufferRange)(target, offset, length, access);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMapBufferRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_ARB_matrix_palette
- static void REGAL_CALL error_glCurrentPaletteMatrixARB(GLint index)
- {
- Internal("error_glCurrentPaletteMatrixARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCurrentPaletteMatrixARB)(index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCurrentPaletteMatrixARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMatrixIndexPointerARB(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glMatrixIndexPointerARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMatrixIndexPointerARB)(size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMatrixIndexPointerARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMatrixIndexubvARB(GLint size, const GLubyte *indices)
- {
- Internal("error_glMatrixIndexubvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMatrixIndexubvARB)(size, indices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMatrixIndexubvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMatrixIndexuivARB(GLint size, const GLuint *indices)
- {
- Internal("error_glMatrixIndexuivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMatrixIndexuivARB)(size, indices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMatrixIndexuivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMatrixIndexusvARB(GLint size, const GLushort *indices)
- {
- Internal("error_glMatrixIndexusvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMatrixIndexusvARB)(size, indices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMatrixIndexusvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_multi_bind
- static void REGAL_CALL error_glBindBuffersBase(GLenum target, GLuint first, GLsizei count, const GLuint *buffers)
- {
- Internal("error_glBindBuffersBase","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindBuffersBase)(target, first, count, buffers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindBuffersBase : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindBuffersRange(GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes)
- {
- Internal("error_glBindBuffersRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindBuffersRange)(target, first, count, buffers, offsets, sizes);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindBuffersRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindImageTextures(GLuint first, GLsizei count, const GLuint *textures)
- {
- Internal("error_glBindImageTextures","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindImageTextures)(first, count, textures);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindImageTextures : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindSamplers(GLuint first, GLsizei count, const GLuint *samplers)
- {
- Internal("error_glBindSamplers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindSamplers)(first, count, samplers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindSamplers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindTextures(GLuint first, GLsizei count, const GLuint *textures)
- {
- Internal("error_glBindTextures","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindTextures)(first, count, textures);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindTextures : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides)
- {
- Internal("error_glBindVertexBuffers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindVertexBuffers)(first, count, buffers, offsets, strides);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindVertexBuffers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_multi_draw_indirect
- static void REGAL_CALL error_glMultiDrawArraysIndirect(GLenum mode, const GLvoid *indirect, GLsizei primcount, GLsizei stride)
- {
- Internal("error_glMultiDrawArraysIndirect","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawArraysIndirect)(mode, indirect, primcount, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawArraysIndirect : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiDrawElementsIndirect(GLenum mode, GLenum type, const GLvoid *indirect, GLsizei primcount, GLsizei stride)
- {
- Internal("error_glMultiDrawElementsIndirect","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiDrawElementsIndirect)(mode, type, indirect, primcount, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiDrawElementsIndirect : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_multisample
- static void REGAL_CALL error_glSampleCoverageARB(GLclampf value, GLboolean invert)
- {
- Internal("error_glSampleCoverageARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSampleCoverageARB)(value, invert);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSampleCoverageARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_multitexture
- static void REGAL_CALL error_glActiveTextureARB(GLenum texture)
- {
- Internal("error_glActiveTextureARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glActiveTextureARB)(texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glActiveTextureARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClientActiveTextureARB(GLenum texture)
- {
- Internal("error_glClientActiveTextureARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClientActiveTextureARB)(texture);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClientActiveTextureARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1dARB(GLenum target, GLdouble s)
- {
- Internal("error_glMultiTexCoord1dARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1dARB)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1dARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1dvARB(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord1dvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1dvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1dvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1fARB(GLenum target, GLfloat s)
- {
- Internal("error_glMultiTexCoord1fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1fARB)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1fvARB(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord1fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1fvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1iARB(GLenum target, GLint s)
- {
- Internal("error_glMultiTexCoord1iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1iARB)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1ivARB(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord1ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1ivARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1sARB(GLenum target, GLshort s)
- {
- Internal("error_glMultiTexCoord1sARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1sARB)(target, s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1sARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord1svARB(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord1svARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord1svARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord1svARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t)
- {
- Internal("error_glMultiTexCoord2dARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2dARB)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2dARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2dvARB(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord2dvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2dvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2dvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t)
- {
- Internal("error_glMultiTexCoord2fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2fARB)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2fvARB(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord2fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2fvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2iARB(GLenum target, GLint s, GLint t)
- {
- Internal("error_glMultiTexCoord2iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2iARB)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2ivARB(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord2ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2ivARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t)
- {
- Internal("error_glMultiTexCoord2sARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2sARB)(target, s, t);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2sARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord2svARB(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord2svARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord2svARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord2svARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r)
- {
- Internal("error_glMultiTexCoord3dARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3dARB)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3dARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3dvARB(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord3dvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3dvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3dvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r)
- {
- Internal("error_glMultiTexCoord3fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3fARB)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3fvARB(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord3fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3fvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r)
- {
- Internal("error_glMultiTexCoord3iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3iARB)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3ivARB(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord3ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3ivARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r)
- {
- Internal("error_glMultiTexCoord3sARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3sARB)(target, s, t, r);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3sARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord3svARB(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord3svARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord3svARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord3svARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
- {
- Internal("error_glMultiTexCoord4dARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4dARB)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4dARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4dvARB(GLenum target, const GLdouble *v)
- {
- Internal("error_glMultiTexCoord4dvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4dvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4dvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
- {
- Internal("error_glMultiTexCoord4fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4fARB)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4fvARB(GLenum target, const GLfloat *v)
- {
- Internal("error_glMultiTexCoord4fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4fvARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q)
- {
- Internal("error_glMultiTexCoord4iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4iARB)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4ivARB(GLenum target, const GLint *v)
- {
- Internal("error_glMultiTexCoord4ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4ivARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
- {
- Internal("error_glMultiTexCoord4sARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4sARB)(target, s, t, r, q);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4sARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultiTexCoord4svARB(GLenum target, const GLshort *v)
- {
- Internal("error_glMultiTexCoord4svARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultiTexCoord4svARB)(target, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultiTexCoord4svARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_occlusion_query
- static void REGAL_CALL error_glBeginQueryARB(GLenum target, GLuint id)
- {
- Internal("error_glBeginQueryARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginQueryARB)(target, id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginQueryARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteQueriesARB(GLsizei n, const GLuint *ids)
- {
- Internal("error_glDeleteQueriesARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteQueriesARB)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteQueriesARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndQueryARB(GLenum target)
- {
- Internal("error_glEndQueryARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndQueryARB)(target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndQueryARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenQueriesARB(GLsizei n, GLuint *ids)
- {
- Internal("error_glGenQueriesARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenQueriesARB)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenQueriesARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectivARB(GLuint id, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryObjectivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectivARB)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectuivARB(GLuint id, GLenum pname, GLuint *params)
- {
- Internal("error_glGetQueryObjectuivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectuivARB)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectuivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryivARB(GLenum target, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryivARB)(target, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsQueryARB(GLuint id)
- {
- Internal("error_glIsQueryARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsQueryARB)(id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsQueryARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_ARB_point_parameters
- static void REGAL_CALL error_glPointParameterfARB(GLenum pname, GLfloat param)
- {
- Internal("error_glPointParameterfARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointParameterfARB)(pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointParameterfARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPointParameterfvARB(GLenum pname, const GLfloat *params)
- {
- Internal("error_glPointParameterfvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPointParameterfvARB)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPointParameterfvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_program_interface_query
- static void REGAL_CALL error_glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint *params)
- {
- Internal("error_glGetProgramInterfaceiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramInterfaceiv)(program, programInterface, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramInterfaceiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name)
- {
- Internal("error_glGetProgramResourceIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glGetProgramResourceIndex)(program, programInterface, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramResourceIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLint REGAL_CALL error_glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar *name)
- {
- Internal("error_glGetProgramResourceLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetProgramResourceLocation)(program, programInterface, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramResourceLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLint REGAL_CALL error_glGetProgramResourceLocationIndex(GLuint program, GLenum programInterface, const GLchar *name)
- {
- Internal("error_glGetProgramResourceLocationIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetProgramResourceLocationIndex)(program, programInterface, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramResourceLocationIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)
- {
- Internal("error_glGetProgramResourceName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramResourceName)(program, programInterface, index, bufSize, length, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramResourceName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params)
- {
- Internal("error_glGetProgramResourceiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramResourceiv)(program, programInterface, index, propCount, props, bufSize, length, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramResourceiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_provoking_vertex
- static void REGAL_CALL error_glProvokingVertex(GLenum mode)
- {
- Internal("error_glProvokingVertex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProvokingVertex)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProvokingVertex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_robustness
- static GLenum REGAL_CALL error_glGetGraphicsResetStatusARB(void)
- {
- Internal("error_glGetGraphicsResetStatusARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLenum ret = _next->call(&_next->glGetGraphicsResetStatusARB)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetGraphicsResetStatusARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetnColorTableARB(GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *table)
- {
- Internal("error_glGetnColorTableARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnColorTableARB)(target, format, type, bufSize, table);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnColorTableARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnCompressedTexImageARB(GLenum target, GLint lod, GLsizei bufSize, GLvoid *img)
- {
- Internal("error_glGetnCompressedTexImageARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnCompressedTexImageARB)(target, lod, bufSize, img);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnCompressedTexImageARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnConvolutionFilterARB(GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *image)
- {
- Internal("error_glGetnConvolutionFilterARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnConvolutionFilterARB)(target, format, type, bufSize, image);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnConvolutionFilterARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnHistogramARB(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values)
- {
- Internal("error_glGetnHistogramARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnHistogramARB)(target, reset, format, type, bufSize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnHistogramARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnMapdvARB(GLenum target, GLenum query, GLsizei bufSize, GLdouble *v)
- {
- Internal("error_glGetnMapdvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnMapdvARB)(target, query, bufSize, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnMapdvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnMapfvARB(GLenum target, GLenum query, GLsizei bufSize, GLfloat *v)
- {
- Internal("error_glGetnMapfvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnMapfvARB)(target, query, bufSize, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnMapfvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnMapivARB(GLenum target, GLenum query, GLsizei bufSize, GLint *v)
- {
- Internal("error_glGetnMapivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnMapivARB)(target, query, bufSize, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnMapivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnMinmaxARB(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values)
- {
- Internal("error_glGetnMinmaxARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnMinmaxARB)(target, reset, format, type, bufSize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnMinmaxARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnPixelMapfvARB(GLenum map, GLsizei bufSize, GLfloat *values)
- {
- Internal("error_glGetnPixelMapfvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnPixelMapfvARB)(map, bufSize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnPixelMapfvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnPixelMapuivARB(GLenum map, GLsizei bufSize, GLuint *values)
- {
- Internal("error_glGetnPixelMapuivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnPixelMapuivARB)(map, bufSize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnPixelMapuivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnPixelMapusvARB(GLenum map, GLsizei bufSize, GLushort *values)
- {
- Internal("error_glGetnPixelMapusvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnPixelMapusvARB)(map, bufSize, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnPixelMapusvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnPolygonStippleARB(GLsizei bufSize, GLubyte *pattern)
- {
- Internal("error_glGetnPolygonStippleARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnPolygonStippleARB)(bufSize, pattern);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnPolygonStippleARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnSeparableFilterARB(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid *row, GLsizei columnBufSize, GLvoid *column, GLvoid *span)
- {
- Internal("error_glGetnSeparableFilterARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnSeparableFilterARB)(target, format, type, rowBufSize, row, columnBufSize, column, span);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnSeparableFilterARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img)
- {
- Internal("error_glGetnTexImageARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnTexImageARB)(target, level, format, type, bufSize, img);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnTexImageARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnUniformdvARB(GLuint program, GLint location, GLsizei bufSize, GLdouble *params)
- {
- Internal("error_glGetnUniformdvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnUniformdvARB)(program, location, bufSize, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnUniformdvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnUniformfvARB(GLuint program, GLint location, GLsizei bufSize, GLfloat *params)
- {
- Internal("error_glGetnUniformfvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnUniformfvARB)(program, location, bufSize, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnUniformfvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnUniformivARB(GLuint program, GLint location, GLsizei bufSize, GLint *params)
- {
- Internal("error_glGetnUniformivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnUniformivARB)(program, location, bufSize, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnUniformivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetnUniformuivARB(GLuint program, GLint location, GLsizei bufSize, GLuint *params)
- {
- Internal("error_glGetnUniformuivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetnUniformuivARB)(program, location, bufSize, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetnUniformuivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data)
- {
- Internal("error_glReadnPixelsARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glReadnPixelsARB)(x, y, width, height, format, type, bufSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glReadnPixelsARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_sample_shading
- static void REGAL_CALL error_glMinSampleShading(GLclampf value)
- {
- Internal("error_glMinSampleShading","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMinSampleShading)(value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMinSampleShading : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMinSampleShadingARB(GLclampf value)
- {
- Internal("error_glMinSampleShadingARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMinSampleShadingARB)(value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMinSampleShadingARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_sampler_objects
- static void REGAL_CALL error_glBindSampler(GLuint unit, GLuint sampler)
- {
- Internal("error_glBindSampler","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindSampler)(unit, sampler);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindSampler : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteSamplers(GLsizei count, const GLuint *samplers)
- {
- Internal("error_glDeleteSamplers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteSamplers)(count, samplers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteSamplers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenSamplers(GLsizei count, GLuint *samplers)
- {
- Internal("error_glGenSamplers","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenSamplers)(count, samplers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenSamplers : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params)
- {
- Internal("error_glGetSamplerParameterIiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSamplerParameterIiv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSamplerParameterIiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params)
- {
- Internal("error_glGetSamplerParameterIuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSamplerParameterIuiv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSamplerParameterIuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetSamplerParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSamplerParameterfv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSamplerParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params)
- {
- Internal("error_glGetSamplerParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSamplerParameteriv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSamplerParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsSampler(GLuint sampler)
- {
- Internal("error_glIsSampler","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsSampler)(sampler);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsSampler : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *params)
- {
- Internal("error_glSamplerParameterIiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSamplerParameterIiv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSamplerParameterIiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *params)
- {
- Internal("error_glSamplerParameterIuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSamplerParameterIuiv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSamplerParameterIuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
- {
- Internal("error_glSamplerParameterf","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSamplerParameterf)(sampler, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSamplerParameterf : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *params)
- {
- Internal("error_glSamplerParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSamplerParameterfv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSamplerParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSamplerParameteri(GLuint sampler, GLenum pname, GLint param)
- {
- Internal("error_glSamplerParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSamplerParameteri)(sampler, pname, param);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSamplerParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *params)
- {
- Internal("error_glSamplerParameteriv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSamplerParameteriv)(sampler, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSamplerParameteriv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_separate_shader_objects
- static void REGAL_CALL error_glActiveShaderProgram(GLuint pipeline, GLuint program)
- {
- Internal("error_glActiveShaderProgram","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glActiveShaderProgram)(pipeline, program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glActiveShaderProgram : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindProgramPipeline(GLuint pipeline)
- {
- Internal("error_glBindProgramPipeline","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindProgramPipeline)(pipeline);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindProgramPipeline : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar * const *strings)
- {
- Internal("error_glCreateShaderProgramv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glCreateShaderProgramv)(type, count, strings);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCreateShaderProgramv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glDeleteProgramPipelines(GLsizei n, const GLuint *pipelines)
- {
- Internal("error_glDeleteProgramPipelines","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteProgramPipelines)(n, pipelines);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteProgramPipelines : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenProgramPipelines(GLsizei n, GLuint *pipelines)
- {
- Internal("error_glGenProgramPipelines","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenProgramPipelines)(n, pipelines);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenProgramPipelines : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
- {
- Internal("error_glGetProgramPipelineInfoLog","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramPipelineInfoLog)(pipeline, bufSize, length, infoLog);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramPipelineInfoLog : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params)
- {
- Internal("error_glGetProgramPipelineiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramPipelineiv)(pipeline, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramPipelineiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsProgramPipeline(GLuint pipeline)
- {
- Internal("error_glIsProgramPipeline","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsProgramPipeline)(pipeline);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsProgramPipeline : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glProgramUniform1d(GLuint program, GLint location, GLdouble x)
- {
- Internal("error_glProgramUniform1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1d)(program, location, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1dv(GLuint program, GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glProgramUniform1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1dv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1f(GLuint program, GLint location, GLfloat x)
- {
- Internal("error_glProgramUniform1f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1f)(program, location, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glProgramUniform1fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1fv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1i(GLuint program, GLint location, GLint x)
- {
- Internal("error_glProgramUniform1i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1i)(program, location, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glProgramUniform1iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1iv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1ui(GLuint program, GLint location, GLuint v0)
- {
- Internal("error_glProgramUniform1ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1ui)(program, location, v0);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glProgramUniform1uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform1uiv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform1uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2d(GLuint program, GLint location, GLdouble x, GLdouble y)
- {
- Internal("error_glProgramUniform2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2d)(program, location, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2dv(GLuint program, GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glProgramUniform2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2dv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2f(GLuint program, GLint location, GLfloat x, GLfloat y)
- {
- Internal("error_glProgramUniform2f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2f)(program, location, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2fv(GLuint program, GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glProgramUniform2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2fv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2i(GLuint program, GLint location, GLint x, GLint y)
- {
- Internal("error_glProgramUniform2i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2i)(program, location, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2iv(GLuint program, GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glProgramUniform2iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2iv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2ui(GLuint program, GLint location, GLuint x, GLuint y)
- {
- Internal("error_glProgramUniform2ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2ui)(program, location, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform2uiv(GLuint program, GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glProgramUniform2uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform2uiv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform2uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3d(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glProgramUniform3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3d)(program, location, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3dv(GLuint program, GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glProgramUniform3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3dv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3f(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z)
- {
- Internal("error_glProgramUniform3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3f)(program, location, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3fv(GLuint program, GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glProgramUniform3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3fv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3i(GLuint program, GLint location, GLint x, GLint y, GLint z)
- {
- Internal("error_glProgramUniform3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3i)(program, location, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3iv(GLuint program, GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glProgramUniform3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3iv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3ui(GLuint program, GLint location, GLuint x, GLuint y, GLuint z)
- {
- Internal("error_glProgramUniform3ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3ui)(program, location, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform3uiv(GLuint program, GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glProgramUniform3uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform3uiv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform3uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4d(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
- {
- Internal("error_glProgramUniform4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4d)(program, location, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4dv(GLuint program, GLint location, GLsizei count, const GLdouble *value)
- {
- Internal("error_glProgramUniform4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4dv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4f(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
- {
- Internal("error_glProgramUniform4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4f)(program, location, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glProgramUniform4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4fv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4i(GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w)
- {
- Internal("error_glProgramUniform4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4i)(program, location, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glProgramUniform4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4iv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4ui(GLuint program, GLint location, GLuint x, GLuint y, GLuint z, GLuint w)
- {
- Internal("error_glProgramUniform4ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4ui)(program, location, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint *value)
- {
- Internal("error_glProgramUniform4uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniform4uiv)(program, location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniform4uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix2dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix2fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix2x3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix2x3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix2x3dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix2x3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix2x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix2x3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix2x3fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix2x3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix2x4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix2x4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix2x4dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix2x4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix2x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix2x4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix2x4fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix2x4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix3dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix3fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix3x2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix3x2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix3x2dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix3x2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix3x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix3x2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix3x2fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix3x2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix3x4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix3x4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix3x4dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix3x4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix3x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix3x4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix3x4fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix3x4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix4dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix4fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix4x2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix4x2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix4x2dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix4x2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix4x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix4x2fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix4x2fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix4x2fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix4x3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
- {
- Internal("error_glProgramUniformMatrix4x3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix4x3dv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix4x3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramUniformMatrix4x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glProgramUniformMatrix4x3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramUniformMatrix4x3fv)(program, location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramUniformMatrix4x3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
- {
- Internal("error_glUseProgramStages","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUseProgramStages)(pipeline, stages, program);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUseProgramStages : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glValidateProgramPipeline(GLuint pipeline)
- {
- Internal("error_glValidateProgramPipeline","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glValidateProgramPipeline)(pipeline);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glValidateProgramPipeline : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_shader_atomic_counters
- static void REGAL_CALL error_glGetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, GLenum pname, GLint *params)
- {
- Internal("error_glGetActiveAtomicCounterBufferiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveAtomicCounterBufferiv)(program, bufferIndex, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveAtomicCounterBufferiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_shader_image_load_store
- static void REGAL_CALL error_glBindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format)
- {
- Internal("error_glBindImageTexture","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindImageTexture)(unit, texture, level, layered, layer, access, format);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindImageTexture : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMemoryBarrier(GLbitfield barriers)
- {
- Internal("error_glMemoryBarrier","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMemoryBarrier)(barriers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMemoryBarrier : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_shader_objects
- static void REGAL_CALL error_glAttachObjectARB(GLhandleARB containerObj, GLhandleARB obj)
- {
- Internal("error_glAttachObjectARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glAttachObjectARB)(containerObj, obj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAttachObjectARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompileShaderARB(GLhandleARB shaderObj)
- {
- Internal("error_glCompileShaderARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompileShaderARB)(shaderObj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompileShaderARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLhandleARB REGAL_CALL error_glCreateProgramObjectARB(void)
- {
- Internal("error_glCreateProgramObjectARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLhandleARB ret = _next->call(&_next->glCreateProgramObjectARB)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCreateProgramObjectARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLhandleARB REGAL_CALL error_glCreateShaderObjectARB(GLenum shaderType)
- {
- Internal("error_glCreateShaderObjectARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLhandleARB ret = _next->call(&_next->glCreateShaderObjectARB)(shaderType);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCreateShaderObjectARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glDeleteObjectARB(GLhandleARB obj)
- {
- Internal("error_glDeleteObjectARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteObjectARB)(obj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteObjectARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDetachObjectARB(GLhandleARB containerObj, GLhandleARB attachedObj)
- {
- Internal("error_glDetachObjectARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDetachObjectARB)(containerObj, attachedObj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDetachObjectARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveUniformARB(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name)
- {
- Internal("error_glGetActiveUniformARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveUniformARB)(programObj, index, maxLength, length, size, type, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveUniformARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj)
- {
- Internal("error_glGetAttachedObjectsARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetAttachedObjectsARB)(containerObj, maxCount, count, obj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetAttachedObjectsARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLhandleARB REGAL_CALL error_glGetHandleARB(GLenum pname)
- {
- Internal("error_glGetHandleARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLhandleARB ret = _next->call(&_next->glGetHandleARB)(pname);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetHandleARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog)
- {
- Internal("error_glGetInfoLogARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetInfoLogARB)(obj, maxLength, length, infoLog);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetInfoLogARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetObjectParameterfvARB(GLhandleARB obj, GLenum pname, GLfloat *params)
- {
- Internal("error_glGetObjectParameterfvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetObjectParameterfvARB)(obj, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetObjectParameterfvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetObjectParameterivARB(GLhandleARB obj, GLenum pname, GLint *params)
- {
- Internal("error_glGetObjectParameterivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetObjectParameterivARB)(obj, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetObjectParameterivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetShaderSourceARB(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source)
- {
- Internal("error_glGetShaderSourceARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetShaderSourceARB)(obj, maxLength, length, source);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetShaderSourceARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLint REGAL_CALL error_glGetUniformLocationARB(GLhandleARB programObj, const GLcharARB *name)
- {
- Internal("error_glGetUniformLocationARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetUniformLocationARB)(programObj, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformLocationARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetUniformfvARB(GLhandleARB programObj, GLint location, GLfloat *params)
- {
- Internal("error_glGetUniformfvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformfvARB)(programObj, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformfvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetUniformivARB(GLhandleARB programObj, GLint location, GLint *params)
- {
- Internal("error_glGetUniformivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformivARB)(programObj, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLinkProgramARB(GLhandleARB programObj)
- {
- Internal("error_glLinkProgramARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLinkProgramARB)(programObj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLinkProgramARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glShaderSourceARB(GLhandleARB shaderObj, GLsizei count, const GLcharARB ** const string, const GLint *length)
- {
- Internal("error_glShaderSourceARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glShaderSourceARB)(shaderObj, count, string, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glShaderSourceARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1fARB(GLint location, GLfloat v0)
- {
- Internal("error_glUniform1fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1fARB)(location, v0);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1fvARB(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform1fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1fvARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1iARB(GLint location, GLint v0)
- {
- Internal("error_glUniform1iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1iARB)(location, v0);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform1ivARB(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform1ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform1ivARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform1ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2fARB(GLint location, GLfloat v0, GLfloat v1)
- {
- Internal("error_glUniform2fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2fARB)(location, v0, v1);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2fvARB(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform2fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2fvARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2iARB(GLint location, GLint v0, GLint v1)
- {
- Internal("error_glUniform2iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2iARB)(location, v0, v1);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform2ivARB(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform2ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform2ivARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform2ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
- {
- Internal("error_glUniform3fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3fARB)(location, v0, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3fvARB(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform3fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3fvARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3iARB(GLint location, GLint v0, GLint v1, GLint v2)
- {
- Internal("error_glUniform3iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3iARB)(location, v0, v1, v2);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform3ivARB(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform3ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform3ivARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform3ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
- {
- Internal("error_glUniform4fARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4fARB)(location, v0, v1, v2, v3);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4fARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4fvARB(GLint location, GLsizei count, const GLfloat *value)
- {
- Internal("error_glUniform4fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4fvARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4iARB(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
- {
- Internal("error_glUniform4iARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4iARB)(location, v0, v1, v2, v3);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4iARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniform4ivARB(GLint location, GLsizei count, const GLint *value)
- {
- Internal("error_glUniform4ivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniform4ivARB)(location, count, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniform4ivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix2fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix2fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix2fvARB)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix2fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix3fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix3fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix3fvARB)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix3fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformMatrix4fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
- {
- Internal("error_glUniformMatrix4fvARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformMatrix4fvARB)(location, count, transpose, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformMatrix4fvARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUseProgramObjectARB(GLhandleARB programObj)
- {
- Internal("error_glUseProgramObjectARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUseProgramObjectARB)(programObj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUseProgramObjectARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glValidateProgramARB(GLhandleARB programObj)
- {
- Internal("error_glValidateProgramARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glValidateProgramARB)(programObj);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glValidateProgramARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_shader_storage_buffer_object
- static void REGAL_CALL error_glShaderStorageBlockBinding(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding)
- {
- Internal("error_glShaderStorageBlockBinding","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glShaderStorageBlockBinding)(program, storageBlockIndex, storageBlockBinding);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glShaderStorageBlockBinding : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_shader_subroutine
- static void REGAL_CALL error_glGetActiveSubroutineName(GLuint program, GLenum shaderType, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)
- {
- Internal("error_glGetActiveSubroutineName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveSubroutineName)(program, shaderType, index, bufSize, length, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveSubroutineName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveSubroutineUniformName(GLuint program, GLenum shaderType, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)
- {
- Internal("error_glGetActiveSubroutineUniformName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveSubroutineUniformName)(program, shaderType, index, bufSize, length, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveSubroutineUniformName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveSubroutineUniformiv(GLuint program, GLenum shaderType, GLuint index, GLenum pname, GLint *values)
- {
- Internal("error_glGetActiveSubroutineUniformiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveSubroutineUniformiv)(program, shaderType, index, pname, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveSubroutineUniformiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetProgramStageiv(GLuint program, GLenum shaderType, GLenum pname, GLint *values)
- {
- Internal("error_glGetProgramStageiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramStageiv)(program, shaderType, pname, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramStageiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetProgramSubroutineParameteruivNV(GLenum target, GLuint index, GLuint *params)
- {
- Internal("error_glGetProgramSubroutineParameteruivNV","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetProgramSubroutineParameteruivNV)(target, index, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetProgramSubroutineParameteruivNV : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glGetSubroutineIndex(GLuint program, GLenum shaderType, const GLchar *name)
- {
- Internal("error_glGetSubroutineIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glGetSubroutineIndex)(program, shaderType, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSubroutineIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static GLint REGAL_CALL error_glGetSubroutineUniformLocation(GLuint program, GLenum shaderType, const GLchar *name)
- {
- Internal("error_glGetSubroutineUniformLocation","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLint ret = _next->call(&_next->glGetSubroutineUniformLocation)(program, shaderType, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSubroutineUniformLocation : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetUniformSubroutineuiv(GLenum shaderType, GLint location, GLuint *params)
- {
- Internal("error_glGetUniformSubroutineuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformSubroutineuiv)(shaderType, location, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformSubroutineuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glProgramSubroutineParametersuivNV(GLenum target, GLsizei count, const GLuint *params)
- {
- Internal("error_glProgramSubroutineParametersuivNV","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glProgramSubroutineParametersuivNV)(target, count, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glProgramSubroutineParametersuivNV : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformSubroutinesuiv(GLenum shaderType, GLsizei count, const GLuint *indices)
- {
- Internal("error_glUniformSubroutinesuiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformSubroutinesuiv)(shaderType, count, indices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformSubroutinesuiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_shading_language_include
- static void REGAL_CALL error_glCompileShaderIncludeARB(GLuint shader, GLsizei count, const GLchar **path, const GLint *length)
- {
- Internal("error_glCompileShaderIncludeARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompileShaderIncludeARB)(shader, count, path, length);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompileShaderIncludeARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteNamedStringARB(GLint namelen, const GLchar *name)
- {
- Internal("error_glDeleteNamedStringARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteNamedStringARB)(namelen, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteNamedStringARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetNamedStringARB(GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string)
- {
- Internal("error_glGetNamedStringARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetNamedStringARB)(namelen, name, bufSize, stringlen, string);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetNamedStringARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetNamedStringivARB(GLint namelen, const GLchar *name, GLenum pname, GLint *params)
- {
- Internal("error_glGetNamedStringivARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetNamedStringivARB)(namelen, name, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetNamedStringivARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsNamedStringARB(GLint namelen, const GLchar *name)
- {
- Internal("error_glIsNamedStringARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsNamedStringARB)(namelen, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsNamedStringARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glNamedStringARB(GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string)
- {
- Internal("error_glNamedStringARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glNamedStringARB)(type, namelen, name, stringlen, string);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glNamedStringARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_sparse_texture
- static void REGAL_CALL error_glTexPageCommitmentARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit)
- {
- Internal("error_glTexPageCommitmentARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexPageCommitmentARB)(target, level, xoffset, yoffset, zoffset, width, height, depth, commit);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexPageCommitmentARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexturePageCommitmentEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit)
- {
- Internal("error_glTexturePageCommitmentEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexturePageCommitmentEXT)(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, commit);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexturePageCommitmentEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_sync
- static GLenum REGAL_CALL error_glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
- {
- Internal("error_glClientWaitSync","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLenum ret = _next->call(&_next->glClientWaitSync)(sync, flags, timeout);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClientWaitSync : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glDeleteSync(GLsync sync)
- {
- Internal("error_glDeleteSync","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteSync)(sync);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteSync : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLsync REGAL_CALL error_glFenceSync(GLenum condition, GLbitfield flags)
- {
- Internal("error_glFenceSync","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLsync ret = _next->call(&_next->glFenceSync)(condition, flags);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glFenceSync : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetInteger64v(GLenum pname, GLint64 *params)
- {
- Internal("error_glGetInteger64v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetInteger64v)(pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetInteger64v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values)
- {
- Internal("error_glGetSynciv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetSynciv)(sync, pname, bufSize, length, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetSynciv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsSync(GLsync sync)
- {
- Internal("error_glIsSync","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsSync)(sync);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsSync : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
- {
- Internal("error_glWaitSync","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glWaitSync)(sync, flags, timeout);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glWaitSync : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_tessellation_shader
- static void REGAL_CALL error_glPatchParameterfv(GLenum pname, const GLfloat *values)
- {
- Internal("error_glPatchParameterfv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPatchParameterfv)(pname, values);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPatchParameterfv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glPatchParameteri(GLenum pname, GLint value)
- {
- Internal("error_glPatchParameteri","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPatchParameteri)(pname, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPatchParameteri : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_buffer_object
- static void REGAL_CALL error_glTexBufferARB(GLenum target, GLenum internalformat, GLuint buffer)
- {
- Internal("error_glTexBufferARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexBufferARB)(target, internalformat, buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexBufferARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_buffer_range
- static void REGAL_CALL error_glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size)
- {
- Internal("error_glTexBufferRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexBufferRange)(target, internalformat, buffer, offset, size);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexBufferRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureBufferRangeEXT(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size)
- {
- Internal("error_glTextureBufferRangeEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureBufferRangeEXT)(texture, target, internalformat, buffer, offset, size);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureBufferRangeEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_compression
- static void REGAL_CALL error_glCompressedTexImage1DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexImage1DARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexImage1DARB)(target, level, internalformat, width, border, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexImage1DARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexImage2DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexImage2DARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexImage2DARB)(target, level, internalformat, width, height, border, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexImage2DARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexImage3DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexImage3DARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexImage3DARB)(target, level, internalformat, width, height, depth, border, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexImage3DARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexSubImage1DARB(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexSubImage1DARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexSubImage1DARB)(target, level, xoffset, width, format, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexSubImage1DARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexSubImage2DARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexSubImage2DARB)(target, level, xoffset, yoffset, width, height, format, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexSubImage2DARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCompressedTexSubImage3DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)
- {
- Internal("error_glCompressedTexSubImage3DARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCompressedTexSubImage3DARB)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCompressedTexSubImage3DARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetCompressedTexImageARB(GLenum target, GLint lod, GLvoid *img)
- {
- Internal("error_glGetCompressedTexImageARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetCompressedTexImageARB)(target, lod, img);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetCompressedTexImageARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_multisample
- static void REGAL_CALL error_glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val)
- {
- Internal("error_glGetMultisamplefv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetMultisamplefv)(pname, index, val);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetMultisamplefv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glSampleMaski(GLuint index, GLbitfield mask)
- {
- Internal("error_glSampleMaski","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glSampleMaski)(index, mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glSampleMaski : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
- {
- Internal("error_glTexImage2DMultisample","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexImage2DMultisample)(target, samples, internalformat, width, height, fixedsamplelocations);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexImage2DMultisample : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
- {
- Internal("error_glTexImage3DMultisample","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexImage3DMultisample)(target, samples, internalformat, width, height, depth, fixedsamplelocations);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexImage3DMultisample : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_storage
- static void REGAL_CALL error_glTexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width)
- {
- Internal("error_glTexStorage1D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexStorage1D)(target, levels, internalformat, width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexStorage1D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
- {
- Internal("error_glTexStorage2D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexStorage2D)(target, levels, internalformat, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexStorage2D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)
- {
- Internal("error_glTexStorage3D","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexStorage3D)(target, levels, internalformat, width, height, depth);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexStorage3D : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width)
- {
- Internal("error_glTextureStorage1DEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureStorage1DEXT)(texture, target, levels, internalformat, width);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureStorage1DEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
- {
- Internal("error_glTextureStorage2DEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureStorage2DEXT)(texture, target, levels, internalformat, width, height);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureStorage2DEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)
- {
- Internal("error_glTextureStorage3DEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureStorage3DEXT)(texture, target, levels, internalformat, width, height, depth);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureStorage3DEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_storage_multisample
- static void REGAL_CALL error_glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
- {
- Internal("error_glTexStorage2DMultisample","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexStorage2DMultisample)(target, samples, internalformat, width, height, fixedsamplelocations);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexStorage2DMultisample : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
- {
- Internal("error_glTexStorage3DMultisample","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTexStorage3DMultisample)(target, samples, internalformat, width, height, depth, fixedsamplelocations);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTexStorage3DMultisample : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureStorage2DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
- {
- Internal("error_glTextureStorage2DMultisampleEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureStorage2DMultisampleEXT)(texture, target, samples, internalformat, width, height, fixedsamplelocations);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureStorage2DMultisampleEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glTextureStorage3DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
- {
- Internal("error_glTextureStorage3DMultisampleEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureStorage3DMultisampleEXT)(texture, target, samples, internalformat, width, height, depth, fixedsamplelocations);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureStorage3DMultisampleEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_texture_view
- static void REGAL_CALL error_glTextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers)
- {
- Internal("error_glTextureView","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glTextureView)(texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glTextureView : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_timer_query
- static void REGAL_CALL error_glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params)
- {
- Internal("error_glGetQueryObjecti64v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjecti64v)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjecti64v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params)
- {
- Internal("error_glGetQueryObjectui64v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryObjectui64v)(id, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryObjectui64v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glQueryCounter(GLuint id, GLenum target)
- {
- Internal("error_glQueryCounter","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glQueryCounter)(id, target);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glQueryCounter : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_transform_feedback2
- static void REGAL_CALL error_glBindTransformFeedback(GLenum target, GLuint id)
- {
- Internal("error_glBindTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindTransformFeedback)(target, id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids)
- {
- Internal("error_glDeleteTransformFeedbacks","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteTransformFeedbacks)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteTransformFeedbacks : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawTransformFeedback(GLenum mode, GLuint name)
- {
- Internal("error_glDrawTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawTransformFeedback)(mode, name);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenTransformFeedbacks(GLsizei n, GLuint *ids)
- {
- Internal("error_glGenTransformFeedbacks","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenTransformFeedbacks)(n, ids);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenTransformFeedbacks : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsTransformFeedback(GLuint id)
- {
- Internal("error_glIsTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsTransformFeedback)(id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glPauseTransformFeedback(void)
- {
- Internal("error_glPauseTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glPauseTransformFeedback)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glPauseTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glResumeTransformFeedback(void)
- {
- Internal("error_glResumeTransformFeedback","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glResumeTransformFeedback)();
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glResumeTransformFeedback : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_transform_feedback3
- static void REGAL_CALL error_glBeginQueryIndexed(GLenum target, GLuint index, GLuint id)
- {
- Internal("error_glBeginQueryIndexed","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBeginQueryIndexed)(target, index, id);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBeginQueryIndexed : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream)
- {
- Internal("error_glDrawTransformFeedbackStream","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawTransformFeedbackStream)(mode, id, stream);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawTransformFeedbackStream : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEndQueryIndexed(GLenum target, GLuint index)
- {
- Internal("error_glEndQueryIndexed","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEndQueryIndexed)(target, index);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEndQueryIndexed : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint *params)
- {
- Internal("error_glGetQueryIndexediv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetQueryIndexediv)(target, index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetQueryIndexediv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_transform_feedback_instanced
- static void REGAL_CALL error_glDrawTransformFeedbackInstanced(GLenum mode, GLuint id, GLsizei primcount)
- {
- Internal("error_glDrawTransformFeedbackInstanced","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawTransformFeedbackInstanced)(mode, id, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawTransformFeedbackInstanced : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawTransformFeedbackStreamInstanced(GLenum mode, GLuint id, GLuint stream, GLsizei primcount)
- {
- Internal("error_glDrawTransformFeedbackStreamInstanced","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawTransformFeedbackStreamInstanced)(mode, id, stream, primcount);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawTransformFeedbackStreamInstanced : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_transpose_matrix
- static void REGAL_CALL error_glLoadTransposeMatrixdARB(const GLdouble *m)
- {
- Internal("error_glLoadTransposeMatrixdARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadTransposeMatrixdARB)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadTransposeMatrixdARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glLoadTransposeMatrixfARB(const GLfloat *m)
- {
- Internal("error_glLoadTransposeMatrixfARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glLoadTransposeMatrixfARB)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glLoadTransposeMatrixfARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultTransposeMatrixdARB(const GLdouble *m)
- {
- Internal("error_glMultTransposeMatrixdARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultTransposeMatrixdARB)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultTransposeMatrixdARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glMultTransposeMatrixfARB(const GLfloat *m)
- {
- Internal("error_glMultTransposeMatrixfARB","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glMultTransposeMatrixfARB)(m);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glMultTransposeMatrixfARB : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_uniform_buffer_object
- static void REGAL_CALL error_glBindBufferBase(GLenum target, GLuint index, GLuint buffer)
- {
- Internal("error_glBindBufferBase","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindBufferBase)(target, index, buffer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindBufferBase : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
- {
- Internal("error_glBindBufferRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindBufferRange)(target, index, buffer, offset, size);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindBufferRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName)
- {
- Internal("error_glGetActiveUniformBlockName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveUniformBlockName)(program, uniformBlockIndex, bufSize, length, uniformBlockName);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveUniformBlockName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params)
- {
- Internal("error_glGetActiveUniformBlockiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveUniformBlockiv)(program, uniformBlockIndex, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveUniformBlockiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName)
- {
- Internal("error_glGetActiveUniformName","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveUniformName)(program, uniformIndex, bufSize, length, uniformName);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveUniformName : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params)
- {
- Internal("error_glGetActiveUniformsiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetActiveUniformsiv)(program, uniformCount, uniformIndices, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetActiveUniformsiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGetIntegeri_v(GLenum target, GLuint index, GLint *data)
- {
- Internal("error_glGetIntegeri_v","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetIntegeri_v)(target, index, data);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetIntegeri_v : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLuint REGAL_CALL error_glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName)
- {
- Internal("error_glGetUniformBlockIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLuint ret = _next->call(&_next->glGetUniformBlockIndex)(program, uniformBlockName);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformBlockIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- static void REGAL_CALL error_glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar * const *uniformNames, GLuint *uniformIndices)
- {
- Internal("error_glGetUniformIndices","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetUniformIndices)(program, uniformCount, uniformNames, uniformIndices);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetUniformIndices : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding)
- {
- Internal("error_glUniformBlockBinding","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glUniformBlockBinding)(program, uniformBlockIndex, uniformBlockBinding);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glUniformBlockBinding : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_vertex_array_object
- static void REGAL_CALL error_glBindVertexArray(GLuint array)
- {
- Internal("error_glBindVertexArray","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindVertexArray)(array);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindVertexArray : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteVertexArrays(GLsizei n, const GLuint *arrays)
- {
- Internal("error_glDeleteVertexArrays","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteVertexArrays)(n, arrays);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteVertexArrays : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glGenVertexArrays(GLsizei n, GLuint *arrays)
- {
- Internal("error_glGenVertexArrays","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGenVertexArrays)(n, arrays);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGenVertexArrays : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static GLboolean REGAL_CALL error_glIsVertexArray(GLuint array)
- {
- Internal("error_glIsVertexArray","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- GLboolean ret = _next->call(&_next->glIsVertexArray)(array);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glIsVertexArray : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- return ret;
- }
- // GL_ARB_vertex_attrib_64bit
- static void REGAL_CALL error_glGetVertexAttribLdv(GLuint index, GLenum pname, GLdouble *params)
- {
- Internal("error_glGetVertexAttribLdv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glGetVertexAttribLdv)(index, pname, params);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glGetVertexAttribLdv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL1d(GLuint index, GLdouble x)
- {
- Internal("error_glVertexAttribL1d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL1d)(index, x);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL1d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL1dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttribL1dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL1dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL1dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL2d(GLuint index, GLdouble x, GLdouble y)
- {
- Internal("error_glVertexAttribL2d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL2d)(index, x, y);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL2d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL2dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttribL2dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL2dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL2dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z)
- {
- Internal("error_glVertexAttribL3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL3d)(index, x, y, z);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL3dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttribL3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL3dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
- {
- Internal("error_glVertexAttribL4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL4d)(index, x, y, z, w);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribL4dv(GLuint index, const GLdouble *v)
- {
- Internal("error_glVertexAttribL4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribL4dv)(index, v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribL4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexAttribLPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
- {
- Internal("error_glVertexAttribLPointer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexAttribLPointer)(index, size, type, stride, pointer);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexAttribLPointer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- // GL_ARB_vertex_attrib_binding
- static void REGAL_CALL error_glBindVertexBuffer(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride)
- {
- Internal("error_glBindVertexBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBindVertexBuffer)(bindingindex, buffer, offset, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBindVertexBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayBindVertexBufferEXT(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride)
- {
- Internal("error_glVertexArrayBindVertexBufferEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayBindVertexBufferEXT)(vaobj, bindingindex, buffer, offset, stride);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayBindVertexBufferEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayVertexAttribBindingEXT(GLuint vaobj, GLuint attribindex, GLuint bindingindex)
- {
- Internal("error_glVertexArrayVertexAttribBindingEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayVertexAttribBindingEXT)(vaobj, attribindex, bindingindex);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayVertexAttribBindingEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayVertexAttribFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset)
- {
- Internal("error_glVertexArrayVertexAttribFormatEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayVertexAttribFormatEXT)(vaobj, attribindex, size, type, normalized, relativeoffset);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayVertexAttribFormatEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayVertexAttribIFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)
- {
- Internal("error_glVertexArrayVertexAttribIFormatEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayVertexAttribIFormatEXT)(vaobj, attribindex, size, type, relativeoffset);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayVertexAttribIFormatEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayVertexAttribLFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)
- {
- Internal("error_glVertexArrayVertexAttribLFormatEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glVertexArrayVertexAttribLFormatEXT)(vaobj, attribindex, size, type, relativeoffset);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glVertexArrayVertexAttribLFormatEXT : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glVertexArrayVertexBindingDivisorEXT(GLuint vaobj, GLuint bindingindex, GLuint divisor)
- {
- Internal("error_glVertexArrayVertexBindingDivisorEXT","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next-