static int init(void);
static void destroy(void);
static void start(long trans_time);
-static void stop(long trans_time);
+/*static void stop(long trans_time);*/
static void draw(void);
static void convert32To16(unsigned int *src32, unsigned short *dst16, unsigned int pixelCount);
init,
destroy,
start,
- stop,
+ 0,
draw
};
lastFrameTime = time_msec;
}
+/* XXX add the stop function when you have an out-transition, otherwise
+ * it just delays the change to the next effect.
+ */
+/*
static void stop(long trans_time)
{
}
+*/
static void draw(void)
-{
+{
int scroll = MIN_SCROLL + (MAX_SCROLL - MIN_SCROLL) * mouse_x / fb_width;
unsigned short *dst = backBuffer + PIXEL_PADDING;
unsigned short *src = background + scroll;
src += backgroundW;
dst += BB_SIZE;
}
-
+
/* Create scroll opffsets for all scanlines of the normalmap */
updateScrollTables(lastFrameDuration);
static void updateScrollTables(float dt) {
int i = 0;
-
+
nearScrollAmount += dt * NEAR_SCROLL_SPEED;
nearScrollAmount = (float) fmod(nearScrollAmount, 512.0f);
for (scanline = 0; scanline < h; scanline++) {
for (i = 0; i < w; i++) {
if (*pixels++) {
-
+
}
}
}