#include <stdio.h>
#include <stdlib.h>
-#ifdef HAVE_COCOA
-# include <OpenGL/gl.h>
-#else
+#ifndef HAVE_COCOA
# include <GL/gl.h>
#endif
+#ifdef HAVE_JWZGLES
+# include "jwzgles.h"
+#endif /* HAVE_JWZGLES */
+
#include "yarandom.h"
#include "stonerview.h"
void
-init_move(stonerview_state *st)
+stonerview_init_move(stonerview_state *st)
{
/*st->theta = new_osc_linear(
new_osc_wrap(0, 36000, 25),
new_osc_buffer(st, new_osc_wrap(st, 0, 3600, 17)),
new_osc_buffer(st, new_osc_wrap(st, 0, 3600, 7)));
- move_increment(st);
-}
-
-void final_move(stonerview_state *st)
-{
+ stonerview_move_increment(st);
}
/* Set up the list of polygon data for rendering. */
-void move_increment(stonerview_state *st)
+void
+stonerview_move_increment(stonerview_state *st)
{
int ix, val;
/* GLfloat fval; */
GLfloat ptrad, pttheta;
for (ix=0; ix<st->num_els; ix++) {
- elem_t *el = &st->elist[ix];
+ stonerview_elem_t *el = &st->elist[ix];
/* Grab r and theta... */
val = osc_get(st, st->theta, ix);