| /* 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 "RegalUtil.h" |
| |
| #if REGAL_EMULATION |
| |
| REGAL_GLOBAL_BEGIN |
| |
| #include "RegalPrivate.h" |
| #include "RegalContext.h" |
| #include "RegalDispatch.h" |
| #include "RegalRect.h" |
| #include "RegalEmuProcsRect.h" |
| |
| REGAL_GLOBAL_END |
| |
| REGAL_NAMESPACE_BEGIN |
| |
| static void REGAL_CALL emuProcInterceptRect_glRectd(RegalContext *_context, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRect( _context, x1, y1, x2, y2 ); return; |
| |
| orig.glRectd( _context, x1, y1, x2, y2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRectdv(RegalContext *_context, const GLdouble *v1, const GLdouble *v2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRectv( _context, v1, v2 ); return; |
| |
| orig.glRectdv( _context, v1, v2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRectf(RegalContext *_context, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRect( _context, x1, y1, x2, y2 ); return; |
| |
| orig.glRectf( _context, x1, y1, x2, y2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRectfv(RegalContext *_context, const GLfloat *v1, const GLfloat *v2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRectv( _context, v1, v2 ); return; |
| |
| orig.glRectfv( _context, v1, v2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRecti(RegalContext *_context, GLint x1, GLint y1, GLint x2, GLint y2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRect( _context, x1, y1, x2, y2 ); return; |
| |
| orig.glRecti( _context, x1, y1, x2, y2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRectiv(RegalContext *_context, const GLint *v1, const GLint *v2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRectv( _context, v1, v2 ); return; |
| |
| orig.glRectiv( _context, v1, v2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRects(RegalContext *_context, GLshort x1, GLshort y1, GLshort x2, GLshort y2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRect( _context, x1, y1, x2, y2 ); return; |
| |
| orig.glRects( _context, x1, y1, x2, y2 ); |
| |
| } |
| |
| static void REGAL_CALL emuProcInterceptRect_glRectsv(RegalContext *_context, const GLshort *v1, const GLshort *v2) |
| { |
| RegalAssert(_context); |
| EmuProcsOriginateRect & orig = _context->rect->orig; |
| |
| // impl |
| _context->rect->glRectv( _context, v1, v2 ); return; |
| |
| orig.glRectsv( _context, v1, v2 ); |
| |
| } |
| |
| void EmuProcsInterceptRect( Dispatch::GL & dt ) { |
| dt.glRectd = emuProcInterceptRect_glRectd; |
| dt.glRectdv = emuProcInterceptRect_glRectdv; |
| dt.glRectf = emuProcInterceptRect_glRectf; |
| dt.glRectfv = emuProcInterceptRect_glRectfv; |
| dt.glRecti = emuProcInterceptRect_glRecti; |
| dt.glRectiv = emuProcInterceptRect_glRectiv; |
| dt.glRects = emuProcInterceptRect_glRects; |
| dt.glRectsv = emuProcInterceptRect_glRectsv; |
| } |
| |
| REGAL_NAMESPACE_END |
| |
| #endif // REGAL_EMULATION |