aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/botlib/be_aas_route.c8
-rw-r--r--code/client/cl_cin.c2
-rw-r--r--code/client/snd_mix.c8
-rw-r--r--code/macosx/macosx_glsmp_ports.m6
-rw-r--r--code/macosx/macosx_input.m12
-rw-r--r--code/macosx/macosx_qgl.h674
-rw-r--r--code/qcommon/common.c4
-rw-r--r--code/qcommon/md4.c5
-rw-r--r--code/qcommon/q_math.c74
-rw-r--r--code/qcommon/q_platform.h209
-rw-r--r--code/qcommon/q_shared.h12
-rw-r--r--code/qcommon/qcommon.h2
-rw-r--r--code/qcommon/vm.c4
-rw-r--r--code/qcommon/vm_interpreted.c4
-rw-r--r--code/renderer/tr_local.h2
-rw-r--r--code/renderer/tr_main.c2
-rw-r--r--code/renderer/tr_shade_calc.c2
-rw-r--r--code/unix/Makefile6
-rw-r--r--code/unix/ftola.s1
-rw-r--r--code/unix/matha.s1
-rw-r--r--code/unix/qasm.h253
-rw-r--r--code/unix/snapvectora.s1
-rw-r--r--code/unix/unix_shared.c2
-rw-r--r--code/win32/win_shared.c7
24 files changed, 506 insertions, 795 deletions
diff --git a/code/botlib/be_aas_route.c b/code/botlib/be_aas_route.c
index 95a255b..56b1613 100644
--- a/code/botlib/be_aas_route.c
+++ b/code/botlib/be_aas_route.c
@@ -106,7 +106,7 @@ void AAS_RoutingInfo(void)
// Returns: -
// Changes Globals: -
//===========================================================================
-__inline int AAS_ClusterAreaNum(int cluster, int areanum)
+ID_INLINE int AAS_ClusterAreaNum(int cluster, int areanum)
{
int side, areacluster;
@@ -166,7 +166,7 @@ void AAS_InitTravelFlagFromType(void)
// Returns: -
// Changes Globals: -
//===========================================================================
-__inline int AAS_TravelFlagForType_inline(int traveltype)
+ID_INLINE int AAS_TravelFlagForType_inline(int traveltype)
{
int tfl;
@@ -339,7 +339,7 @@ int AAS_EnableRoutingArea(int areanum, int enable)
// Returns: -
// Changes Globals: -
//===========================================================================
-__inline float AAS_RoutingTime(void)
+ID_INLINE float AAS_RoutingTime(void)
{
return AAS_Time();
} //end of the function AAS_RoutingTime
@@ -379,7 +379,7 @@ int AAS_GetAreaContentsTravelFlags(int areanum)
// Returns: -
// Changes Globals: -
//===========================================================================
-__inline int AAS_AreaContentsTravelFlags_inline(int areanum)
+ID_INLINE int AAS_AreaContentsTravelFlags_inline(int areanum)
{
return aasworld.areacontentstravelflags[areanum];
} //end of the function AAS_AreaContentsTravelFlags
diff --git a/code/client/cl_cin.c b/code/client/cl_cin.c
index f518ceb..1a54005 100644
--- a/code/client/cl_cin.c
+++ b/code/client/cl_cin.c
@@ -645,7 +645,7 @@ static unsigned short yuv_to_rgb( long y, long u, long v )
******************************************************************************/
#if defined(MACOS_X)
-static inline unsigned int yuv_to_rgb24( long y, long u, long v )
+static ID_INLINE unsigned int yuv_to_rgb24( long y, long u, long v )
{
long r,g,b,YY;
diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c
index 1c3a1da..21adf90 100644
--- a/code/client/snd_mix.c
+++ b/code/client/snd_mix.c
@@ -34,7 +34,6 @@ int* snd_p;
int snd_linear_count;
short* snd_out;
-#if !( (defined __GNUC__) && (defined __i386__) ) // if not a GNU x86 target
#if !id386 // if configured not to use asm
void S_WriteLinearBlastStereo16 (void)
@@ -61,6 +60,9 @@ void S_WriteLinearBlastStereo16 (void)
snd_out[i+1] = val;
}
}
+#elif defined(__GNUC__)
+// uses snd_mixa.s
+void S_WriteLinearBlastStereo16 (void);
#else
__declspec( naked ) void S_WriteLinearBlastStereo16 (void)
@@ -108,10 +110,6 @@ LClampDone2:
}
#endif
-#else
-// forward declare, implementation somewhere else
-void S_WriteLinearBlastStereo16 (void);
-#endif
void S_TransferStereo16 (unsigned long *pbuf, int endtime)
{
diff --git a/code/macosx/macosx_glsmp_ports.m b/code/macosx/macosx_glsmp_ports.m
index 82f1319..5fb008a 100644
--- a/code/macosx/macosx_glsmp_ports.m
+++ b/code/macosx/macosx_glsmp_ports.m
@@ -80,7 +80,7 @@ enum {
RenderCompletedMsg = 2,
};
-static /*inline*/ void MsgPortInit(MsgPort *port)
+static /*ID_INLINE*/ void MsgPortInit(MsgPort *port)
{
#if USE_MACH_PORTS
port->nsPort = [[NSMachPort alloc] init];
@@ -106,7 +106,7 @@ static /*inline*/ void MsgPortInit(MsgPort *port)
#endif
}
-static /*inline*/ void _SendMsg(MsgPort *port, unsigned int msgCode, void *msgData,
+static /*ID_INLINE*/ void _SendMsg(MsgPort *port, unsigned int msgCode, void *msgData,
const char *functionName, const char *portName, const char *msgName)
{
int rc;
@@ -173,7 +173,7 @@ static /*inline*/ void _SendMsg(MsgPort *port, unsigned int msgCode, void *msgDa
#endif
}
-static /*inline*/ void _WaitMsg(MsgPort *port, unsigned int *msgCode, void **msgData,
+static /*ID_INLINE*/ void _WaitMsg(MsgPort *port, unsigned int *msgCode, void **msgData,
const char *functionName, const char *portName)
{
int rc;
diff --git a/code/macosx/macosx_input.m b/code/macosx/macosx_input.m
index 1ebed63..b87c182 100644
--- a/code/macosx/macosx_input.m
+++ b/code/macosx/macosx_input.m
@@ -356,7 +356,7 @@ static qboolean maybeHide()
return Sys_Hide();
}
-static inline void sendEventForCharacter(NSEvent *event, unichar character, qboolean keyDownFlag, int currentTime)
+static ID_INLINE void sendEventForCharacter(NSEvent *event, unichar character, qboolean keyDownFlag, int currentTime)
{
if (in_showevents->integer)
Com_Printf("CHARACTER: 0x%02x down=%d\n", character, keyDownFlag);
@@ -563,7 +563,7 @@ static inline void sendEventForCharacter(NSEvent *event, unichar character, qboo
}
}
-static inline void processKeyEvent(NSEvent *keyEvent, qboolean keyDownFlag, int currentTime)
+static ID_INLINE void processKeyEvent(NSEvent *keyEvent, qboolean keyDownFlag, int currentTime)
{
NSEventType eventType;
NSString *characters;
@@ -578,7 +578,7 @@ static inline void processKeyEvent(NSEvent *keyEvent, qboolean keyDownFlag, int
}
}
-static inline void sendEventForMaskChangeInFlags(int quakeKey, unsigned int modifierMask, unsigned int newModifierFlags, int currentTime)
+static ID_INLINE void sendEventForMaskChangeInFlags(int quakeKey, unsigned int modifierMask, unsigned int newModifierFlags, int currentTime)
{
BOOL oldHadModifier, newHasModifier;
@@ -590,7 +590,7 @@ static inline void sendEventForMaskChangeInFlags(int quakeKey, unsigned int modi
}
}
-static inline void processFlagsChangedEvent(NSEvent *flagsChangedEvent, int currentTime)
+static ID_INLINE void processFlagsChangedEvent(NSEvent *flagsChangedEvent, int currentTime)
{
int newModifierFlags;
@@ -603,7 +603,7 @@ static inline void processFlagsChangedEvent(NSEvent *flagsChangedEvent, int curr
currentModifierFlags = newModifierFlags;
}
-static inline void processSystemDefinedEvent(NSEvent *systemDefinedEvent, int currentTime)
+static ID_INLINE void processSystemDefinedEvent(NSEvent *systemDefinedEvent, int currentTime)
{
static int oldButtons = 0;
int buttonsDelta;
@@ -666,7 +666,7 @@ static inline void processSystemDefinedEvent(NSEvent *systemDefinedEvent, int cu
}
}
-static inline void processEvent(NSEvent *event, int currentTime)
+static ID_INLINE void processEvent(NSEvent *event, int currentTime)
{
NSEventType eventType;
diff --git a/code/macosx/macosx_qgl.h b/code/macosx/macosx_qgl.h
index 1fa38ff..92b736d 100644
--- a/code/macosx/macosx_qgl.h
+++ b/code/macosx/macosx_qgl.h
@@ -30,12 +30,12 @@ extern void QGLCheckError(const char *message);
extern unsigned int QGLBeginStarted;
// This has to be done to avoid infinite recursion between our glGetError wrapper and QGLCheckError()
-static inline GLenum _glGetError(void) {
+static ID_INLINE GLenum _glGetError(void) {
return glGetError();
}
// void glAccum (GLenum op, GLfloat value);
-static inline void qglAccum(GLenum op, GLfloat value)
+static ID_INLINE void qglAccum(GLenum op, GLfloat value)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -49,7 +49,7 @@ static inline void qglAccum(GLenum op, GLfloat value)
}
// void glAlphaFunc (GLenum func, GLclampf ref);
-static inline void qglAlphaFunc(GLenum func, GLclampf ref)
+static ID_INLINE void qglAlphaFunc(GLenum func, GLclampf ref)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -63,7 +63,7 @@ static inline void qglAlphaFunc(GLenum func, GLclampf ref)
}
// GLboolean glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
-static inline GLboolean qglAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
+static ID_INLINE GLboolean qglAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
{
GLboolean returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -79,7 +79,7 @@ static inline GLboolean qglAreTexturesResident(GLsizei n, const GLuint *textures
}
// void glArrayElement (GLint i);
-static inline void qglArrayElement(GLint i)
+static ID_INLINE void qglArrayElement(GLint i)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -93,7 +93,7 @@ static inline void qglArrayElement(GLint i)
}
// void glBegin (GLenum mode);
-static inline void qglBegin(GLenum mode)
+static ID_INLINE void qglBegin(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -108,7 +108,7 @@ static inline void qglBegin(GLenum mode)
}
// void glBindTexture (GLenum target, GLuint texture);
-static inline void qglBindTexture(GLenum target, GLuint texture)
+static ID_INLINE void qglBindTexture(GLenum target, GLuint texture)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -122,7 +122,7 @@ static inline void qglBindTexture(GLenum target, GLuint texture)
}
// void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
-static inline void qglBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
+static ID_INLINE void qglBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -136,7 +136,7 @@ static inline void qglBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLflo
}
// void glBlendFunc (GLenum sfactor, GLenum dfactor);
-static inline void qglBlendFunc(GLenum sfactor, GLenum dfactor)
+static ID_INLINE void qglBlendFunc(GLenum sfactor, GLenum dfactor)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -150,7 +150,7 @@ static inline void qglBlendFunc(GLenum sfactor, GLenum dfactor)
}
// void glCallList (GLuint list);
-static inline void qglCallList(GLuint list)
+static ID_INLINE void qglCallList(GLuint list)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -164,7 +164,7 @@ static inline void qglCallList(GLuint list)
}
// void glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
-static inline void qglCallLists(GLsizei n, GLenum type, const GLvoid *lists)
+static ID_INLINE void qglCallLists(GLsizei n, GLenum type, const GLvoid *lists)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -178,7 +178,7 @@ static inline void qglCallLists(GLsizei n, GLenum type, const GLvoid *lists)
}
// void glClear (GLbitfield mask);
-static inline void qglClear(GLbitfield mask)
+static ID_INLINE void qglClear(GLbitfield mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -192,7 +192,7 @@ static inline void qglClear(GLbitfield mask)
}
// void glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-static inline void qglClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+static ID_INLINE void qglClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -206,7 +206,7 @@ static inline void qglClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLflo
}
// void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-static inline void qglClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+static ID_INLINE void qglClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -220,7 +220,7 @@ static inline void qglClearColor(GLclampf red, GLclampf green, GLclampf blue, GL
}
// void glClearDepth (GLclampd depth);
-static inline void qglClearDepth(GLclampd depth)
+static ID_INLINE void qglClearDepth(GLclampd depth)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -234,7 +234,7 @@ static inline void qglClearDepth(GLclampd depth)
}
// void glClearIndex (GLfloat c);
-static inline void qglClearIndex(GLfloat c)
+static ID_INLINE void qglClearIndex(GLfloat c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -248,7 +248,7 @@ static inline void qglClearIndex(GLfloat c)
}
// void glClearStencil (GLint s);
-static inline void qglClearStencil(GLint s)
+static ID_INLINE void qglClearStencil(GLint s)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -262,7 +262,7 @@ static inline void qglClearStencil(GLint s)
}
// void glClipPlane (GLenum plane, const GLdouble *equation);
-static inline void qglClipPlane(GLenum plane, const GLdouble *equation)
+static ID_INLINE void qglClipPlane(GLenum plane, const GLdouble *equation)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -276,7 +276,7 @@ static inline void qglClipPlane(GLenum plane, const GLdouble *equation)
}
// void glColor3b (GLbyte red, GLbyte green, GLbyte blue);
-static inline void qglColor3b(GLbyte red, GLbyte green, GLbyte blue)
+static ID_INLINE void qglColor3b(GLbyte red, GLbyte green, GLbyte blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -290,7 +290,7 @@ static inline void qglColor3b(GLbyte red, GLbyte green, GLbyte blue)
}
// void glColor3bv (const GLbyte *v);
-static inline void qglColor3bv(const GLbyte *v)
+static ID_INLINE void qglColor3bv(const GLbyte *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -304,7 +304,7 @@ static inline void qglColor3bv(const GLbyte *v)
}
// void glColor3d (GLdouble red, GLdouble green, GLdouble blue);
-static inline void qglColor3d(GLdouble red, GLdouble green, GLdouble blue)
+static ID_INLINE void qglColor3d(GLdouble red, GLdouble green, GLdouble blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -318,7 +318,7 @@ static inline void qglColor3d(GLdouble red, GLdouble green, GLdouble blue)
}
// void glColor3dv (const GLdouble *v);
-static inline void qglColor3dv(const GLdouble *v)
+static ID_INLINE void qglColor3dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -332,7 +332,7 @@ static inline void qglColor3dv(const GLdouble *v)
}
// void glColor3f (GLfloat red, GLfloat green, GLfloat blue);
-static inline void qglColor3f(GLfloat red, GLfloat green, GLfloat blue)
+static ID_INLINE void qglColor3f(GLfloat red, GLfloat green, GLfloat blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -346,7 +346,7 @@ static inline void qglColor3f(GLfloat red, GLfloat green, GLfloat blue)
}
// void glColor3fv (const GLfloat *v);
-static inline void qglColor3fv(const GLfloat *v)
+static ID_INLINE void qglColor3fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -360,7 +360,7 @@ static inline void qglColor3fv(const GLfloat *v)
}
// void glColor3i (GLint red, GLint green, GLint blue);
-static inline void qglColor3i(GLint red, GLint green, GLint blue)
+static ID_INLINE void qglColor3i(GLint red, GLint green, GLint blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -374,7 +374,7 @@ static inline void qglColor3i(GLint red, GLint green, GLint blue)
}
// void glColor3iv (const GLint *v);
-static inline void qglColor3iv(const GLint *v)
+static ID_INLINE void qglColor3iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -388,7 +388,7 @@ static inline void qglColor3iv(const GLint *v)
}
// void glColor3s (GLshort red, GLshort green, GLshort blue);
-static inline void qglColor3s(GLshort red, GLshort green, GLshort blue)
+static ID_INLINE void qglColor3s(GLshort red, GLshort green, GLshort blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -402,7 +402,7 @@ static inline void qglColor3s(GLshort red, GLshort green, GLshort blue)
}
// void glColor3sv (const GLshort *v);
-static inline void qglColor3sv(const GLshort *v)
+static ID_INLINE void qglColor3sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -416,7 +416,7 @@ static inline void qglColor3sv(const GLshort *v)
}
// void glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
-static inline void qglColor3ub(GLubyte red, GLubyte green, GLubyte blue)
+static ID_INLINE void qglColor3ub(GLubyte red, GLubyte green, GLubyte blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -430,7 +430,7 @@ static inline void qglColor3ub(GLubyte red, GLubyte green, GLubyte blue)
}
// void glColor3ubv (const GLubyte *v);
-static inline void qglColor3ubv(const GLubyte *v)
+static ID_INLINE void qglColor3ubv(const GLubyte *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -444,7 +444,7 @@ static inline void qglColor3ubv(const GLubyte *v)
}
// void glColor3ui (GLuint red, GLuint green, GLuint blue);
-static inline void qglColor3ui(GLuint red, GLuint green, GLuint blue)
+static ID_INLINE void qglColor3ui(GLuint red, GLuint green, GLuint blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -458,7 +458,7 @@ static inline void qglColor3ui(GLuint red, GLuint green, GLuint blue)
}
// void glColor3uiv (const GLuint *v);
-static inline void qglColor3uiv(const GLuint *v)
+static ID_INLINE void qglColor3uiv(const GLuint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -472,7 +472,7 @@ static inline void qglColor3uiv(const GLuint *v)
}
// void glColor3us (GLushort red, GLushort green, GLushort blue);
-static inline void qglColor3us(GLushort red, GLushort green, GLushort blue)
+static ID_INLINE void qglColor3us(GLushort red, GLushort green, GLushort blue)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -486,7 +486,7 @@ static inline void qglColor3us(GLushort red, GLushort green, GLushort blue)
}
// void glColor3usv (const GLushort *v);
-static inline void qglColor3usv(const GLushort *v)
+static ID_INLINE void qglColor3usv(const GLushort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -500,7 +500,7 @@ static inline void qglColor3usv(const GLushort *v)
}
// void glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
-static inline void qglColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+static ID_INLINE void qglColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -514,7 +514,7 @@ static inline void qglColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alph
}
// void glColor4bv (const GLbyte *v);
-static inline void qglColor4bv(const GLbyte *v)
+static ID_INLINE void qglColor4bv(const GLbyte *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -528,7 +528,7 @@ static inline void qglColor4bv(const GLbyte *v)
}
// void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
-static inline void qglColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+static ID_INLINE void qglColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -542,7 +542,7 @@ static inline void qglColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdou
}
// void glColor4dv (const GLdouble *v);
-static inline void qglColor4dv(const GLdouble *v)
+static ID_INLINE void qglColor4dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -556,7 +556,7 @@ static inline void qglColor4dv(const GLdouble *v)
}
// void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-static inline void qglColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+static ID_INLINE void qglColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -570,7 +570,7 @@ static inline void qglColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat
}
// void glColor4fv (const GLfloat *v);
-static inline void qglColor4fv(const GLfloat *v)
+static ID_INLINE void qglColor4fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -584,7 +584,7 @@ static inline void qglColor4fv(const GLfloat *v)
}
// void glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
-static inline void qglColor4i(GLint red, GLint green, GLint blue, GLint alpha)
+static ID_INLINE void qglColor4i(GLint red, GLint green, GLint blue, GLint alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -598,7 +598,7 @@ static inline void qglColor4i(GLint red, GLint green, GLint blue, GLint alpha)
}
// void glColor4iv (const GLint *v);
-static inline void qglColor4iv(const GLint *v)
+static ID_INLINE void qglColor4iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -612,7 +612,7 @@ static inline void qglColor4iv(const GLint *v)
}
// void glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
-static inline void qglColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
+static ID_INLINE void qglColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -626,7 +626,7 @@ static inline void qglColor4s(GLshort red, GLshort green, GLshort blue, GLshort
}
// void glColor4sv (const GLshort *v);
-static inline void qglColor4sv(const GLshort *v)
+static ID_INLINE void qglColor4sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -640,7 +640,7 @@ static inline void qglColor4sv(const GLshort *v)
}
// void glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
-static inline void qglColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+static ID_INLINE void qglColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -654,7 +654,7 @@ static inline void qglColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte
}
// void glColor4ubv (const GLubyte *v);
-static inline void qglColor4ubv(const GLubyte *v)
+static ID_INLINE void qglColor4ubv(const GLubyte *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -668,7 +668,7 @@ static inline void qglColor4ubv(const GLubyte *v)
}
// void glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
-static inline void qglColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
+static ID_INLINE void qglColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -682,7 +682,7 @@ static inline void qglColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alp
}
// void glColor4uiv (const GLuint *v);
-static inline void qglColor4uiv(const GLuint *v)
+static ID_INLINE void qglColor4uiv(const GLuint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -696,7 +696,7 @@ static inline void qglColor4uiv(const GLuint *v)
}
// void glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
-static inline void qglColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
+static ID_INLINE void qglColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -710,7 +710,7 @@ static inline void qglColor4us(GLushort red, GLushort green, GLushort blue, GLus
}
// void glColor4usv (const GLushort *v);
-static inline void qglColor4usv(const GLushort *v)
+static ID_INLINE void qglColor4usv(const GLushort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -724,7 +724,7 @@ static inline void qglColor4usv(const GLushort *v)
}
// void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
-static inline void qglColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+static ID_INLINE void qglColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -738,7 +738,7 @@ static inline void qglColorMask(GLboolean red, GLboolean green, GLboolean blue,
}
// void glColorMaterial (GLenum face, GLenum mode);
-static inline void qglColorMaterial(GLenum face, GLenum mode)
+static ID_INLINE void qglColorMaterial(GLenum face, GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -752,7 +752,7 @@ static inline void qglColorMaterial(GLenum face, GLenum mode)
}
// void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -766,7 +766,7 @@ static inline void qglColorPointer(GLint size, GLenum type, GLsizei stride, cons
}
// void glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
-static inline void qglCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
+static ID_INLINE void qglCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -780,7 +780,7 @@ static inline void qglCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height
}
// void glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
-static inline void qglCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+static ID_INLINE void qglCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -794,7 +794,7 @@ static inline void qglCopyTexImage1D(GLenum target, GLint level, GLenum internal
}
// void glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-static inline void qglCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+static ID_INLINE void qglCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -808,7 +808,7 @@ static inline void qglCopyTexImage2D(GLenum target, GLint level, GLenum internal
}
// void glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-static inline void qglCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+static ID_INLINE void qglCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -822,7 +822,7 @@ static inline void qglCopyTexSubImage1D(GLenum target, GLint level, GLint xoffse
}
// void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-static inline void qglCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+static ID_INLINE void qglCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -836,7 +836,7 @@ static inline void qglCopyTexSubImage2D(GLenum target, GLint level, GLint xoffse
}
// void glCullFace (GLenum mode);
-static inline void qglCullFace(GLenum mode)
+static ID_INLINE void qglCullFace(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -850,7 +850,7 @@ static inline void qglCullFace(GLenum mode)
}
// void glDeleteLists (GLuint list, GLsizei range);
-static inline void qglDeleteLists(GLuint list, GLsizei range)
+static ID_INLINE void qglDeleteLists(GLuint list, GLsizei range)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -864,7 +864,7 @@ static inline void qglDeleteLists(GLuint list, GLsizei range)
}
// void glDeleteTextures (GLsizei n, const GLuint *textures);
-static inline void qglDeleteTextures(GLsizei n, const GLuint *textures)
+static ID_INLINE void qglDeleteTextures(GLsizei n, const GLuint *textures)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -878,7 +878,7 @@ static inline void qglDeleteTextures(GLsizei n, const GLuint *textures)
}
// void glDepthFunc (GLenum func);
-static inline void qglDepthFunc(GLenum func)
+static ID_INLINE void qglDepthFunc(GLenum func)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -892,7 +892,7 @@ static inline void qglDepthFunc(GLenum func)
}
// void glDepthMask (GLboolean flag);
-static inline void qglDepthMask(GLboolean flag)
+static ID_INLINE void qglDepthMask(GLboolean flag)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -906,7 +906,7 @@ static inline void qglDepthMask(GLboolean flag)
}
// void glDepthRange (GLclampd zNear, GLclampd zFar);
-static inline void qglDepthRange(GLclampd zNear, GLclampd zFar)
+static ID_INLINE void qglDepthRange(GLclampd zNear, GLclampd zFar)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -920,7 +920,7 @@ static inline void qglDepthRange(GLclampd zNear, GLclampd zFar)
}
// void glDisable (GLenum cap);
-static inline void qglDisable(GLenum cap)
+static ID_INLINE void qglDisable(GLenum cap)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -934,7 +934,7 @@ static inline void qglDisable(GLenum cap)
}
// void glDisableClientState (GLenum array);
-static inline void qglDisableClientState(GLenum array)
+static ID_INLINE void qglDisableClientState(GLenum array)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -948,7 +948,7 @@ static inline void qglDisableClientState(GLenum array)
}
// void glDrawArrays (GLenum mode, GLint first, GLsizei count);
-static inline void qglDrawArrays(GLenum mode, GLint first, GLsizei count)
+static ID_INLINE void qglDrawArrays(GLenum mode, GLint first, GLsizei count)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -962,7 +962,7 @@ static inline void qglDrawArrays(GLenum mode, GLint first, GLsizei count)
}
// void glDrawBuffer (GLenum mode);
-static inline void qglDrawBuffer(GLenum mode)
+static ID_INLINE void qglDrawBuffer(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -976,7 +976,7 @@ static inline void qglDrawBuffer(GLenum mode)
}
// void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
-static inline void qglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
+static ID_INLINE void qglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -990,7 +990,7 @@ static inline void qglDrawElements(GLenum mode, GLsizei count, GLenum type, cons
}
// void glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1004,7 +1004,7 @@ static inline void qglDrawPixels(GLsizei width, GLsizei height, GLenum format, G
}
// void glEdgeFlag (GLboolean flag);
-static inline void qglEdgeFlag(GLboolean flag)
+static ID_INLINE void qglEdgeFlag(GLboolean flag)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1018,7 +1018,7 @@ static inline void qglEdgeFlag(GLboolean flag)
}
// void glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
-static inline void qglEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1032,7 +1032,7 @@ static inline void qglEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
}
// void glEdgeFlagv (const GLboolean *flag);
-static inline void qglEdgeFlagv(const GLboolean *flag)
+static ID_INLINE void qglEdgeFlagv(const GLboolean *flag)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1046,7 +1046,7 @@ static inline void qglEdgeFlagv(const GLboolean *flag)
}
// void glEnable (GLenum cap);
-static inline void qglEnable(GLenum cap)
+static ID_INLINE void qglEnable(GLenum cap)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1060,7 +1060,7 @@ static inline void qglEnable(GLenum cap)
}
// void glEnableClientState (GLenum array);
-static inline void qglEnableClientState(GLenum array)
+static ID_INLINE void qglEnableClientState(GLenum array)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1074,7 +1074,7 @@ static inline void qglEnableClientState(GLenum array)
}
// void glEnd (void);
-static inline void qglEnd(void)
+static ID_INLINE void qglEnd(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1089,7 +1089,7 @@ static inline void qglEnd(void)
}
// void glEndList (void);
-static inline void qglEndList(void)
+static ID_INLINE void qglEndList(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1103,7 +1103,7 @@ static inline void qglEndList(void)
}
// void glEvalCoord1d (GLdouble u);
-static inline void qglEvalCoord1d(GLdouble u)
+static ID_INLINE void qglEvalCoord1d(GLdouble u)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1117,7 +1117,7 @@ static inline void qglEvalCoord1d(GLdouble u)
}
// void glEvalCoord1dv (const GLdouble *u);
-static inline void qglEvalCoord1dv(const GLdouble *u)
+static ID_INLINE void qglEvalCoord1dv(const GLdouble *u)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1131,7 +1131,7 @@ static inline void qglEvalCoord1dv(const GLdouble *u)
}
// void glEvalCoord1f (GLfloat u);
-static inline void qglEvalCoord1f(GLfloat u)
+static ID_INLINE void qglEvalCoord1f(GLfloat u)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1145,7 +1145,7 @@ static inline void qglEvalCoord1f(GLfloat u)
}
// void glEvalCoord1fv (const GLfloat *u);
-static inline void qglEvalCoord1fv(const GLfloat *u)
+static ID_INLINE void qglEvalCoord1fv(const GLfloat *u)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1159,7 +1159,7 @@ static inline void qglEvalCoord1fv(const GLfloat *u)
}
// void glEvalCoord2d (GLdouble u, GLdouble v);
-static inline void qglEvalCoord2d(GLdouble u, GLdouble v)
+static ID_INLINE void qglEvalCoord2d(GLdouble u, GLdouble v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1173,7 +1173,7 @@ static inline void qglEvalCoord2d(GLdouble u, GLdouble v)
}
// void glEvalCoord2dv (const GLdouble *u);
-static inline void qglEvalCoord2dv(const GLdouble *u)
+static ID_INLINE void qglEvalCoord2dv(const GLdouble *u)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1187,7 +1187,7 @@ static inline void qglEvalCoord2dv(const GLdouble *u)
}
// void glEvalCoord2f (GLfloat u, GLfloat v);
-static inline void qglEvalCoord2f(GLfloat u, GLfloat v)
+static ID_INLINE void qglEvalCoord2f(GLfloat u, GLfloat v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1201,7 +1201,7 @@ static inline void qglEvalCoord2f(GLfloat u, GLfloat v)
}
// void glEvalCoord2fv (const GLfloat *u);
-static inline void qglEvalCoord2fv(const GLfloat *u)
+static ID_INLINE void qglEvalCoord2fv(const GLfloat *u)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1215,7 +1215,7 @@ static inline void qglEvalCoord2fv(const GLfloat *u)
}
// void glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
-static inline void qglEvalMesh1(GLenum mode, GLint i1, GLint i2)
+static ID_INLINE void qglEvalMesh1(GLenum mode, GLint i1, GLint i2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1229,7 +1229,7 @@ static inline void qglEvalMesh1(GLenum mode, GLint i1, GLint i2)
}
// void glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
-static inline void qglEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+static ID_INLINE void qglEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1243,7 +1243,7 @@ static inline void qglEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint
}
// void glEvalPoint1 (GLint i);
-static inline void qglEvalPoint1(GLint i)
+static ID_INLINE void qglEvalPoint1(GLint i)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1257,7 +1257,7 @@ static inline void qglEvalPoint1(GLint i)
}
// void glEvalPoint2 (GLint i, GLint j);
-static inline void qglEvalPoint2(GLint i, GLint j)
+static ID_INLINE void qglEvalPoint2(GLint i, GLint j)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1271,7 +1271,7 @@ static inline void qglEvalPoint2(GLint i, GLint j)
}
// void glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
-static inline void qglFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
+static ID_INLINE void qglFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1285,7 +1285,7 @@ static inline void qglFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
}
// void glFinish (void);
-static inline void qglFinish(void)
+static ID_INLINE void qglFinish(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1299,7 +1299,7 @@ static inline void qglFinish(void)
}
// void glFlush (void);
-static inline void qglFlush(void)
+static ID_INLINE void qglFlush(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1313,7 +1313,7 @@ static inline void qglFlush(void)
}
// void glFogf (GLenum pname, GLfloat param);
-static inline void qglFogf(GLenum pname, GLfloat param)
+static ID_INLINE void qglFogf(GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1327,7 +1327,7 @@ static inline void qglFogf(GLenum pname, GLfloat param)
}
// void glFogfv (GLenum pname, const GLfloat *params);
-static inline void qglFogfv(GLenum pname, const GLfloat *params)
+static ID_INLINE void qglFogfv(GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1341,7 +1341,7 @@ static inline void qglFogfv(GLenum pname, const GLfloat *params)
}
// void glFogi (GLenum pname, GLint param);
-static inline void qglFogi(GLenum pname, GLint param)
+static ID_INLINE void qglFogi(GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1355,7 +1355,7 @@ static inline void qglFogi(GLenum pname, GLint param)
}
// void glFogiv (GLenum pname, const GLint *params);
-static inline void qglFogiv(GLenum pname, const GLint *params)
+static ID_INLINE void qglFogiv(GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1369,7 +1369,7 @@ static inline void qglFogiv(GLenum pname, const GLint *params)
}
// void glFrontFace (GLenum mode);
-static inline void qglFrontFace(GLenum mode)
+static ID_INLINE void qglFrontFace(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1383,7 +1383,7 @@ static inline void qglFrontFace(GLenum mode)
}
// void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-static inline void qglFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+static ID_INLINE void qglFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1397,7 +1397,7 @@ static inline void qglFrustum(GLdouble left, GLdouble right, GLdouble bottom, GL
}
// GLuint glGenLists (GLsizei range);
-static inline GLuint qglGenLists(GLsizei range)
+static ID_INLINE GLuint qglGenLists(GLsizei range)
{
GLuint returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -1413,7 +1413,7 @@ static inline GLuint qglGenLists(GLsizei range)
}
// void glGenTextures (GLsizei n, GLuint *textures);
-static inline void qglGenTextures(GLsizei n, GLuint *textures)
+static ID_INLINE void qglGenTextures(GLsizei n, GLuint *textures)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1427,7 +1427,7 @@ static inline void qglGenTextures(GLsizei n, GLuint *textures)
}
// void glGetBooleanv (GLenum pname, GLboolean *params);
-static inline void qglGetBooleanv(GLenum pname, GLboolean *params)
+static ID_INLINE void qglGetBooleanv(GLenum pname, GLboolean *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1441,7 +1441,7 @@ static inline void qglGetBooleanv(GLenum pname, GLboolean *params)
}
// void glGetClipPlane (GLenum plane, GLdouble *equation);
-static inline void qglGetClipPlane(GLenum plane, GLdouble *equation)
+static ID_INLINE void qglGetClipPlane(GLenum plane, GLdouble *equation)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1455,7 +1455,7 @@ static inline void qglGetClipPlane(GLenum plane, GLdouble *equation)
}
// void glGetDoublev (GLenum pname, GLdouble *params);
-static inline void qglGetDoublev(GLenum pname, GLdouble *params)
+static ID_INLINE void qglGetDoublev(GLenum pname, GLdouble *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1469,7 +1469,7 @@ static inline void qglGetDoublev(GLenum pname, GLdouble *params)
}
// GLenum glGetError (void);
-static inline GLenum qglGetError(void)
+static ID_INLINE GLenum qglGetError(void)
{
GLenum returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -1485,7 +1485,7 @@ static inline GLenum qglGetError(void)
}
// void glGetFloatv (GLenum pname, GLfloat *params);
-static inline void qglGetFloatv(GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetFloatv(GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1499,7 +1499,7 @@ static inline void qglGetFloatv(GLenum pname, GLfloat *params)
}
// void glGetIntegerv (GLenum pname, GLint *params);
-static inline void qglGetIntegerv(GLenum pname, GLint *params)
+static ID_INLINE void qglGetIntegerv(GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1513,7 +1513,7 @@ static inline void qglGetIntegerv(GLenum pname, GLint *params)
}
// void glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
-static inline void qglGetLightfv(GLenum light, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetLightfv(GLenum light, GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1527,7 +1527,7 @@ static inline void qglGetLightfv(GLenum light, GLenum pname, GLfloat *params)
}
// void glGetLightiv (GLenum light, GLenum pname, GLint *params);
-static inline void qglGetLightiv(GLenum light, GLenum pname, GLint *params)
+static ID_INLINE void qglGetLightiv(GLenum light, GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1541,7 +1541,7 @@ static inline void qglGetLightiv(GLenum light, GLenum pname, GLint *params)
}
// void glGetMapdv (GLenum target, GLenum query, GLdouble *v);
-static inline void qglGetMapdv(GLenum target, GLenum query, GLdouble *v)
+static ID_INLINE void qglGetMapdv(GLenum target, GLenum query, GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1555,7 +1555,7 @@ static inline void qglGetMapdv(GLenum target, GLenum query, GLdouble *v)
}
// void glGetMapfv (GLenum target, GLenum query, GLfloat *v);
-static inline void qglGetMapfv(GLenum target, GLenum query, GLfloat *v)
+static ID_INLINE void qglGetMapfv(GLenum target, GLenum query, GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1569,7 +1569,7 @@ static inline void qglGetMapfv(GLenum target, GLenum query, GLfloat *v)
}
// void glGetMapiv (GLenum target, GLenum query, GLint *v);
-static inline void qglGetMapiv(GLenum target, GLenum query, GLint *v)
+static ID_INLINE void qglGetMapiv(GLenum target, GLenum query, GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1583,7 +1583,7 @@ static inline void qglGetMapiv(GLenum target, GLenum query, GLint *v)
}
// void glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
-static inline void qglGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1597,7 +1597,7 @@ static inline void qglGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
}
// void glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
-static inline void qglGetMaterialiv(GLenum face, GLenum pname, GLint *params)
+static ID_INLINE void qglGetMaterialiv(GLenum face, GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1611,7 +1611,7 @@ static inline void qglGetMaterialiv(GLenum face, GLenum pname, GLint *params)
}
// void glGetPixelMapfv (GLenum map, GLfloat *values);
-static inline void qglGetPixelMapfv(GLenum map, GLfloat *values)
+static ID_INLINE void qglGetPixelMapfv(GLenum map, GLfloat *values)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1625,7 +1625,7 @@ static inline void qglGetPixelMapfv(GLenum map, GLfloat *values)
}
// void glGetPixelMapuiv (GLenum map, GLuint *values);
-static inline void qglGetPixelMapuiv(GLenum map, GLuint *values)
+static ID_INLINE void qglGetPixelMapuiv(GLenum map, GLuint *values)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1639,7 +1639,7 @@ static inline void qglGetPixelMapuiv(GLenum map, GLuint *values)
}
// void glGetPixelMapusv (GLenum map, GLushort *values);
-static inline void qglGetPixelMapusv(GLenum map, GLushort *values)
+static ID_INLINE void qglGetPixelMapusv(GLenum map, GLushort *values)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1653,7 +1653,7 @@ static inline void qglGetPixelMapusv(GLenum map, GLushort *values)
}
// void glGetPointerv (GLenum pname, GLvoid* *params);
-static inline void qglGetPointerv(GLenum pname, GLvoid* *params)
+static ID_INLINE void qglGetPointerv(GLenum pname, GLvoid* *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1667,7 +1667,7 @@ static inline void qglGetPointerv(GLenum pname, GLvoid* *params)
}
// void glGetPolygonStipple (GLubyte *mask);
-static inline void qglGetPolygonStipple(GLubyte *mask)
+static ID_INLINE void qglGetPolygonStipple(GLubyte *mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1681,7 +1681,7 @@ static inline void qglGetPolygonStipple(GLubyte *mask)
}
// const GLubyte * glGetString (GLenum name);
-static inline const GLubyte * qglGetString(GLenum name)
+static ID_INLINE const GLubyte * qglGetString(GLenum name)
{
const GLubyte * returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -1697,7 +1697,7 @@ static inline const GLubyte * qglGetString(GLenum name)
}
// void glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
-static inline void qglGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1711,7 +1711,7 @@ static inline void qglGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
}
// void glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
-static inline void qglGetTexEnviv(GLenum target, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexEnviv(GLenum target, GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1725,7 +1725,7 @@ static inline void qglGetTexEnviv(GLenum target, GLenum pname, GLint *params)
}
// void glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
-static inline void qglGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
+static ID_INLINE void qglGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1739,7 +1739,7 @@ static inline void qglGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
}
// void glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
-static inline void qglGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1753,7 +1753,7 @@ static inline void qglGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
}
// void glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
-static inline void qglGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1767,7 +1767,7 @@ static inline void qglGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
}
// void glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-static inline void qglGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
+static ID_INLINE void qglGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1781,7 +1781,7 @@ static inline void qglGetTexImage(GLenum target, GLint level, GLenum format, GLe
}
// void glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
-static inline void qglGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1795,7 +1795,7 @@ static inline void qglGetTexLevelParameterfv(GLenum target, GLint level, GLenum
}
// void glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
-static inline void qglGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1809,7 +1809,7 @@ static inline void qglGetTexLevelParameteriv(GLenum target, GLint level, GLenum
}
// void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
-static inline void qglGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1823,7 +1823,7 @@ static inline void qglGetTexParameterfv(GLenum target, GLenum pname, GLfloat *pa
}
// void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
-static inline void qglGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1837,7 +1837,7 @@ static inline void qglGetTexParameteriv(GLenum target, GLenum pname, GLint *para
}
// void glHint (GLenum target, GLenum mode);
-static inline void qglHint(GLenum target, GLenum mode)
+static ID_INLINE void qglHint(GLenum target, GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1851,7 +1851,7 @@ static inline void qglHint(GLenum target, GLenum mode)
}
// void glIndexMask (GLuint mask);
-static inline void qglIndexMask(GLuint mask)
+static ID_INLINE void qglIndexMask(GLuint mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1865,7 +1865,7 @@ static inline void qglIndexMask(GLuint mask)
}
// void glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1879,7 +1879,7 @@ static inline void qglIndexPointer(GLenum type, GLsizei stride, const GLvoid *po
}
// void glIndexd (GLdouble c);
-static inline void qglIndexd(GLdouble c)
+static ID_INLINE void qglIndexd(GLdouble c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1893,7 +1893,7 @@ static inline void qglIndexd(GLdouble c)
}
// void glIndexdv (const GLdouble *c);
-static inline void qglIndexdv(const GLdouble *c)
+static ID_INLINE void qglIndexdv(const GLdouble *c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1907,7 +1907,7 @@ static inline void qglIndexdv(const GLdouble *c)
}
// void glIndexf (GLfloat c);
-static inline void qglIndexf(GLfloat c)
+static ID_INLINE void qglIndexf(GLfloat c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1921,7 +1921,7 @@ static inline void qglIndexf(GLfloat c)
}
// void glIndexfv (const GLfloat *c);
-static inline void qglIndexfv(const GLfloat *c)
+static ID_INLINE void qglIndexfv(const GLfloat *c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1935,7 +1935,7 @@ static inline void qglIndexfv(const GLfloat *c)
}
// void glIndexi (GLint c);
-static inline void qglIndexi(GLint c)
+static ID_INLINE void qglIndexi(GLint c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1949,7 +1949,7 @@ static inline void qglIndexi(GLint c)
}
// void glIndexiv (const GLint *c);
-static inline void qglIndexiv(const GLint *c)
+static ID_INLINE void qglIndexiv(const GLint *c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1963,7 +1963,7 @@ static inline void qglIndexiv(const GLint *c)
}
// void glIndexs (GLshort c);
-static inline void qglIndexs(GLshort c)
+static ID_INLINE void qglIndexs(GLshort c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1977,7 +1977,7 @@ static inline void qglIndexs(GLshort c)
}
// void glIndexsv (const GLshort *c);
-static inline void qglIndexsv(const GLshort *c)
+static ID_INLINE void qglIndexsv(const GLshort *c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -1991,7 +1991,7 @@ static inline void qglIndexsv(const GLshort *c)
}
// void glIndexub (GLubyte c);
-static inline void qglIndexub(GLubyte c)
+static ID_INLINE void qglIndexub(GLubyte c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2005,7 +2005,7 @@ static inline void qglIndexub(GLubyte c)
}
// void glIndexubv (const GLubyte *c);
-static inline void qglIndexubv(const GLubyte *c)
+static ID_INLINE void qglIndexubv(const GLubyte *c)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2019,7 +2019,7 @@ static inline void qglIndexubv(const GLubyte *c)
}
// void glInitNames (void);
-static inline void qglInitNames(void)
+static ID_INLINE void qglInitNames(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2033,7 +2033,7 @@ static inline void qglInitNames(void)
}
// void glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
-static inline void qglInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2047,7 +2047,7 @@ static inline void qglInterleavedArrays(GLenum format, GLsizei stride, const GLv
}
// GLboolean glIsEnabled (GLenum cap);
-static inline GLboolean qglIsEnabled(GLenum cap)
+static ID_INLINE GLboolean qglIsEnabled(GLenum cap)
{
GLboolean returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -2063,7 +2063,7 @@ static inline GLboolean qglIsEnabled(GLenum cap)
}
// GLboolean glIsList (GLuint list);
-static inline GLboolean qglIsList(GLuint list)
+static ID_INLINE GLboolean qglIsList(GLuint list)
{
GLboolean returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -2079,7 +2079,7 @@ static inline GLboolean qglIsList(GLuint list)
}
// GLboolean glIsTexture (GLuint texture);
-static inline GLboolean qglIsTexture(GLuint texture)
+static ID_INLINE GLboolean qglIsTexture(GLuint texture)
{
GLboolean returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -2095,7 +2095,7 @@ static inline GLboolean qglIsTexture(GLuint texture)
}
// void glLightModelf (GLenum pname, GLfloat param);
-static inline void qglLightModelf(GLenum pname, GLfloat param)
+static ID_INLINE void qglLightModelf(GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2109,7 +2109,7 @@ static inline void qglLightModelf(GLenum pname, GLfloat param)
}
// void glLightModelfv (GLenum pname, const GLfloat *params);
-static inline void qglLightModelfv(GLenum pname, const GLfloat *params)
+static ID_INLINE void qglLightModelfv(GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2123,7 +2123,7 @@ static inline void qglLightModelfv(GLenum pname, const GLfloat *params)
}
// void glLightModeli (GLenum pname, GLint param);
-static inline void qglLightModeli(GLenum pname, GLint param)
+static ID_INLINE void qglLightModeli(GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2137,7 +2137,7 @@ static inline void qglLightModeli(GLenum pname, GLint param)
}
// void glLightModeliv (GLenum pname, const GLint *params);
-static inline void qglLightModeliv(GLenum pname, const GLint *params)
+static ID_INLINE void qglLightModeliv(GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2151,7 +2151,7 @@ static inline void qglLightModeliv(GLenum pname, const GLint *params)
}
// void glLightf (GLenum light, GLenum pname, GLfloat param);
-static inline void qglLightf(GLenum light, GLenum pname, GLfloat param)
+static ID_INLINE void qglLightf(GLenum light, GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2165,7 +2165,7 @@ static inline void qglLightf(GLenum light, GLenum pname, GLfloat param)
}
// void glLightfv (GLenum light, GLenum pname, const GLfloat *params);
-static inline void qglLightfv(GLenum light, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglLightfv(GLenum light, GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2179,7 +2179,7 @@ static inline void qglLightfv(GLenum light, GLenum pname, const GLfloat *params)
}
// void glLighti (GLenum light, GLenum pname, GLint param);
-static inline void qglLighti(GLenum light, GLenum pname, GLint param)
+static ID_INLINE void qglLighti(GLenum light, GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2193,7 +2193,7 @@ static inline void qglLighti(GLenum light, GLenum pname, GLint param)
}
// void glLightiv (GLenum light, GLenum pname, const GLint *params);
-static inline void qglLightiv(GLenum light, GLenum pname, const GLint *params)
+static ID_INLINE void qglLightiv(GLenum light, GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2207,7 +2207,7 @@ static inline void qglLightiv(GLenum light, GLenum pname, const GLint *params)
}
// void glLineStipple (GLint factor, GLushort pattern);
-static inline void qglLineStipple(GLint factor, GLushort pattern)
+static ID_INLINE void qglLineStipple(GLint factor, GLushort pattern)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2221,7 +2221,7 @@ static inline void qglLineStipple(GLint factor, GLushort pattern)
}
// void glLineWidth (GLfloat width);
-static inline void qglLineWidth(GLfloat width)
+static ID_INLINE void qglLineWidth(GLfloat width)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2235,7 +2235,7 @@ static inline void qglLineWidth(GLfloat width)
}
// void glListBase (GLuint base);
-static inline void qglListBase(GLuint base)
+static ID_INLINE void qglListBase(GLuint base)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2249,7 +2249,7 @@ static inline void qglListBase(GLuint base)
}
// void glLoadIdentity (void);
-static inline void qglLoadIdentity(void)
+static ID_INLINE void qglLoadIdentity(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2263,7 +2263,7 @@ static inline void qglLoadIdentity(void)
}
// void glLoadMatrixd (const GLdouble *m);
-static inline void qglLoadMatrixd(const GLdouble *m)
+static ID_INLINE void qglLoadMatrixd(const GLdouble *m)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2277,7 +2277,7 @@ static inline void qglLoadMatrixd(const GLdouble *m)
}
// void glLoadMatrixf (const GLfloat *m);
-static inline void qglLoadMatrixf(const GLfloat *m)
+static ID_INLINE void qglLoadMatrixf(const GLfloat *m)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2291,7 +2291,7 @@ static inline void qglLoadMatrixf(const GLfloat *m)
}
// void glLoadName (GLuint name);
-static inline void qglLoadName(GLuint name)
+static ID_INLINE void qglLoadName(GLuint name)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2305,7 +2305,7 @@ static inline void qglLoadName(GLuint name)
}
// void glLogicOp (GLenum opcode);
-static inline void qglLogicOp(GLenum opcode)
+static ID_INLINE void qglLogicOp(GLenum opcode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2319,7 +2319,7 @@ static inline void qglLogicOp(GLenum opcode)
}
// void glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
-static inline void qglMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
+static ID_INLINE void qglMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2333,7 +2333,7 @@ static inline void qglMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint strid
}
// void glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
-static inline void qglMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
+static ID_INLINE void qglMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2347,7 +2347,7 @@ static inline void qglMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride,
}
// void glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
-static inline void qglMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
+static ID_INLINE void qglMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2361,7 +2361,7 @@ static inline void qglMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustri
}
// void glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
-static inline void qglMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
+static ID_INLINE void qglMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2375,7 +2375,7 @@ static inline void qglMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride
}
// void glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
-static inline void qglMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
+static ID_INLINE void qglMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2389,7 +2389,7 @@ static inline void qglMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
}
// void glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
-static inline void qglMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
+static ID_INLINE void qglMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2403,7 +2403,7 @@ static inline void qglMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
}
// void glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
-static inline void qglMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+static ID_INLINE void qglMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2417,7 +2417,7 @@ static inline void qglMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GL
}
// void glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
-static inline void qglMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+static ID_INLINE void qglMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2431,7 +2431,7 @@ static inline void qglMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfl
}
// void glMaterialf (GLenum face, GLenum pname, GLfloat param);
-static inline void qglMaterialf(GLenum face, GLenum pname, GLfloat param)
+static ID_INLINE void qglMaterialf(GLenum face, GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2445,7 +2445,7 @@ static inline void qglMaterialf(GLenum face, GLenum pname, GLfloat param)
}
// void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
-static inline void qglMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2459,7 +2459,7 @@ static inline void qglMaterialfv(GLenum face, GLenum pname, const GLfloat *param
}
// void glMateriali (GLenum face, GLenum pname, GLint param);
-static inline void qglMateriali(GLenum face, GLenum pname, GLint param)
+static ID_INLINE void qglMateriali(GLenum face, GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2473,7 +2473,7 @@ static inline void qglMateriali(GLenum face, GLenum pname, GLint param)
}
// void glMaterialiv (GLenum face, GLenum pname, const GLint *params);
-static inline void qglMaterialiv(GLenum face, GLenum pname, const GLint *params)
+static ID_INLINE void qglMaterialiv(GLenum face, GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2487,7 +2487,7 @@ static inline void qglMaterialiv(GLenum face, GLenum pname, const GLint *params)
}
// void glMatrixMode (GLenum mode);
-static inline void qglMatrixMode(GLenum mode)
+static ID_INLINE void qglMatrixMode(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2501,7 +2501,7 @@ static inline void qglMatrixMode(GLenum mode)
}
// void glMultMatrixd (const GLdouble *m);
-static inline void qglMultMatrixd(const GLdouble *m)
+static ID_INLINE void qglMultMatrixd(const GLdouble *m)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2515,7 +2515,7 @@ static inline void qglMultMatrixd(const GLdouble *m)
}
// void glMultMatrixf (const GLfloat *m);
-static inline void qglMultMatrixf(const GLfloat *m)
+static ID_INLINE void qglMultMatrixf(const GLfloat *m)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2529,7 +2529,7 @@ static inline void qglMultMatrixf(const GLfloat *m)
}
// void glNewList (GLuint list, GLenum mode);
-static inline void qglNewList(GLuint list, GLenum mode)
+static ID_INLINE void qglNewList(GLuint list, GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2543,7 +2543,7 @@ static inline void qglNewList(GLuint list, GLenum mode)
}
// void glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
-static inline void qglNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
+static ID_INLINE void qglNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2557,7 +2557,7 @@ static inline void qglNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
}
// void glNormal3bv (const GLbyte *v);
-static inline void qglNormal3bv(const GLbyte *v)
+static ID_INLINE void qglNormal3bv(const GLbyte *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2571,7 +2571,7 @@ static inline void qglNormal3bv(const GLbyte *v)
}
// void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
-static inline void qglNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
+static ID_INLINE void qglNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2585,7 +2585,7 @@ static inline void qglNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
}
// void glNormal3dv (const GLdouble *v);
-static inline void qglNormal3dv(const GLdouble *v)
+static ID_INLINE void qglNormal3dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2599,7 +2599,7 @@ static inline void qglNormal3dv(const GLdouble *v)
}
// void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
-static inline void qglNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
+static ID_INLINE void qglNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2613,7 +2613,7 @@ static inline void qglNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
}
// void glNormal3fv (const GLfloat *v);
-static inline void qglNormal3fv(const GLfloat *v)
+static ID_INLINE void qglNormal3fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2627,7 +2627,7 @@ static inline void qglNormal3fv(const GLfloat *v)
}
// void glNormal3i (GLint nx, GLint ny, GLint nz);
-static inline void qglNormal3i(GLint nx, GLint ny, GLint nz)
+static ID_INLINE void qglNormal3i(GLint nx, GLint ny, GLint nz)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2641,7 +2641,7 @@ static inline void qglNormal3i(GLint nx, GLint ny, GLint nz)
}
// void glNormal3iv (const GLint *v);
-static inline void qglNormal3iv(const GLint *v)
+static ID_INLINE void qglNormal3iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2655,7 +2655,7 @@ static inline void qglNormal3iv(const GLint *v)
}
// void glNormal3s (GLshort nx, GLshort ny, GLshort nz);
-static inline void qglNormal3s(GLshort nx, GLshort ny, GLshort nz)
+static ID_INLINE void qglNormal3s(GLshort nx, GLshort ny, GLshort nz)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2669,7 +2669,7 @@ static inline void qglNormal3s(GLshort nx, GLshort ny, GLshort nz)
}
// void glNormal3sv (const GLshort *v);
-static inline void qglNormal3sv(const GLshort *v)
+static ID_INLINE void qglNormal3sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2683,7 +2683,7 @@ static inline void qglNormal3sv(const GLshort *v)
}
// void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2697,7 +2697,7 @@ static inline void qglNormalPointer(GLenum type, GLsizei stride, const GLvoid *p
}
// void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-static inline void qglOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+static ID_INLINE void qglOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2711,7 +2711,7 @@ static inline void qglOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdo
}
// void glPassThrough (GLfloat token);
-static inline void qglPassThrough(GLfloat token)
+static ID_INLINE void qglPassThrough(GLfloat token)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2725,7 +2725,7 @@ static inline void qglPassThrough(GLfloat token)
}
// void glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
-static inline void qglPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
+static ID_INLINE void qglPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2739,7 +2739,7 @@ static inline void qglPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *val
}
// void glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
-static inline void qglPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
+static ID_INLINE void qglPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2753,7 +2753,7 @@ static inline void qglPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *val
}
// void glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
-static inline void qglPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
+static ID_INLINE void qglPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2767,7 +2767,7 @@ static inline void qglPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *v
}
// void glPixelStoref (GLenum pname, GLfloat param);
-static inline void qglPixelStoref(GLenum pname, GLfloat param)
+static ID_INLINE void qglPixelStoref(GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2781,7 +2781,7 @@ static inline void qglPixelStoref(GLenum pname, GLfloat param)
}
// void glPixelStorei (GLenum pname, GLint param);
-static inline void qglPixelStorei(GLenum pname, GLint param)
+static ID_INLINE void qglPixelStorei(GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2795,7 +2795,7 @@ static inline void qglPixelStorei(GLenum pname, GLint param)
}
// void glPixelTransferf (GLenum pname, GLfloat param);
-static inline void qglPixelTransferf(GLenum pname, GLfloat param)
+static ID_INLINE void qglPixelTransferf(GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2809,7 +2809,7 @@ static inline void qglPixelTransferf(GLenum pname, GLfloat param)
}
// void glPixelTransferi (GLenum pname, GLint param);
-static inline void qglPixelTransferi(GLenum pname, GLint param)
+static ID_INLINE void qglPixelTransferi(GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2823,7 +2823,7 @@ static inline void qglPixelTransferi(GLenum pname, GLint param)
}
// void glPixelZoom (GLfloat xfactor, GLfloat yfactor);
-static inline void qglPixelZoom(GLfloat xfactor, GLfloat yfactor)
+static ID_INLINE void qglPixelZoom(GLfloat xfactor, GLfloat yfactor)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2837,7 +2837,7 @@ static inline void qglPixelZoom(GLfloat xfactor, GLfloat yfactor)
}
// void glPointSize (GLfloat size);
-static inline void qglPointSize(GLfloat size)
+static ID_INLINE void qglPointSize(GLfloat size)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2851,7 +2851,7 @@ static inline void qglPointSize(GLfloat size)
}
// void glPolygonMode (GLenum face, GLenum mode);
-static inline void qglPolygonMode(GLenum face, GLenum mode)
+static ID_INLINE void qglPolygonMode(GLenum face, GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2865,7 +2865,7 @@ static inline void qglPolygonMode(GLenum face, GLenum mode)
}
// void glPolygonOffset (GLfloat factor, GLfloat units);
-static inline void qglPolygonOffset(GLfloat factor, GLfloat units)
+static ID_INLINE void qglPolygonOffset(GLfloat factor, GLfloat units)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2879,7 +2879,7 @@ static inline void qglPolygonOffset(GLfloat factor, GLfloat units)
}
// void glPolygonStipple (const GLubyte *mask);
-static inline void qglPolygonStipple(const GLubyte *mask)
+static ID_INLINE void qglPolygonStipple(const GLubyte *mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2893,7 +2893,7 @@ static inline void qglPolygonStipple(const GLubyte *mask)
}
// void glPopAttrib (void);
-static inline void qglPopAttrib(void)
+static ID_INLINE void qglPopAttrib(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2907,7 +2907,7 @@ static inline void qglPopAttrib(void)
}
// void glPopClientAttrib (void);
-static inline void qglPopClientAttrib(void)
+static ID_INLINE void qglPopClientAttrib(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2921,7 +2921,7 @@ static inline void qglPopClientAttrib(void)
}
// void glPopMatrix (void);
-static inline void qglPopMatrix(void)
+static ID_INLINE void qglPopMatrix(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2935,7 +2935,7 @@ static inline void qglPopMatrix(void)
}
// void glPopName (void);
-static inline void qglPopName(void)
+static ID_INLINE void qglPopName(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2949,7 +2949,7 @@ static inline void qglPopName(void)
}
// void glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
-static inline void qglPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
+static ID_INLINE void qglPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2963,7 +2963,7 @@ static inline void qglPrioritizeTextures(GLsizei n, const GLuint *textures, cons
}
// void glPushAttrib (GLbitfield mask);
-static inline void qglPushAttrib(GLbitfield mask)
+static ID_INLINE void qglPushAttrib(GLbitfield mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2977,7 +2977,7 @@ static inline void qglPushAttrib(GLbitfield mask)
}
// void glPushClientAttrib (GLbitfield mask);
-static inline void qglPushClientAttrib(GLbitfield mask)
+static ID_INLINE void qglPushClientAttrib(GLbitfield mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -2991,7 +2991,7 @@ static inline void qglPushClientAttrib(GLbitfield mask)
}
// void glPushMatrix (void);
-static inline void qglPushMatrix(void)
+static ID_INLINE void qglPushMatrix(void)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3005,7 +3005,7 @@ static inline void qglPushMatrix(void)
}
// void glPushName (GLuint name);
-static inline void qglPushName(GLuint name)
+static ID_INLINE void qglPushName(GLuint name)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3019,7 +3019,7 @@ static inline void qglPushName(GLuint name)
}
// void glRasterPos2d (GLdouble x, GLdouble y);
-static inline void qglRasterPos2d(GLdouble x, GLdouble y)
+static ID_INLINE void qglRasterPos2d(GLdouble x, GLdouble y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3033,7 +3033,7 @@ static inline void qglRasterPos2d(GLdouble x, GLdouble y)
}
// void glRasterPos2dv (const GLdouble *v);
-static inline void qglRasterPos2dv(const GLdouble *v)
+static ID_INLINE void qglRasterPos2dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3047,7 +3047,7 @@ static inline void qglRasterPos2dv(const GLdouble *v)
}
// void glRasterPos2f (GLfloat x, GLfloat y);
-static inline void qglRasterPos2f(GLfloat x, GLfloat y)
+static ID_INLINE void qglRasterPos2f(GLfloat x, GLfloat y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3061,7 +3061,7 @@ static inline void qglRasterPos2f(GLfloat x, GLfloat y)
}
// void glRasterPos2fv (const GLfloat *v);
-static inline void qglRasterPos2fv(const GLfloat *v)
+static ID_INLINE void qglRasterPos2fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3075,7 +3075,7 @@ static inline void qglRasterPos2fv(const GLfloat *v)
}
// void glRasterPos2i (GLint x, GLint y);
-static inline void qglRasterPos2i(GLint x, GLint y)
+static ID_INLINE void qglRasterPos2i(GLint x, GLint y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3089,7 +3089,7 @@ static inline void qglRasterPos2i(GLint x, GLint y)
}
// void glRasterPos2iv (const GLint *v);
-static inline void qglRasterPos2iv(const GLint *v)
+static ID_INLINE void qglRasterPos2iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3103,7 +3103,7 @@ static inline void qglRasterPos2iv(const GLint *v)
}
// void glRasterPos2s (GLshort x, GLshort y);
-static inline void qglRasterPos2s(GLshort x, GLshort y)
+static ID_INLINE void qglRasterPos2s(GLshort x, GLshort y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3117,7 +3117,7 @@ static inline void qglRasterPos2s(GLshort x, GLshort y)
}
// void glRasterPos2sv (const GLshort *v);
-static inline void qglRasterPos2sv(const GLshort *v)
+static ID_INLINE void qglRasterPos2sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3131,7 +3131,7 @@ static inline void qglRasterPos2sv(const GLshort *v)
}
// void glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3145,7 +3145,7 @@ static inline void qglRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
}
// void glRasterPos3dv (const GLdouble *v);
-static inline void qglRasterPos3dv(const GLdouble *v)
+static ID_INLINE void qglRasterPos3dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3159,7 +3159,7 @@ static inline void qglRasterPos3dv(const GLdouble *v)
}
// void glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3173,7 +3173,7 @@ static inline void qglRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
}
// void glRasterPos3fv (const GLfloat *v);
-static inline void qglRasterPos3fv(const GLfloat *v)
+static ID_INLINE void qglRasterPos3fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3187,7 +3187,7 @@ static inline void qglRasterPos3fv(const GLfloat *v)
}
// void glRasterPos3i (GLint x, GLint y, GLint z);
-static inline void qglRasterPos3i(GLint x, GLint y, GLint z)
+static ID_INLINE void qglRasterPos3i(GLint x, GLint y, GLint z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3201,7 +3201,7 @@ static inline void qglRasterPos3i(GLint x, GLint y, GLint z)
}
// void glRasterPos3iv (const GLint *v);
-static inline void qglRasterPos3iv(const GLint *v)
+static ID_INLINE void qglRasterPos3iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3215,7 +3215,7 @@ static inline void qglRasterPos3iv(const GLint *v)
}
// void glRasterPos3s (GLshort x, GLshort y, GLshort z);
-static inline void qglRasterPos3s(GLshort x, GLshort y, GLshort z)
+static ID_INLINE void qglRasterPos3s(GLshort x, GLshort y, GLshort z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3229,7 +3229,7 @@ static inline void qglRasterPos3s(GLshort x, GLshort y, GLshort z)
}
// void glRasterPos3sv (const GLshort *v);
-static inline void qglRasterPos3sv(const GLshort *v)
+static ID_INLINE void qglRasterPos3sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3243,7 +3243,7 @@ static inline void qglRasterPos3sv(const GLshort *v)
}
// void glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-static inline void qglRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+static ID_INLINE void qglRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3257,7 +3257,7 @@ static inline void qglRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w
}
// void glRasterPos4dv (const GLdouble *v);
-static inline void qglRasterPos4dv(const GLdouble *v)
+static ID_INLINE void qglRasterPos4dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3271,7 +3271,7 @@ static inline void qglRasterPos4dv(const GLdouble *v)
}
// void glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-static inline void qglRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+static ID_INLINE void qglRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3285,7 +3285,7 @@ static inline void qglRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
}
// void glRasterPos4fv (const GLfloat *v);
-static inline void qglRasterPos4fv(const GLfloat *v)
+static ID_INLINE void qglRasterPos4fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3299,7 +3299,7 @@ static inline void qglRasterPos4fv(const GLfloat *v)
}
// void glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
-static inline void qglRasterPos4i(GLint x, GLint y, GLint z, GLint w)
+static ID_INLINE void qglRasterPos4i(GLint x, GLint y, GLint z, GLint w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3313,7 +3313,7 @@ static inline void qglRasterPos4i(GLint x, GLint y, GLint z, GLint w)
}
// void glRasterPos4iv (const GLint *v);
-static inline void qglRasterPos4iv(const GLint *v)
+static ID_INLINE void qglRasterPos4iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3327,7 +3327,7 @@ static inline void qglRasterPos4iv(const GLint *v)
}
// void glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
-static inline void qglRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
+static ID_INLINE void qglRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3341,7 +3341,7 @@ static inline void qglRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
}
// void glRasterPos4sv (const GLshort *v);
-static inline void qglRasterPos4sv(const GLshort *v)
+static ID_INLINE void qglRasterPos4sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3355,7 +3355,7 @@ static inline void qglRasterPos4sv(const GLshort *v)
}
// void glReadBuffer (GLenum mode);
-static inline void qglReadBuffer(GLenum mode)
+static ID_INLINE void qglReadBuffer(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3369,7 +3369,7 @@ static inline void qglReadBuffer(GLenum mode)
}
// void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
-static inline void qglReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
+static ID_INLINE void qglReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3383,7 +3383,7 @@ static inline void qglReadPixels(GLint x, GLint y, GLsizei width, GLsizei height
}
// void glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
-static inline void qglRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+static ID_INLINE void qglRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3397,7 +3397,7 @@ static inline void qglRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
}
// void glRectdv (const GLdouble *v1, const GLdouble *v2);
-static inline void qglRectdv(const GLdouble *v1, const GLdouble *v2)
+static ID_INLINE void qglRectdv(const GLdouble *v1, const GLdouble *v2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3411,7 +3411,7 @@ static inline void qglRectdv(const GLdouble *v1, const GLdouble *v2)
}
// void glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
-static inline void qglRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+static ID_INLINE void qglRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3425,7 +3425,7 @@ static inline void qglRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
}
// void glRectfv (const GLfloat *v1, const GLfloat *v2);
-static inline void qglRectfv(const GLfloat *v1, const GLfloat *v2)
+static ID_INLINE void qglRectfv(const GLfloat *v1, const GLfloat *v2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3439,7 +3439,7 @@ static inline void qglRectfv(const GLfloat *v1, const GLfloat *v2)
}
// void glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
-static inline void qglRecti(GLint x1, GLint y1, GLint x2, GLint y2)
+static ID_INLINE void qglRecti(GLint x1, GLint y1, GLint x2, GLint y2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3453,7 +3453,7 @@ static inline void qglRecti(GLint x1, GLint y1, GLint x2, GLint y2)
}
// void glRectiv (const GLint *v1, const GLint *v2);
-static inline void qglRectiv(const GLint *v1, const GLint *v2)
+static ID_INLINE void qglRectiv(const GLint *v1, const GLint *v2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3467,7 +3467,7 @@ static inline void qglRectiv(const GLint *v1, const GLint *v2)
}
// void glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
-static inline void qglRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+static ID_INLINE void qglRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3481,7 +3481,7 @@ static inline void qglRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
}
// void glRectsv (const GLshort *v1, const GLshort *v2);
-static inline void qglRectsv(const GLshort *v1, const GLshort *v2)
+static ID_INLINE void qglRectsv(const GLshort *v1, const GLshort *v2)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3495,7 +3495,7 @@ static inline void qglRectsv(const GLshort *v1, const GLshort *v2)
}
// GLint glRenderMode (GLenum mode);
-static inline GLint qglRenderMode(GLenum mode)
+static ID_INLINE GLint qglRenderMode(GLenum mode)
{
GLint returnValue;
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -3511,7 +3511,7 @@ static inline GLint qglRenderMode(GLenum mode)
}
// void glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
-static inline void qglRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3525,7 +3525,7 @@ static inline void qglRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z
}
// void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
-static inline void qglRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3539,7 +3539,7 @@ static inline void qglRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
}
// void glScaled (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglScaled(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglScaled(GLdouble x, GLdouble y, GLdouble z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3553,7 +3553,7 @@ static inline void qglScaled(GLdouble x, GLdouble y, GLdouble z)
}
// void glScalef (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglScalef(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglScalef(GLfloat x, GLfloat y, GLfloat z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3567,7 +3567,7 @@ static inline void qglScalef(GLfloat x, GLfloat y, GLfloat z)
}
// void glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
-static inline void qglScissor(GLint x, GLint y, GLsizei width, GLsizei height)
+static ID_INLINE void qglScissor(GLint x, GLint y, GLsizei width, GLsizei height)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3581,7 +3581,7 @@ static inline void qglScissor(GLint x, GLint y, GLsizei width, GLsizei height)
}
// void glSelectBuffer (GLsizei size, GLuint *buffer);
-static inline void qglSelectBuffer(GLsizei size, GLuint *buffer)
+static ID_INLINE void qglSelectBuffer(GLsizei size, GLuint *buffer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3595,7 +3595,7 @@ static inline void qglSelectBuffer(GLsizei size, GLuint *buffer)
}
// void glShadeModel (GLenum mode);
-static inline void qglShadeModel(GLenum mode)
+static ID_INLINE void qglShadeModel(GLenum mode)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3609,7 +3609,7 @@ static inline void qglShadeModel(GLenum mode)
}
// void glStencilFunc (GLenum func, GLint ref, GLuint mask);
-static inline void qglStencilFunc(GLenum func, GLint ref, GLuint mask)
+static ID_INLINE void qglStencilFunc(GLenum func, GLint ref, GLuint mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3623,7 +3623,7 @@ static inline void qglStencilFunc(GLenum func, GLint ref, GLuint mask)
}
// void glStencilMask (GLuint mask);
-static inline void qglStencilMask(GLuint mask)
+static ID_INLINE void qglStencilMask(GLuint mask)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3637,7 +3637,7 @@ static inline void qglStencilMask(GLuint mask)
}
// void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
-static inline void qglStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
+static ID_INLINE void qglStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3651,7 +3651,7 @@ static inline void qglStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
}
// void glTexCoord1d (GLdouble s);
-static inline void qglTexCoord1d(GLdouble s)
+static ID_INLINE void qglTexCoord1d(GLdouble s)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3665,7 +3665,7 @@ static inline void qglTexCoord1d(GLdouble s)
}
// void glTexCoord1dv (const GLdouble *v);
-static inline void qglTexCoord1dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord1dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3679,7 +3679,7 @@ static inline void qglTexCoord1dv(const GLdouble *v)
}
// void glTexCoord1f (GLfloat s);
-static inline void qglTexCoord1f(GLfloat s)
+static ID_INLINE void qglTexCoord1f(GLfloat s)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3693,7 +3693,7 @@ static inline void qglTexCoord1f(GLfloat s)
}
// void glTexCoord1fv (const GLfloat *v);
-static inline void qglTexCoord1fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord1fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3707,7 +3707,7 @@ static inline void qglTexCoord1fv(const GLfloat *v)
}
// void glTexCoord1i (GLint s);
-static inline void qglTexCoord1i(GLint s)
+static ID_INLINE void qglTexCoord1i(GLint s)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3721,7 +3721,7 @@ static inline void qglTexCoord1i(GLint s)
}
// void glTexCoord1iv (const GLint *v);
-static inline void qglTexCoord1iv(const GLint *v)
+static ID_INLINE void qglTexCoord1iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3735,7 +3735,7 @@ static inline void qglTexCoord1iv(const GLint *v)
}
// void glTexCoord1s (GLshort s);
-static inline void qglTexCoord1s(GLshort s)
+static ID_INLINE void qglTexCoord1s(GLshort s)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3749,7 +3749,7 @@ static inline void qglTexCoord1s(GLshort s)
}
// void glTexCoord1sv (const GLshort *v);
-static inline void qglTexCoord1sv(const GLshort *v)
+static ID_INLINE void qglTexCoord1sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3763,7 +3763,7 @@ static inline void qglTexCoord1sv(const GLshort *v)
}
// void glTexCoord2d (GLdouble s, GLdouble t);
-static inline void qglTexCoord2d(GLdouble s, GLdouble t)
+static ID_INLINE void qglTexCoord2d(GLdouble s, GLdouble t)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3777,7 +3777,7 @@ static inline void qglTexCoord2d(GLdouble s, GLdouble t)
}
// void glTexCoord2dv (const GLdouble *v);
-static inline void qglTexCoord2dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord2dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3791,7 +3791,7 @@ static inline void qglTexCoord2dv(const GLdouble *v)
}
// void glTexCoord2f (GLfloat s, GLfloat t);
-static inline void qglTexCoord2f(GLfloat s, GLfloat t)
+static ID_INLINE void qglTexCoord2f(GLfloat s, GLfloat t)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3805,7 +3805,7 @@ static inline void qglTexCoord2f(GLfloat s, GLfloat t)
}
// void glTexCoord2fv (const GLfloat *v);
-static inline void qglTexCoord2fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord2fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3819,7 +3819,7 @@ static inline void qglTexCoord2fv(const GLfloat *v)
}
// void glTexCoord2i (GLint s, GLint t);
-static inline void qglTexCoord2i(GLint s, GLint t)
+static ID_INLINE void qglTexCoord2i(GLint s, GLint t)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3833,7 +3833,7 @@ static inline void qglTexCoord2i(GLint s, GLint t)
}
// void glTexCoord2iv (const GLint *v);
-static inline void qglTexCoord2iv(const GLint *v)
+static ID_INLINE void qglTexCoord2iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3847,7 +3847,7 @@ static inline void qglTexCoord2iv(const GLint *v)
}
// void glTexCoord2s (GLshort s, GLshort t);
-static inline void qglTexCoord2s(GLshort s, GLshort t)
+static ID_INLINE void qglTexCoord2s(GLshort s, GLshort t)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3861,7 +3861,7 @@ static inline void qglTexCoord2s(GLshort s, GLshort t)
}
// void glTexCoord2sv (const GLshort *v);
-static inline void qglTexCoord2sv(const GLshort *v)
+static ID_INLINE void qglTexCoord2sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3875,7 +3875,7 @@ static inline void qglTexCoord2sv(const GLshort *v)
}
// void glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
-static inline void qglTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
+static ID_INLINE void qglTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3889,7 +3889,7 @@ static inline void qglTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
}
// void glTexCoord3dv (const GLdouble *v);
-static inline void qglTexCoord3dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord3dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3903,7 +3903,7 @@ static inline void qglTexCoord3dv(const GLdouble *v)
}
// void glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
-static inline void qglTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
+static ID_INLINE void qglTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3917,7 +3917,7 @@ static inline void qglTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
}
// void glTexCoord3fv (const GLfloat *v);
-static inline void qglTexCoord3fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord3fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3931,7 +3931,7 @@ static inline void qglTexCoord3fv(const GLfloat *v)
}
// void glTexCoord3i (GLint s, GLint t, GLint r);
-static inline void qglTexCoord3i(GLint s, GLint t, GLint r)
+static ID_INLINE void qglTexCoord3i(GLint s, GLint t, GLint r)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3945,7 +3945,7 @@ static inline void qglTexCoord3i(GLint s, GLint t, GLint r)
}
// void glTexCoord3iv (const GLint *v);
-static inline void qglTexCoord3iv(const GLint *v)
+static ID_INLINE void qglTexCoord3iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3959,7 +3959,7 @@ static inline void qglTexCoord3iv(const GLint *v)
}
// void glTexCoord3s (GLshort s, GLshort t, GLshort r);
-static inline void qglTexCoord3s(GLshort s, GLshort t, GLshort r)
+static ID_INLINE void qglTexCoord3s(GLshort s, GLshort t, GLshort r)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3973,7 +3973,7 @@ static inline void qglTexCoord3s(GLshort s, GLshort t, GLshort r)
}
// void glTexCoord3sv (const GLshort *v);
-static inline void qglTexCoord3sv(const GLshort *v)
+static ID_INLINE void qglTexCoord3sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -3987,7 +3987,7 @@ static inline void qglTexCoord3sv(const GLshort *v)
}
// void glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-static inline void qglTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+static ID_INLINE void qglTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4001,7 +4001,7 @@ static inline void qglTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
}
// void glTexCoord4dv (const GLdouble *v);
-static inline void qglTexCoord4dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord4dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4015,7 +4015,7 @@ static inline void qglTexCoord4dv(const GLdouble *v)
}
// void glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-static inline void qglTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+static ID_INLINE void qglTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4029,7 +4029,7 @@ static inline void qglTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
}
// void glTexCoord4fv (const GLfloat *v);
-static inline void qglTexCoord4fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord4fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4043,7 +4043,7 @@ static inline void qglTexCoord4fv(const GLfloat *v)
}
// void glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
-static inline void qglTexCoord4i(GLint s, GLint t, GLint r, GLint q)
+static ID_INLINE void qglTexCoord4i(GLint s, GLint t, GLint r, GLint q)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4057,7 +4057,7 @@ static inline void qglTexCoord4i(GLint s, GLint t, GLint r, GLint q)
}
// void glTexCoord4iv (const GLint *v);
-static inline void qglTexCoord4iv(const GLint *v)
+static ID_INLINE void qglTexCoord4iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4071,7 +4071,7 @@ static inline void qglTexCoord4iv(const GLint *v)
}
// void glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
-static inline void qglTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
+static ID_INLINE void qglTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4085,7 +4085,7 @@ static inline void qglTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
}
// void glTexCoord4sv (const GLshort *v);
-static inline void qglTexCoord4sv(const GLshort *v)
+static ID_INLINE void qglTexCoord4sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4099,7 +4099,7 @@ static inline void qglTexCoord4sv(const GLshort *v)
}
// void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4113,7 +4113,7 @@ static inline void qglTexCoordPointer(GLint size, GLenum type, GLsizei stride, c
}
// void glTexEnvf (GLenum target, GLenum pname, GLfloat param);
-static inline void qglTexEnvf(GLenum target, GLenum pname, GLfloat param)
+static ID_INLINE void qglTexEnvf(GLenum target, GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4127,7 +4127,7 @@ static inline void qglTexEnvf(GLenum target, GLenum pname, GLfloat param)
}
// void glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
-static inline void qglTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4141,7 +4141,7 @@ static inline void qglTexEnvfv(GLenum target, GLenum pname, const GLfloat *param
}
// void glTexEnvi (GLenum target, GLenum pname, GLint param);
-static inline void qglTexEnvi(GLenum target, GLenum pname, GLint param)
+static ID_INLINE void qglTexEnvi(GLenum target, GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4155,7 +4155,7 @@ static inline void qglTexEnvi(GLenum target, GLenum pname, GLint param)
}
// void glTexEnviv (GLenum target, GLenum pname, const GLint *params);
-static inline void qglTexEnviv(GLenum target, GLenum pname, const GLint *params)
+static ID_INLINE void qglTexEnviv(GLenum target, GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4169,7 +4169,7 @@ static inline void qglTexEnviv(GLenum target, GLenum pname, const GLint *params)
}
// void glTexGend (GLenum coord, GLenum pname, GLdouble param);
-static inline void qglTexGend(GLenum coord, GLenum pname, GLdouble param)
+static ID_INLINE void qglTexGend(GLenum coord, GLenum pname, GLdouble param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4183,7 +4183,7 @@ static inline void qglTexGend(GLenum coord, GLenum pname, GLdouble param)
}
// void glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
-static inline void qglTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
+static ID_INLINE void qglTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4197,7 +4197,7 @@ static inline void qglTexGendv(GLenum coord, GLenum pname, const GLdouble *param
}
// void glTexGenf (GLenum coord, GLenum pname, GLfloat param);
-static inline void qglTexGenf(GLenum coord, GLenum pname, GLfloat param)
+static ID_INLINE void qglTexGenf(GLenum coord, GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4211,7 +4211,7 @@ static inline void qglTexGenf(GLenum coord, GLenum pname, GLfloat param)
}
// void glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
-static inline void qglTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4225,7 +4225,7 @@ static inline void qglTexGenfv(GLenum coord, GLenum pname, const GLfloat *params
}
// void glTexGeni (GLenum coord, GLenum pname, GLint param);
-static inline void qglTexGeni(GLenum coord, GLenum pname, GLint param)
+static ID_INLINE void qglTexGeni(GLenum coord, GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4239,7 +4239,7 @@ static inline void qglTexGeni(GLenum coord, GLenum pname, GLint param)
}
// void glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
-static inline void qglTexGeniv(GLenum coord, GLenum pname, const GLint *params)
+static ID_INLINE void qglTexGeniv(GLenum coord, GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4253,7 +4253,7 @@ static inline void qglTexGeniv(GLenum coord, GLenum pname, const GLint *params)
}
// void glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4267,7 +4267,7 @@ static inline void qglTexImage1D(GLenum target, GLint level, GLint internalforma
}
// void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4281,7 +4281,7 @@ static inline void qglTexImage2D(GLenum target, GLint level, GLint internalforma
}
// void glTexParameterf (GLenum target, GLenum pname, GLfloat param);
-static inline void qglTexParameterf(GLenum target, GLenum pname, GLfloat param)
+static ID_INLINE void qglTexParameterf(GLenum target, GLenum pname, GLfloat param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4295,7 +4295,7 @@ static inline void qglTexParameterf(GLenum target, GLenum pname, GLfloat param)
}
// void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-static inline void qglTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4309,7 +4309,7 @@ static inline void qglTexParameterfv(GLenum target, GLenum pname, const GLfloat
}
// void glTexParameteri (GLenum target, GLenum pname, GLint param);
-static inline void qglTexParameteri(GLenum target, GLenum pname, GLint param)
+static ID_INLINE void qglTexParameteri(GLenum target, GLenum pname, GLint param)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4323,7 +4323,7 @@ static inline void qglTexParameteri(GLenum target, GLenum pname, GLint param)
}
// void glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
-static inline void qglTexParameteriv(GLenum target, GLenum pname, const GLint *params)
+static ID_INLINE void qglTexParameteriv(GLenum target, GLenum pname, const GLint *params)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4337,7 +4337,7 @@ static inline void qglTexParameteriv(GLenum target, GLenum pname, const GLint *p
}
// void glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4351,7 +4351,7 @@ static inline void qglTexSubImage1D(GLenum target, GLint level, GLint xoffset, G
}
// void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4365,7 +4365,7 @@ static inline void qglTexSubImage2D(GLenum target, GLint level, GLint xoffset, G
}
// void glTranslated (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglTranslated(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglTranslated(GLdouble x, GLdouble y, GLdouble z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4379,7 +4379,7 @@ static inline void qglTranslated(GLdouble x, GLdouble y, GLdouble z)
}
// void glTranslatef (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglTranslatef(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglTranslatef(GLfloat x, GLfloat y, GLfloat z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4393,7 +4393,7 @@ static inline void qglTranslatef(GLfloat x, GLfloat y, GLfloat z)
}
// void glVertex2d (GLdouble x, GLdouble y);
-static inline void qglVertex2d(GLdouble x, GLdouble y)
+static ID_INLINE void qglVertex2d(GLdouble x, GLdouble y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4407,7 +4407,7 @@ static inline void qglVertex2d(GLdouble x, GLdouble y)
}
// void glVertex2dv (const GLdouble *v);
-static inline void qglVertex2dv(const GLdouble *v)
+static ID_INLINE void qglVertex2dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4421,7 +4421,7 @@ static inline void qglVertex2dv(const GLdouble *v)
}
// void glVertex2f (GLfloat x, GLfloat y);
-static inline void qglVertex2f(GLfloat x, GLfloat y)
+static ID_INLINE void qglVertex2f(GLfloat x, GLfloat y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4435,7 +4435,7 @@ static inline void qglVertex2f(GLfloat x, GLfloat y)
}
// void glVertex2fv (const GLfloat *v);
-static inline void qglVertex2fv(const GLfloat *v)
+static ID_INLINE void qglVertex2fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4449,7 +4449,7 @@ static inline void qglVertex2fv(const GLfloat *v)
}
// void glVertex2i (GLint x, GLint y);
-static inline void qglVertex2i(GLint x, GLint y)
+static ID_INLINE void qglVertex2i(GLint x, GLint y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4463,7 +4463,7 @@ static inline void qglVertex2i(GLint x, GLint y)
}
// void glVertex2iv (const GLint *v);
-static inline void qglVertex2iv(const GLint *v)
+static ID_INLINE void qglVertex2iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4477,7 +4477,7 @@ static inline void qglVertex2iv(const GLint *v)
}
// void glVertex2s (GLshort x, GLshort y);
-static inline void qglVertex2s(GLshort x, GLshort y)
+static ID_INLINE void qglVertex2s(GLshort x, GLshort y)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4491,7 +4491,7 @@ static inline void qglVertex2s(GLshort x, GLshort y)
}
// void glVertex2sv (const GLshort *v);
-static inline void qglVertex2sv(const GLshort *v)
+static ID_INLINE void qglVertex2sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4505,7 +4505,7 @@ static inline void qglVertex2sv(const GLshort *v)
}
// void glVertex3d (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglVertex3d(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglVertex3d(GLdouble x, GLdouble y, GLdouble z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4519,7 +4519,7 @@ static inline void qglVertex3d(GLdouble x, GLdouble y, GLdouble z)
}
// void glVertex3dv (const GLdouble *v);
-static inline void qglVertex3dv(const GLdouble *v)
+static ID_INLINE void qglVertex3dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4533,7 +4533,7 @@ static inline void qglVertex3dv(const GLdouble *v)
}
// void glVertex3f (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglVertex3f(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglVertex3f(GLfloat x, GLfloat y, GLfloat z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4547,7 +4547,7 @@ static inline void qglVertex3f(GLfloat x, GLfloat y, GLfloat z)
}
// void glVertex3fv (const GLfloat *v);
-static inline void qglVertex3fv(const GLfloat *v)
+static ID_INLINE void qglVertex3fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4561,7 +4561,7 @@ static inline void qglVertex3fv(const GLfloat *v)
}
// void glVertex3i (GLint x, GLint y, GLint z);
-static inline void qglVertex3i(GLint x, GLint y, GLint z)
+static ID_INLINE void qglVertex3i(GLint x, GLint y, GLint z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4575,7 +4575,7 @@ static inline void qglVertex3i(GLint x, GLint y, GLint z)
}
// void glVertex3iv (const GLint *v);
-static inline void qglVertex3iv(const GLint *v)
+static ID_INLINE void qglVertex3iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4589,7 +4589,7 @@ static inline void qglVertex3iv(const GLint *v)
}
// void glVertex3s (GLshort x, GLshort y, GLshort z);
-static inline void qglVertex3s(GLshort x, GLshort y, GLshort z)
+static ID_INLINE void qglVertex3s(GLshort x, GLshort y, GLshort z)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4603,7 +4603,7 @@ static inline void qglVertex3s(GLshort x, GLshort y, GLshort z)
}
// void glVertex3sv (const GLshort *v);
-static inline void qglVertex3sv(const GLshort *v)
+static ID_INLINE void qglVertex3sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4617,7 +4617,7 @@ static inline void qglVertex3sv(const GLshort *v)
}
// void glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-static inline void qglVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+static ID_INLINE void qglVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4631,7 +4631,7 @@ static inline void qglVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
}
// void glVertex4dv (const GLdouble *v);
-static inline void qglVertex4dv(const GLdouble *v)
+static ID_INLINE void qglVertex4dv(const GLdouble *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4645,7 +4645,7 @@ static inline void qglVertex4dv(const GLdouble *v)
}
// void glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-static inline void qglVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+static ID_INLINE void qglVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4659,7 +4659,7 @@ static inline void qglVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
}
// void glVertex4fv (const GLfloat *v);
-static inline void qglVertex4fv(const GLfloat *v)
+static ID_INLINE void qglVertex4fv(const GLfloat *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4673,7 +4673,7 @@ static inline void qglVertex4fv(const GLfloat *v)
}
// void glVertex4i (GLint x, GLint y, GLint z, GLint w);
-static inline void qglVertex4i(GLint x, GLint y, GLint z, GLint w)
+static ID_INLINE void qglVertex4i(GLint x, GLint y, GLint z, GLint w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4687,7 +4687,7 @@ static inline void qglVertex4i(GLint x, GLint y, GLint z, GLint w)
}
// void glVertex4iv (const GLint *v);
-static inline void qglVertex4iv(const GLint *v)
+static ID_INLINE void qglVertex4iv(const GLint *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4701,7 +4701,7 @@ static inline void qglVertex4iv(const GLint *v)
}
// void glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
-static inline void qglVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
+static ID_INLINE void qglVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4715,7 +4715,7 @@ static inline void qglVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
}
// void glVertex4sv (const GLshort *v);
-static inline void qglVertex4sv(const GLshort *v)
+static ID_INLINE void qglVertex4sv(const GLshort *v)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4729,7 +4729,7 @@ static inline void qglVertex4sv(const GLshort *v)
}
// void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
@@ -4743,7 +4743,7 @@ static inline void qglVertexPointer(GLint size, GLenum type, GLsizei stride, con
}
// void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
-static inline void qglViewport(GLint x, GLint y, GLsizei width, GLsizei height)
+static ID_INLINE void qglViewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
#if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
if (QGLLogGLCalls)
diff --git a/code/qcommon/common.c b/code/qcommon/common.c
index b8424a1..2386098 100644
--- a/code/qcommon/common.c
+++ b/code/qcommon/common.c
@@ -2812,9 +2812,8 @@ void Com_Shutdown (void) {
}
-#if !( defined __VECTORC )
#if !( defined __GNUC__ ) // GNU versions in linux_common.c
-#if ((!id386) && (!defined __i386__)) // rcg010212 - for PPC
+#if !id386
void Com_Memcpy (void* dest, const void* src, const size_t count)
{
@@ -3126,7 +3125,6 @@ skipClamp:
}
#endif
#endif
-#endif // bk001208 - memset/memcpy assembly, Q_acos needed (RC4)
//------------------------------------------------------------------------
diff --git a/code/qcommon/md4.c b/code/qcommon/md4.c
index 5f96838..323798b 100644
--- a/code/qcommon/md4.c
+++ b/code/qcommon/md4.c
@@ -38,13 +38,8 @@ void MD4Init (MD4_CTX *);
void MD4Update (MD4_CTX *, const unsigned char *, unsigned int);
void MD4Final (unsigned char [16], MD4_CTX *);
-#ifndef __VECTORC
void Com_Memset (void* dest, const int val, const size_t count);
void Com_Memcpy (void* dest, const void* src, const size_t count);
-#else
-#define Com_Memset memset
-#define Com_Memcpy memcpy
-#endif
/* MD4C.C - RSA Data Security, Inc., MD4 message-digest algorithm */
/* Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.
diff --git a/code/qcommon/q_math.c b/code/qcommon/q_math.c
index da3044e..de90b8b 100644
--- a/code/qcommon/q_math.c
+++ b/code/qcommon/q_math.c
@@ -21,8 +21,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//
// q_math.c -- stateless support routines that are included in each code module
-#include "q_shared.h"
+// Some of the vector functions are static inline in q_shared.h. q3asm
+// doesn't understand static functions though, so we only want them in
+// one file. That's what this is about.
+#ifdef Q3_VM
+#define __Q3_VM_MATH
+#endif
+
+#include "q_shared.h"
vec3_t vec3_origin = {0,0,0};
vec3_t axisDefault[3] = { { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } };
@@ -153,63 +160,6 @@ float Q_crandom( int *seed ) {
return 2.0 * ( Q_random( seed ) - 0.5 );
}
-#ifdef Q3_VM
-
-int VectorCompare( const vec3_t v1, const vec3_t v2 ) {
- if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) {
- return 0;
- }
- return 1;
-}
-
-vec_t VectorLength( const vec3_t v ) {
- return (vec_t)sqrt (v[0]*v[0] + v[1]*v[1] + v[2]*v[2]);
-}
-
-vec_t VectorLengthSquared( const vec3_t v ) {
- return (v[0]*v[0] + v[1]*v[1] + v[2]*v[2]);
-}
-
-vec_t Distance( const vec3_t p1, const vec3_t p2 ) {
- vec3_t v;
-
- VectorSubtract (p2, p1, v);
- return VectorLength( v );
-}
-
-vec_t DistanceSquared( const vec3_t p1, const vec3_t p2 ) {
- vec3_t v;
-
- VectorSubtract (p2, p1, v);
- return v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
-}
-
-// fast vector normalize routine that does not check to make sure
-// that length != 0, nor does it return length, uses rsqrt approximation
-void VectorNormalizeFast( vec3_t v )
-{
- float ilength;
-
- ilength = Q_rsqrt( DotProduct( v, v ) );
-
- v[0] *= ilength;
- v[1] *= ilength;
- v[2] *= ilength;
-}
-
-void VectorInverse( vec3_t v ){
- v[0] = -v[0];
- v[1] = -v[1];
- v[2] = -v[2];
-}
-
-void CrossProduct( const vec3_t v1, const vec3_t v2, vec3_t cross ) {
- cross[0] = v1[1]*v2[2] - v1[2]*v2[1];
- cross[1] = v1[2]*v2[0] - v1[0]*v2[2];
- cross[2] = v1[0]*v2[1] - v1[1]*v2[0];
-}
-#endif
-
//=======================================================
signed char ClampChar( int i ) {
@@ -736,10 +686,7 @@ int BoxOnPlaneSide2 (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
==================
*/
-// if not GNU x86 and configured to use asm
-#if !( (defined __GNUC__) && (defined __i386__) && (!defined C_ONLY))
-
-#if defined Q3_VM || defined C_ONLY || !id386 || defined __VECTORC
+#if !id386
int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
{
@@ -804,6 +751,8 @@ int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
return sides;
}
+#elif __GNUC__
+// use matha.s
#else
#pragma warning( disable: 4035 )
@@ -1039,7 +988,6 @@ Lerror:
#pragma warning( default: 4035 )
#endif
-#endif
/*
=================
diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h
index 802cbcb..cf8a031 100644
--- a/code/qcommon/q_platform.h
+++ b/code/qcommon/q_platform.h
@@ -23,68 +23,82 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef __Q_PLATFORM_H
#define __Q_PLATFORM_H
-// this is the define for determining if we have an asm version of a C function
-#if (defined _M_IX86 || defined __i386__) && !defined __sun && !defined Q3_VM
-#define id386 1
+// this is for determining if we have an asm version of a C function
+#ifdef Q3_VM
+
+#define id386 0
+#define idppc 0
+#define idppc_altivec 0
+
#else
-#define id386 0
+
+#if (defined _M_IX86 || defined __i386__) && \
+ !defined __sun && !defined(C_ONLY)
+#define id386 1
+#else
+#define id386 0
#endif
-#if (defined(powerc) || defined(powerpc) || defined(ppc) || defined(__ppc) || defined(__ppc__)) && !defined(C_ONLY)
-#define idppc 1
+#if (defined(powerc) || defined(powerpc) || defined(ppc) || \
+ defined(__ppc) || defined(__ppc__)) && !defined(C_ONLY)
+#define idppc 1
#if defined(__VEC__)
#define idppc_altivec 1
#else
#define idppc_altivec 0
#endif
#else
-#define idppc 0
+#define idppc 0
#define idppc_altivec 0
#endif
+#endif
+
+#ifndef __ASM_I386__ // don't include the C bits if included from qasm.h
+
// for windows fastcall option
-#define QDECL
+#define QDECL
short ShortSwap (short l);
int LongSwap (int l);
float FloatSwap (const float *f);
-//======================= WIN32 DEFINES =================================
+//================================================================= WIN32 ===
#ifdef _WIN32
#undef QDECL
-#define QDECL __cdecl
+#define QDECL __cdecl
// buildstring will be incorporated into the version string
#ifdef _MSC_VER
#ifdef NDEBUG
#ifdef _M_IX86
-#define CPUSTRING "win-x86"
+#define CPUSTRING "win-x86"
#elif defined _M_ALPHA
-#define CPUSTRING "win-AXP"
+#define CPUSTRING "win-AXP"
#endif
#else
#ifdef _M_IX86
-#define CPUSTRING "win-x86-debug"
+#define CPUSTRING "win-x86-debug"
#elif defined _M_ALPHA
-#define CPUSTRING "win-AXP-debug"
+#define CPUSTRING "win-AXP-debug"
#endif
#endif
#elif defined __MINGW32__
#ifdef NDEBUG
#ifdef __i386__
-#define CPUSTRING "mingw-x86"
+#define CPUSTRING "mingw-x86"
#endif
#else
#ifdef __i386__
-#define CPUSTRING "mingw-x86-debug"
+#define CPUSTRING "mingw-x86-debug"
#endif
#endif
#endif
-#define ID_INLINE __inline
+#define ID_INLINE __inline
static ID_INLINE short BigShort( short l) { return ShortSwap(l); }
#define LittleShort
@@ -93,88 +107,89 @@ static ID_INLINE int BigLong(int l) { return LongSwap(l); }
static ID_INLINE float BigFloat(const float l) { return FloatSwap(&l); }
#define LittleFloat
-#define PATH_SEP '\\'
+#define PATH_SEP '\\'
#endif
-//======================= MAC OS X DEFINES =====================
+//============================================================== MAC OS X ===
#if defined(MACOS_X)
#define __cdecl
#define __declspec(x)
#define stricmp strcasecmp
-#define ID_INLINE inline
+#define ID_INLINE inline
#ifdef __ppc__
-#define CPUSTRING "MacOSX-ppc"
+#define CPUSTRING "MacOSX-ppc"
#elif defined __i386__
-#define CPUSTRING "MacOSX-i386"
+#define CPUSTRING "MacOSX-i386"
#else
-#define CPUSTRING "MacOSX-other"
+#define CPUSTRING "MacOSX-other"
#endif
-#define PATH_SEP '/'
+#define PATH_SEP '/'
#define __rlwimi(out, in, shift, maskBegin, maskEnd) \
asm("rlwimi %0,%1,%2,%3,%4" : "=r" (out) : "r" (in), \
"i" (shift), "i" (maskBegin), "i" (maskEnd))
#define __dcbt(addr, offset) asm("dcbt %0,%1" : : "b" (addr), "r" (offset))
-static inline unsigned int __lwbrx(register void *addr, register int offset) {
- register unsigned int word;
-
- asm("lwbrx %0,%2,%1" : "=r" (word) : "r" (addr), "b" (offset));
- return word;
+static ID_INLINE unsigned int __lwbrx(register void *addr,
+ register int offset) {
+ register unsigned int word;
+
+ asm("lwbrx %0,%2,%1" : "=r" (word) : "r" (addr), "b" (offset));
+ return word;
}
-static inline unsigned short __lhbrx(register void *addr, register int offset) {
- register unsigned short halfword;
-
- asm("lhbrx %0,%2,%1" : "=r" (halfword) : "r" (addr), "b" (offset));
- return halfword;
+static ID_INLINE unsigned short __lhbrx(register void *addr,
+ register int offset) {
+ register unsigned short halfword;
+
+ asm("lhbrx %0,%2,%1" : "=r" (halfword) : "r" (addr), "b" (offset));
+ return halfword;
}
-static inline float __fctiw(register float f) {
- register float fi;
-
- asm("fctiw %0,%1" : "=f" (fi) : "f" (f));
+static ID_INLINE float __fctiw(register float f) {
+ register float fi;
- return fi;
+ asm("fctiw %0,%1" : "=f" (fi) : "f" (f));
+ return fi;
}
#define BigShort
-static inline short LittleShort(short l) { return ShortSwap(l); }
+static ID_INLINE short LittleShort(short l) { return ShortSwap(l); }
#define BigLong
-static inline int LittleLong (int l) { return LongSwap(l); }
+static ID_INLINE int LittleLong(int l) { return LongSwap(l); }
#define BigFloat
-static inline float LittleFloat (const float l) { return FloatSwap(&l); }
+static ID_INLINE float LittleFloat(const float l) { return FloatSwap(&l); }
#endif
-//======================= MAC DEFINES =================================
+//=================================================================== MAC ===
#ifdef __MACOS__
#include <MacTypes.h>
-#define ID_INLINE inline
+#define ID_INLINE inline
-#define CPUSTRING "MacOS-PPC"
+#define CPUSTRING "MacOS-PPC"
-#define PATH_SEP ':'
+#define PATH_SEP ':'
void Sys_PumpEvents( void );
#define BigShort
-static inline short LittleShort(short l) { return ShortSwap(l); }
+static ID_INLINE short LittleShort(short l) { return ShortSwap(l); }
#define BigLong
-static inline int LittleLong (int l) { return LongSwap(l); }
+static ID_INLINE int LittleLong(int l) { return LongSwap(l); }
#define BigFloat
-static inline float LittleFloat (const float l) { return FloatSwap(&l); }
+static ID_INLINE float LittleFloat(const float l) { return FloatSwap(&l); }
#endif
-//======================= LINUX DEFINES =================================
+//================================================================= LINUX ===
// the mac compiler can't handle >32k of locals, so we
// just waste space and make big arrays static...
@@ -183,64 +198,65 @@ static inline float LittleFloat (const float l) { return FloatSwap(&l); }
// bk001205 - from Makefile
#define stricmp strcasecmp
-#define ID_INLINE inline
+#define ID_INLINE inline
#ifdef __i386__
-#define CPUSTRING "linux-i386"
+#define CPUSTRING "linux-i386"
#elif defined __axp__
-#define CPUSTRING "linux-alpha"
+#define CPUSTRING "linux-alpha"
#elif defined __x86_64__
-#define CPUSTRING "linux-x86_64"
+#define CPUSTRING "linux-x86_64"
#elif defined __powerpc64__
-#define CPUSTRING "linux-ppc64"
+#define CPUSTRING "linux-ppc64"
#elif defined __powerpc__
-#define CPUSTRING "linux-ppc"
+#define CPUSTRING "linux-ppc"
#elif defined __s390__
-#define CPUSTRING "linux-s390"
+#define CPUSTRING "linux-s390"
#elif defined __s390x__
-#define CPUSTRING "linux-s390x"
+#define CPUSTRING "linux-s390x"
#elif defined __ia64__
-#define CPUSTRING "linux-ia64"
+#define CPUSTRING "linux-ia64"
#else
-#define CPUSTRING "linux-other"
+#define CPUSTRING "linux-other"
#endif
-#define PATH_SEP '/'
+#define PATH_SEP '/'
#if __FLOAT_WORD_ORDER == __LITTLE_ENDIAN
-inline static short BigShort( short l) { return ShortSwap(l); }
+ID_INLINE static short BigShort( short l) { return ShortSwap(l); }
#define LittleShort
-inline static int BigLong(int l) { return LongSwap(l); }
+ID_INLINE static int BigLong(int l) { return LongSwap(l); }
#define LittleLong
-inline static float BigFloat(const float l) { return FloatSwap(&l); }
+ID_INLINE static float BigFloat(const float l) { return FloatSwap(&l); }
#define LittleFloat
#else
#define BigShort
-inline static short LittleShort(short l) { return ShortSwap(l); }
+ID_INLINE static short LittleShort(short l) { return ShortSwap(l); }
#define BigLong
-inline static int LittleLong (int l) { return LongSwap(l); }
+ID_INLINE static int LittleLong(int l) { return LongSwap(l); }
#define BigFloat
-inline static float LittleFloat (const float l) { return FloatSwap(&l); }
+ID_INLINE static float LittleFloat(const float l) { return FloatSwap(&l); }
#endif
#endif
-//======================= FreeBSD DEFINES =====================
+//=============================================================== FreeBSD ===
+
#ifdef __FreeBSD__ // rb010123
#define stricmp strcasecmp
-#define ID_INLINE inline
+#define ID_INLINE inline
#ifdef __i386__
-#define CPUSTRING "freebsd-i386"
+#define CPUSTRING "freebsd-i386"
#elif defined __axp__
-#define CPUSTRING "freebsd-alpha"
+#define CPUSTRING "freebsd-alpha"
#else
-#define CPUSTRING "freebsd-other"
+#define CPUSTRING "freebsd-other"
#endif
-#define PATH_SEP '/'
+#define PATH_SEP '/'
#if !idppc
static short BigShort( short l) { return ShortSwap(l); }
@@ -253,14 +269,14 @@ static float BigFloat(const float l) { return FloatSwap(&l); }
#define BigShort
static short LittleShort(short l) { return ShortSwap(l); }
#define BigLong
-static int LittleLong (int l) { return LongSwap(l); }
+static int LittleLong(int l) { return LongSwap(l); }
#define BigFloat
-static float LittleFloat (const float l) { return FloatSwap(&l); }
+static float LittleFloat(const float l) { return FloatSwap(&l); }
#endif
#endif
-//======================= SUNOS DEFINES =================================
+//================================================================= SUNOS ===
#ifdef __sun
@@ -270,30 +286,30 @@ static float LittleFloat (const float l) { return FloatSwap(&l); }
// bk001205 - from Makefile
#define stricmp strcasecmp
-#define ID_INLINE inline
+#define ID_INLINE inline
#ifdef __i386__
-#define CPUSTRING "Solaris-i386"
+#define CPUSTRING "Solaris-i386"
#elif defined __sparc
-#define CPUSTRING "Solaris-sparc"
+#define CPUSTRING "Solaris-sparc"
#endif
-#define PATH_SEP '/'
+#define PATH_SEP '/'
#if defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)
#define BigShort
-inline static short LittleShort(short l) { return ShortSwap(l); }
+ID_INLINE static short LittleShort(short l) { return ShortSwap(l); }
#define BigLong
-inline static int LittleLong (int l) { return LongSwap(l); }
+ID_INLINE static int LittleLong(int l) { return LongSwap(l); }
#define BigFloat
-inline static float LittleFloat (const float l) { return FloatSwap(&l); }
+ID_INLINE static float LittleFloat(const float l) { return FloatSwap(&l); }
#elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
-inline static short BigShort( short l) { return ShortSwap(l); }
+ID_INLINE static short BigShort( short l) { return ShortSwap(l); }
#define LittleShort
-inline static int BigLong(int l) { return LongSwap(l); }
+ID_INLINE static int BigLong(int l) { return LongSwap(l); }
#define LittleLong
-inline static float BigFloat(const float l) { return FloatSwap(&l); }
+ID_INLINE static float BigFloat(const float l) { return FloatSwap(&l); }
#define LittleFloat
#else
@@ -302,7 +318,26 @@ inline static float BigFloat(const float l) { return FloatSwap(&l); }
#endif
-#ifndef Q3_VM
+//================================================================== Q3VM ===
+
+#ifdef Q3_VM
+
+#define ID_INLINE
+
+#define CPUSTRING "q3vm"
+
+#define PATH_SEP '/'
+
+#define LittleShort
+#define LittleLong
+#define LittleFloat
+#define BigShort
+#define BigLong
+#define BigFloat
+
+#endif
+
+//===========================================================================
//catch missing defines in above blocks
#ifndef CPUSTRING
diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h
index 698bef0..c981941 100644
--- a/code/qcommon/q_shared.h
+++ b/code/qcommon/q_shared.h
@@ -236,13 +236,8 @@ void Snd_Memset (void* dest, const int val, const size_t count);
#define Snd_Memset Com_Memset
#endif
-#if !( defined __VECTORC )
void Com_Memset (void* dest, const int val, const size_t count);
void Com_Memcpy (void* dest, const void* src, const size_t count);
-#else
-#define Com_Memset memset
-#define Com_Memcpy memcpy
-#endif
#define CIN_system 1
#define CIN_loop 2
@@ -346,7 +341,7 @@ extern vec3_t axisDefault[3];
#if idppc
-static inline float Q_rsqrt( float number ) {
+static ID_INLINE float Q_rsqrt( float number ) {
float x = 0.5f * number;
float y;
#ifdef __GNUC__
@@ -358,7 +353,7 @@ static inline float Q_rsqrt( float number ) {
}
#ifdef __GNUC__
-static inline float Q_fabs(float x) {
+static ID_INLINE float Q_fabs(float x) {
float abs_x;
asm("fabs %0,%1" : "=f" (abs_x) : "f" (x));
@@ -410,7 +405,6 @@ typedef struct {
float v[3];
} vec3struct_t;
#define VectorCopy(a,b) (*(vec3struct_t *)b=*(vec3struct_t *)a)
-#define ID_INLINE static
#endif
#endif
@@ -437,7 +431,7 @@ float RadiusFromBounds( const vec3_t mins, const vec3_t maxs );
void ClearBounds( vec3_t mins, vec3_t maxs );
void AddPointToBounds( const vec3_t v, vec3_t mins, vec3_t maxs );
-#ifndef Q3_VM
+#if !defined( Q3_VM ) || ( defined( Q3_VM ) && defined( __Q3_VM_MATH ) )
static ID_INLINE int VectorCompare( const vec3_t v1, const vec3_t v2 ) {
if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) {
return 0;
diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h
index 775923c..c5a67e7 100644
--- a/code/qcommon/qcommon.h
+++ b/code/qcommon/qcommon.h
@@ -333,7 +333,7 @@ void *VM_ArgPtr( long intValue );
void *VM_ExplicitArgPtr( vm_t *vm, long intValue );
#define VMA(x) VM_ArgPtr(args[x])
-static __inline float _vmf(long x)
+static ID_INLINE float _vmf(long x)
{
union {
long l;
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c
index 86cfeb7..8f3e7a3 100644
--- a/code/qcommon/vm.c
+++ b/code/qcommon/vm.c
@@ -330,7 +330,7 @@ Dlls will call this directly
============
*/
long QDECL VM_DllSyscall( long arg, ... ) {
-#if ((defined __GNUC__) && !(defined __i386__))
+#if !id386
// rcg010206 - see commentary above
long args[16];
int i;
@@ -738,7 +738,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
args[4], args[5], args[6], args[7],
args[8], args[9]);
} else {
-#ifdef __i386__ // i386 calling convention doesn't need conversion
+#if id386 // i386 calling convention doesn't need conversion
#ifndef NO_VM_COMPILED
if ( vm->compiled )
r = VM_CallCompiled( vm, (int*)&callnum );
diff --git a/code/qcommon/vm_interpreted.c b/code/qcommon/vm_interpreted.c
index 4359125..1d180aa 100644
--- a/code/qcommon/vm_interpreted.c
+++ b/code/qcommon/vm_interpreted.c
@@ -114,7 +114,7 @@ static char *opnames[256] = {
#if idppc
#if defined(__GNUC__)
- static inline unsigned int loadWord(void *addr) {
+ static ID_INLINE unsigned int loadWord(void *addr) {
unsigned int word;
asm("lwbrx %0,0,%1" : "=r" (word) : "r" (addr));
@@ -124,7 +124,7 @@ static char *opnames[256] = {
#define loadWord(addr) __lwbrx(addr,0)
#endif
#else
- static inline int loadWord(void *addr) {
+ static ID_INLINE int loadWord(void *addr) {
int word;
memcpy(&word, addr, 4);
return LittleLong(word);
diff --git a/code/renderer/tr_local.h b/code/renderer/tr_local.h
index d1dc328..0ff0157 100644
--- a/code/renderer/tr_local.h
+++ b/code/renderer/tr_local.h
@@ -34,7 +34,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
typedef unsigned int glIndex_t;
// fast float to int conversion
-#if id386 && !( (defined __GNUC__ ) && (defined __i386__ ) ) // rb010123
+#if id386 && !defined(__GNUC__)
long myftol( float f );
#else
#define myftol(x) ((int)(x))
diff --git a/code/renderer/tr_main.c b/code/renderer/tr_main.c
index 294fdb4..6111248 100644
--- a/code/renderer/tr_main.c
+++ b/code/renderer/tr_main.c
@@ -1004,7 +1004,7 @@ DRAWSURF SORTING
R_Radix
===============
*/
-static __inline void R_Radix( int byte, int size, drawSurf_t *source, drawSurf_t *dest )
+static ID_INLINE void R_Radix( int byte, int size, drawSurf_t *source, drawSurf_t *dest )
{
int count[ 256 ] = { 0 };
int index[ 256 ];
diff --git a/code/renderer/tr_shade_calc.c b/code/renderer/tr_shade_calc.c
index 859beba..27bb89a 100644
--- a/code/renderer/tr_shade_calc.c
+++ b/code/renderer/tr_shade_calc.c
@@ -1022,7 +1022,7 @@ void RB_CalcRotateTexCoords( float degsPerSecond, float *st )
-#if id386 && !( (defined __GNUC__ ) && (defined __i386__ ) ) // rb010123
+#if id386 && !defined(__GNUC__)
long myftol( float f ) {
static int tmp;
diff --git a/code/unix/Makefile b/code/unix/Makefile
index f708233..c048426 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -506,7 +506,7 @@ DO_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) -o $@ -c $<
DO_SHLIB_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
DO_SHLIB_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
-DO_DED_CC=$(CC) -DDEDICATED -DC_ONLY $(CFLAGS) -o $@ -c $<
+DO_DED_CC=$(CC) -DDEDICATED $(CFLAGS) -o $@ -c $<
DO_WINDRES=$(WINDRES) -i $< -o $@
#############################################################################
@@ -1111,7 +1111,8 @@ Q3DOBJ = \
$(B)/ded/null_snddma.o
ifeq ($(ARCH),i386)
- Q3DOBJ += $(B)/ded/vm_x86.o $(B)/ded/ftola.o $(B)/ded/snapvectora.o
+ Q3DOBJ += $(B)/ded/vm_x86.o $(B)/ded/ftola.o \
+ $(B)/ded/snapvectora.o $(B)/ded/matha.o
endif
ifeq ($(ARCH),x86_64)
@@ -1196,6 +1197,7 @@ $(B)/ded/vm_interpreted.o : $(CMDIR)/vm_interpreted.c; $(DO_DED_CC)
$(B)/ded/ftola.o : $(UDIR)/ftola.s; $(DO_AS)
$(B)/ded/snapvectora.o : $(UDIR)/snapvectora.s; $(DO_AS)
+$(B)/ded/matha.o : $(UDIR)/matha.s; $(DO_AS)
$(B)/ded/vm_x86.o : $(CMDIR)/vm_x86.c; $(DO_DED_CC)
$(B)/ded/vm_x86_64.o : $(CMDIR)/vm_x86_64.c; $(DO_DED_CC)
diff --git a/code/unix/ftola.s b/code/unix/ftola.s
index 31c6634..e4b4839 100644
--- a/code/unix/ftola.s
+++ b/code/unix/ftola.s
@@ -27,7 +27,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// 23/09/05 Ported to gas by intel2gas, best supporting actor Tim Angus
// <tim@ngus.net>
-#define GLQUAKE 1 // don't include unneeded defs
#include "qasm.h"
#ifdef id386
diff --git a/code/unix/matha.s b/code/unix/matha.s
index 2f7b31c..3bc2220 100644
--- a/code/unix/matha.s
+++ b/code/unix/matha.s
@@ -23,7 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// math.s
// x86 assembly-language math routines.
-#define GLQUAKE 1 // don't include unneeded defs
#include "qasm.h"
diff --git a/code/unix/qasm.h b/code/unix/qasm.h
index 34fe963..25a0ed9 100644
--- a/code/unix/qasm.h
+++ b/code/unix/qasm.h
@@ -22,6 +22,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef __ASM_I386__
#define __ASM_I386__
+#include "../qcommon/q_platform.h"
+
#ifdef __MINGW32__
#undef ELF
#endif
@@ -32,251 +34,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define C(label) _##label
#endif
-
-//#define GLQUAKE 1
-
-#if defined(_WIN32) && !defined(WINDED)
-
-#if defined(_M_IX86)
-#define __i386__ 1
-#endif
-
-#endif
-
-#ifdef __i386__
-#define id386 1
-#else
-#define id386 0
-#endif
-
-// !!! must be kept the same as in d_iface.h !!!
-#define TRANSPARENT_COLOR 255
-
-#ifndef GLQUAKE
- .extern C(d_zistepu)
- .extern C(d_pzbuffer)
- .extern C(d_zistepv)
- .extern C(d_zrowbytes)
- .extern C(d_ziorigin)
- .extern C(r_turb_s)
- .extern C(r_turb_t)
- .extern C(r_turb_pdest)
- .extern C(r_turb_spancount)
- .extern C(r_turb_turb)
- .extern C(r_turb_pbase)
- .extern C(r_turb_sstep)
- .extern C(r_turb_tstep)
- .extern C(r_bmodelactive)
- .extern C(d_sdivzstepu)
- .extern C(d_tdivzstepu)
- .extern C(d_sdivzstepv)
- .extern C(d_tdivzstepv)
- .extern C(d_sdivzorigin)
- .extern C(d_tdivzorigin)
- .extern C(sadjust)
- .extern C(tadjust)
- .extern C(bbextents)
- .extern C(bbextentt)
- .extern C(cacheblock)
- .extern C(d_viewbuffer)
- .extern C(cachewidth)
- .extern C(d_pzbuffer)
- .extern C(d_zrowbytes)
- .extern C(d_zwidth)
- .extern C(d_scantable)
- .extern C(r_lightptr)
- .extern C(r_numvblocks)
- .extern C(prowdestbase)
- .extern C(pbasesource)
- .extern C(r_lightwidth)
- .extern C(lightright)
- .extern C(lightrightstep)
- .extern C(lightdeltastep)
- .extern C(lightdelta)
- .extern C(lightright)
- .extern C(lightdelta)
- .extern C(sourcetstep)
- .extern C(surfrowbytes)
- .extern C(lightrightstep)
- .extern C(lightdeltastep)
- .extern C(r_sourcemax)
- .extern C(r_stepback)
- .extern C(colormap)
- .extern C(blocksize)
- .extern C(sourcesstep)
- .extern C(lightleft)
- .extern C(blockdivshift)
- .extern C(blockdivmask)
- .extern C(lightleftstep)
- .extern C(r_origin)
- .extern C(r_ppn)
- .extern C(r_pup)
- .extern C(r_pright)
- .extern C(ycenter)
- .extern C(xcenter)
- .extern C(d_vrectbottom_particle)
- .extern C(d_vrectright_particle)
- .extern C(d_vrecty)
- .extern C(d_vrectx)
- .extern C(d_pix_shift)
- .extern C(d_pix_min)
- .extern C(d_pix_max)
- .extern C(d_y_aspect_shift)
- .extern C(screenwidth)
- .extern C(r_leftclipped)
- .extern C(r_leftenter)
- .extern C(r_rightclipped)
- .extern C(r_rightenter)
- .extern C(modelorg)
- .extern C(xscale)
- .extern C(r_refdef)
- .extern C(yscale)
- .extern C(r_leftexit)
- .extern C(r_rightexit)
- .extern C(r_lastvertvalid)
- .extern C(cacheoffset)
- .extern C(newedges)
- .extern C(removeedges)
- .extern C(r_pedge)
- .extern C(r_framecount)
- .extern C(r_u1)
- .extern C(r_emitted)
- .extern C(edge_p)
- .extern C(surface_p)
- .extern C(surfaces)
- .extern C(r_lzi1)
- .extern C(r_v1)
- .extern C(r_ceilv1)
- .extern C(r_nearzi)
- .extern C(r_nearzionly)
- .extern C(edge_aftertail)
- .extern C(edge_tail)
- .extern C(current_iv)
- .extern C(edge_head_u_shift20)
- .extern C(span_p)
- .extern C(edge_head)
- .extern C(fv)
- .extern C(edge_tail_u_shift20)
- .extern C(r_apverts)
- .extern C(r_anumverts)
- .extern C(aliastransform)
- .extern C(r_avertexnormals)
- .extern C(r_plightvec)
- .extern C(r_ambientlight)
- .extern C(r_shadelight)
- .extern C(aliasxcenter)
- .extern C(aliasycenter)
- .extern C(a_sstepxfrac)
- .extern C(r_affinetridesc)
- .extern C(acolormap)
- .extern C(d_pcolormap)
- .extern C(r_affinetridesc)
- .extern C(d_sfrac)
- .extern C(d_ptex)
- .extern C(d_pedgespanpackage)
- .extern C(d_tfrac)
- .extern C(d_light)
- .extern C(d_zi)
- .extern C(d_pdest)
- .extern C(d_pz)
- .extern C(d_aspancount)
- .extern C(erroradjustup)
- .extern C(errorterm)
- .extern C(d_xdenom)
- .extern C(r_p0)
- .extern C(r_p1)
- .extern C(r_p2)
- .extern C(a_tstepxfrac)
- .extern C(r_sstepx)
- .extern C(r_tstepx)
- .extern C(a_ststepxwhole)
- .extern C(zspantable)
- .extern C(skintable)
- .extern C(r_zistepx)
- .extern C(erroradjustdown)
- .extern C(d_countextrastep)
- .extern C(ubasestep)
- .extern C(a_ststepxwhole)
- .extern C(a_tstepxfrac)
- .extern C(r_lstepx)
- .extern C(a_spans)
- .extern C(erroradjustdown)
- .extern C(d_pdestextrastep)
- .extern C(d_pzextrastep)
- .extern C(d_sfracextrastep)
- .extern C(d_ptexextrastep)
- .extern C(d_countextrastep)
- .extern C(d_tfracextrastep)
- .extern C(d_lightextrastep)
- .extern C(d_ziextrastep)
- .extern C(d_pdestbasestep)
- .extern C(d_pzbasestep)
- .extern C(d_sfracbasestep)
- .extern C(d_ptexbasestep)
- .extern C(ubasestep)
- .extern C(d_tfracbasestep)
- .extern C(d_lightbasestep)
- .extern C(d_zibasestep)
- .extern C(zspantable)
- .extern C(r_lstepy)
- .extern C(r_sstepy)
- .extern C(r_tstepy)
- .extern C(r_zistepy)
- .extern C(D_PolysetSetEdgeTable)
- .extern C(D_RasterizeAliasPolySmooth)
-
- .extern float_point5
- .extern Float2ToThe31nd
- .extern izistep
- .extern izi
- .extern FloatMinus2ToThe31nd
- .extern float_1
- .extern float_particle_z_clip
- .extern float_minus_1
- .extern float_0
- .extern fp_16
- .extern fp_64k
- .extern fp_1m
- .extern fp_1m_minus_1
- .extern fp_8
- .extern entryvec_table
- .extern advancetable
- .extern sstep
- .extern tstep
- .extern pspantemp
- .extern counttemp
- .extern jumptemp
- .extern reciprocal_table
- .extern DP_Count
- .extern DP_u
- .extern DP_v
- .extern DP_32768
- .extern DP_Color
- .extern DP_Pix
- .extern DP_EntryTable
- .extern pbase
- .extern s
- .extern t
- .extern sfracf
- .extern tfracf
- .extern snext
- .extern tnext
- .extern spancountminus1
- .extern zi16stepu
- .extern sdivz16stepu
- .extern tdivz16stepu
- .extern zi8stepu
- .extern sdivz8stepu
- .extern tdivz8stepu
- .extern reciprocal_table_16
- .extern entryvec_table_16
- .extern ceil_cw
- .extern single_cw
- .extern fp_64kx64k
- .extern pz
- .extern spr8entryvec_table
-#endif
-
.extern C(snd_scaletable)
.extern C(paintbuffer)
.extern C(snd_linear_count)
@@ -360,12 +117,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// times !!!
//
-// !!! if this is changed, it must be changed in r_local.h too !!!
-#define NEAR_CLIP 0.01
-
-// !!! if this is changed, it must be changed in r_local.h too !!!
-#define CYCLE 128
-
// espan_t structure
// !!! if this is changed, it must be changed in r_shared.h too !!!
#define espan_t_u 0
diff --git a/code/unix/snapvectora.s b/code/unix/snapvectora.s
index 63ea3e8..73f2584 100644
--- a/code/unix/snapvectora.s
+++ b/code/unix/snapvectora.s
@@ -35,7 +35,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// 23/09/05 Ported to gas by intel2gas, best supporting actor Tim Angus
// <tim@ngus.net>
-#define GLQUAKE 1 // don't include unneeded defs
#include "qasm.h"
#ifdef id386
diff --git a/code/unix/unix_shared.c b/code/unix/unix_shared.c
index be39955..c037813 100644
--- a/code/unix/unix_shared.c
+++ b/code/unix/unix_shared.c
@@ -139,7 +139,7 @@ int Sys_XTimeToSysTime (unsigned long xtime)
#endif
//#if 0 // bk001215 - see snapvector.nasm for replacement
-#if !(defined __i386__) // rcg010206 - using this for PPC builds...
+#if !id386 // rcg010206 - using this for PPC builds...
long fastftol( float f ) { // bk001213 - from win32/win_shared.c
//static int tmp;
// __asm fld f
diff --git a/code/win32/win_shared.c b/code/win32/win_shared.c
index be41b0c..fe75e3a 100644
--- a/code/win32/win_shared.c
+++ b/code/win32/win_shared.c
@@ -105,7 +105,6 @@ static void CPUID( int func, unsigned regs[4] )
{
unsigned regEAX, regEBX, regECX, regEDX;
-#ifndef __VECTORC
__asm mov eax, func
__asm __emit 00fh
__asm __emit 0a2h
@@ -118,12 +117,6 @@ static void CPUID( int func, unsigned regs[4] )
regs[1] = regEBX;
regs[2] = regECX;
regs[3] = regEDX;
-#else
- regs[0] = 0;
- regs[1] = 0;
- regs[2] = 0;
- regs[3] = 0;
-#endif
}
static int IsPentium( void )