#include #include #include "graphic_render.h" /* void g(int graphicID, int size); */ static void html_header(const char* title){ printf("Content-Type: text/html\r\n\r\n"); printf(""); printf("%s", title?title:"Good Game Systems"); printf("
"); } static void html_footer(void){ printf(""); printf("
"); } /* blue frame helpers */ static void frame_open(void){ printf(""); } static void row_open(void){ printf(""); } static void frame_close(void){ printf("
"); } static void row_close(void){ printf("
"); } int main(void){ html_header("Good Game Systems"); frame_open(); /* Row 1: GGS logo (graphic 503) */ row_open(); g(503, 20); row_close(); /* Row 2: Welcome */ row_open(); printf("Welcome to Good Game Systems"); row_close(); /* Row 3: Downloads table (3 rows) */ row_open(); printf(""); /* 1) Windows */ printf(""); /* 2) Mac */ printf(""); /* 3) Linux/other */ printf(""); printf("
"); g(548,3); printf(""); printf("
" "" "
"); printf("
"); g(549,3); printf(""); printf("
" "" "
"); printf("
"); g(234,3); printf(""); printf("
" "" "
"); printf("
"); row_close(); frame_close(); html_footer(); return 0; }