*.zip
data
*.a
+\r
+/SDL.dll\r
<ClCompile Include="src\demo.c" />\r
<ClCompile Include="src\fract.c" />\r
<ClCompile Include="src\gfxutil.c" />\r
+ <ClCompile Include="src\mike.c" />\r
<ClCompile Include="src\screen.c" />\r
<ClCompile Include="src\sdl\main.c" />\r
<ClCompile Include="src\tunnel.c" />\r
<ClCompile Include="src\gfxutil.c">\r
<Filter>src</Filter>\r
</ClCompile>\r
+ <ClCompile Include="src\mike.c">\r
+ <Filter>src</Filter>\r
+ </ClCompile>\r
</ItemGroup>\r
<ItemGroup>\r
<ClInclude Include="src\demo.h">\r
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <assert.h>
+#include "imago2.h"
+#include "demo.h"
+#include "screen.h"
+
+static int init(void);
+static void destroy(void);
+static void start(long trans_time);
+static void stop(long trans_time);
+static void draw(void);
+
+static struct screen scr = {
+ "mike",
+ init,
+ destroy,
+ start,
+ stop,
+ draw
+};
+
+struct screen *mike_screen(void)
+{
+ return &scr;
+}
+
+
+static int init(void)
+{
+ return 0;
+}
+
+static void destroy(void)
+{
+}
+
+static void start(long trans_time)
+{
+ if(trans_time) {
+
+ }
+}
+
+static void stop(long trans_time)
+{
+ if(trans_time) {
+
+ }
+}
+
+static void draw(void)
+{
+ unsigned short *pixels = fb_pixels;
+
+ int j, i;
+ for (j = 0; j < fb_height; j++) {
+ for (i = 0; i < fb_width; i++) {
+ *pixels++ = 0xF800;
+ }
+ }
+}
+
+
struct screen *tunnel_screen(void);
struct screen *fract_screen(void);
+struct screen *mike_screen(void);
#define NUM_SCR 32
static struct screen *scr[NUM_SCR];
if(!(scr[idx++] = fract_screen())) {
return -1;
}
+ if (!(scr[idx++] = mike_screen())) {
+ return -1;
+ }
num_screens = idx;
assert(num_screens <= NUM_SCR);