#ifndef __GLCODE__
#define __GLCODE__
-#include <GL/glu.h>
-#include <GL/gl.h>
-#include <GL/glx.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifndef HAVE_JWXYZ
+# include <GL/gl.h>
+# include <GL/glu.h>
+# include <GL/glx.h>
+#endif
+
+#ifdef HAVE_JWZGLES
+# include "jwzgles.h"
+#endif /* HAVE_JWZGLES */
+
#include <stdlib.h>
#include <math.h>
typedef union {
float f[4];
+#if 0
#if __VEC__
vector float v;
#endif
+#endif /* 0 */
} floatToVector;
typedef union {
unsigned int i[4];
+#if 0
#if __VEC__
vector unsigned int v;
#endif
+#endif /* 0 */
} intToVector;
typedef struct SmokeParticleV
void InitSmoke(SmokeV *s);
void UpdateSmoke_ScalarBase(global_info_t *global, flurry_info_t *flurry, SmokeV *s);
+#if 0
#ifdef __ppc__
void UpdateSmoke_ScalarFrsqrte(global_info_t *global, flurry_info_t *flurry, SmokeV *s);
#endif
void UpdateSmoke_VectorBase(global_info_t *global, flurry_info_t *flurry, SmokeV *s);
void UpdateSmoke_VectorUnrolled(global_info_t *global, flurry_info_t *flurry, SmokeV *s);
#endif
+#endif /* 0 */
void DrawSmoke_Scalar(global_info_t *global, flurry_info_t *flurry, SmokeV *s, float);
void DrawSmoke_Vector(global_info_t *global, flurry_info_t *flurry, SmokeV *s, float);
/* int fieldIncoherence = 0; */
/* int ifieldSpeed = 120; */
-static /*inline*/ float FastDistance2D(float x, float y)
+static inline float FastDistance2D(float x, float y)
{
/* this function computes the distance from 0,0 to x,y with ~3.5% error */
float mn;
return(x+y-(mn*0.5f)-(mn*0.25f)+(mn*0.0625f));
}
+#if 0
#ifdef __VEC__
static vector float FastDistance2DV(vector float x, vector float y) {
}
#endif
+#endif /* 0 */
#define RandFlt(min, max) ((min) + frand((max) - (min)))
#define OPT_MODE_SCALAR_BASE 0x0
+#if 0
#ifdef __ppc__
#define OPT_MODE_SCALAR_FRSQRTE 0x1
#endif
#define OPT_MODE_VECTOR_SIMPLE 0x2
#define OPT_MODE_VECTOR_UNROLLED 0x3
#endif
+#endif /* 0 */
typedef enum _ColorModes
{
float sys_glWidth;
float sys_glHeight;
+ double gTimeCounter;
+ int first;
+ double oldFrameTime;
+
flurry_info_t *flurry;
};
#define kNumSpectrumEntries 512
-void OTSetup(void);
-double TimeInSecondsSinceStart(void);
+double TimeInSecondsSinceStart(const global_info_t *global);
#endif /* Include/Define */