/src/regal/RegalDispatchError.cpp
C++ | 15310 lines | 14632 code | 631 blank | 47 comment | 2431 complexity | c991d608f374cecd00c7f4d6810ff70d MD5 | raw file
Possible License(s): BSD-3-Clause, JSON, LGPL-3.0
- /* 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) {
-