/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
Large files files are truncated, but you can click here to view the full file
- /* NOTE: Do not edit this file, it is generated by a script:
- Export.py --api gl 4.4 --api wgl 4.4 --api glx 4.4 --api cgl 1.4 --api egl 1.0 --outdir .
- */
- /*
- Copyright (c) 2011-2013 NVIDIA Corporation
- Copyright (c) 2011-2013 Cass Everitt
- Copyright (c) 2012-2013 Scott Nations
- Copyright (c) 2012 Mathias Schott
- Copyright (c) 2012-2013 Nigel Stewart
- Copyright (c) 2012-2013 Google Inc.
- All rights reserved.
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- /*
- Intended formatting conventions:
- $ astyle --style=allman --indent=spaces=2 --indent-switches
- */
- #include "pch.h" /* For MS precompiled header support */
- #include "RegalUtil.h"
- #if REGAL_ERROR
- REGAL_GLOBAL_BEGIN
- #include <string>
- using namespace std;
- #include "RegalLog.h"
- #include "RegalBreak.h"
- #include "RegalPush.h"
- #include "RegalToken.h"
- #include "RegalHelper.h"
- #include "RegalPrivate.h"
- #include "RegalContext.h"
- REGAL_GLOBAL_END
- REGAL_NAMESPACE_BEGIN
- using namespace ::REGAL_NAMESPACE_INTERNAL::Logging;
- using namespace ::REGAL_NAMESPACE_INTERNAL::Token;
- // GL_VERSION_1_0
- static void REGAL_CALL error_glAccum(GLenum op, GLfloat value)
- {
- Internal("error_glAccum","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glAccum)(op, value);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAccum : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glAlphaFunc(GLenum func, GLclampf ref)
- {
- Internal("error_glAlphaFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glAlphaFunc)(func, ref);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glAlphaFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBegin(GLenum mode)
- {
- Internal("error_glBegin","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _context->err.inBeginEnd = true;
- _next->call(&_next->glBegin)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBegin : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
- {
- Internal("error_glBitmap","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBitmap)(width, height, xorig, yorig, xmove, ymove, bitmap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBitmap : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glBlendFunc(GLenum sfactor, GLenum dfactor)
- {
- Internal("error_glBlendFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glBlendFunc)(sfactor, dfactor);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glBlendFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCallList(GLuint list)
- {
- Internal("error_glCallList","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCallList)(list);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCallList : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCallLists(GLsizei n, GLenum type, const GLvoid *lists)
- {
- Internal("error_glCallLists","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCallLists)(n, type, lists);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCallLists : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClear(GLbitfield mask)
- {
- Internal("error_glClear","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClear)(mask);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClear : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
- {
- Internal("error_glClearAccum","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearAccum)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearAccum : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- {
- Internal("error_glClearColor","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearColor)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearColor : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearDepth(GLclampd depth)
- {
- Internal("error_glClearDepth","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearDepth)(depth);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearDepth : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearIndex(GLfloat c)
- {
- Internal("error_glClearIndex","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearIndex)(c);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearIndex : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClearStencil(GLint s)
- {
- Internal("error_glClearStencil","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClearStencil)(s);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClearStencil : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glClipPlane(GLenum plane, const GLdouble *equation)
- {
- Internal("error_glClipPlane","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glClipPlane)(plane, equation);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glClipPlane : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3b(GLbyte red, GLbyte green, GLbyte blue)
- {
- Internal("error_glColor3b","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3b)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3b : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3bv(const GLbyte *v)
- {
- Internal("error_glColor3bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3bv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3d(GLdouble red, GLdouble green, GLdouble blue)
- {
- Internal("error_glColor3d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3d)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3dv(const GLdouble *v)
- {
- Internal("error_glColor3dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3f(GLfloat red, GLfloat green, GLfloat blue)
- {
- Internal("error_glColor3f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3f)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3fv(const GLfloat *v)
- {
- Internal("error_glColor3fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3i(GLint red, GLint green, GLint blue)
- {
- Internal("error_glColor3i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3i)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3iv(const GLint *v)
- {
- Internal("error_glColor3iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3s(GLshort red, GLshort green, GLshort blue)
- {
- Internal("error_glColor3s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3s)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3sv(const GLshort *v)
- {
- Internal("error_glColor3sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3ub(GLubyte red, GLubyte green, GLubyte blue)
- {
- Internal("error_glColor3ub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3ub)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3ub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3ubv(const GLubyte *v)
- {
- Internal("error_glColor3ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3ubv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3ui(GLuint red, GLuint green, GLuint blue)
- {
- Internal("error_glColor3ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3ui)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3uiv(const GLuint *v)
- {
- Internal("error_glColor3uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3uiv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3us(GLushort red, GLushort green, GLushort blue)
- {
- Internal("error_glColor3us","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3us)(red, green, blue);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3us : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor3usv(const GLushort *v)
- {
- Internal("error_glColor3usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor3usv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor3usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
- {
- Internal("error_glColor4b","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4b)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4b : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4bv(const GLbyte *v)
- {
- Internal("error_glColor4bv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4bv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4bv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
- {
- Internal("error_glColor4d","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4d)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4d : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4dv(const GLdouble *v)
- {
- Internal("error_glColor4dv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4dv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4dv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
- {
- Internal("error_glColor4f","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4f)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4f : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4fv(const GLfloat *v)
- {
- Internal("error_glColor4fv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4fv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4fv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4i(GLint red, GLint green, GLint blue, GLint alpha)
- {
- Internal("error_glColor4i","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4i)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4i : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4iv(const GLint *v)
- {
- Internal("error_glColor4iv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4iv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4iv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
- {
- Internal("error_glColor4s","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4s)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4s : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4sv(const GLshort *v)
- {
- Internal("error_glColor4sv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4sv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4sv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
- {
- Internal("error_glColor4ub","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4ub)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4ub : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4ubv(const GLubyte *v)
- {
- Internal("error_glColor4ubv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4ubv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4ubv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
- {
- Internal("error_glColor4ui","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4ui)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4ui : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4uiv(const GLuint *v)
- {
- Internal("error_glColor4uiv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4uiv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4uiv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
- {
- Internal("error_glColor4us","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4us)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4us : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColor4usv(const GLushort *v)
- {
- Internal("error_glColor4usv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColor4usv)(v);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColor4usv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- {
- Internal("error_glColorMask","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorMask)(red, green, blue, alpha);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorMask : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glColorMaterial(GLenum face, GLenum mode)
- {
- Internal("error_glColorMaterial","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glColorMaterial)(face, mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glColorMaterial : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
- {
- Internal("error_glCopyPixels","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCopyPixels)(x, y, width, height, type);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCopyPixels : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glCullFace(GLenum mode)
- {
- Internal("error_glCullFace","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glCullFace)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glCullFace : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDeleteLists(GLuint list, GLsizei range)
- {
- Internal("error_glDeleteLists","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDeleteLists)(list, range);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDeleteLists : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthFunc(GLenum func)
- {
- Internal("error_glDepthFunc","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthFunc)(func);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthFunc : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthMask(GLboolean flag)
- {
- Internal("error_glDepthMask","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthMask)(flag);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthMask : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDepthRange(GLclampd zNear, GLclampd zFar)
- {
- Internal("error_glDepthRange","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDepthRange)(zNear, zFar);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDepthRange : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDisable(GLenum cap)
- {
- Internal("error_glDisable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDisable)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDisable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawBuffer(GLenum mode)
- {
- Internal("error_glDrawBuffer","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawBuffer)(mode);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawBuffer : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
- {
- Internal("error_glDrawPixels","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glDrawPixels)(width, height, format, type, pixels);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glDrawPixels : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEdgeFlag(GLboolean flag)
- {
- Internal("error_glEdgeFlag","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEdgeFlag)(flag);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEdgeFlag : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEdgeFlagv(const GLboolean *flag)
- {
- Internal("error_glEdgeFlagv","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEdgeFlagv)(flag);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEdgeFlagv : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- }
- }
- }
- static void REGAL_CALL error_glEnable(GLenum cap)
- {
- Internal("error_glEnable","()");
- RegalContext *_context = REGAL_GET_CONTEXT();
- RegalAssert(_context);
- DispatchTableGL *_next = _context->dispatcher.error.next();
- RegalAssert(_next);
- GLenum _error = GL_NO_ERROR;
- if (!_context->err.inBeginEnd)
- _error = _next->call(&_next->glGetError)();
- RegalAssert(_error==GL_NO_ERROR);
- _next->call(&_next->glEnable)(cap);
- if (!_context->err.inBeginEnd) {
- _error = _next->call(&_next->glGetError)();
- if (_error!=GL_NO_ERROR) {
- Error("glEnable : ",Token::GLerrorToString(_error));
- #if REGAL_BREAK
- Break::ErrorCB(_error);
- #endif
- if (_context->err.callback)
- _context->err.callback( _error );
- …
Large files files are truncated, but you can click here to view the full file