16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) timer.$(OBJ)
#
#3812intf.$(OBJ)
-GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) planar16.$(OBJ)
+GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ)
TESTEXEC = exmmtest.exe test.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe planrpcx.exe
# tsthimem.exe
bakapee.$(OBJ): $(SRCLIB)bakapee.h $(SRCLIB)bakapee.c
wcl $(FLAGS) -c $(SRCLIB)bakapee.c
-16render.$(OBJ): $(MODEXLIB)16render.h $(MODEXLIB)16render.c $(MODEXLIB)planar16.h
+16render.$(OBJ): $(MODEXLIB)16render.h $(MODEXLIB)16render.c
wcl $(FLAGS) -c $(MODEXLIB)16render.c
-planar16.$(OBJ): $(MODEXLIB)planar16.h $(MODEXLIB)planar16.c
- wcl $(FLAGS) -c $(MODEXLIB)planar16.c
+16planar.$(OBJ): $(MODEXLIB)16planar.h $(MODEXLIB)16planar.c
+ wcl $(FLAGS) -c $(MODEXLIB)16planar.c
bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c
wcl $(FLAGS) -c $(SRCLIB)bitmap.c
ENGI_EXIT,\r
ENGI_QUIT,\r
ENGI_RUN,\r
- ENGI_INPUT\r
+ ENGI_INPUT,\r
+ ENGI_PAUSE\r
} engi_stat_t;\r
\r
#endif /*__16_H_*/\r
#include <stdlib.h>\r
#include <malloc.h>\r
#include "src/lib/bitmap.h"\r
-#include "src/lib/modex16.h"\r
\r
#ifndef PCXHEADER_H\r
#define PCXHEADER_H\r
} head;\r
#endif /*PCXHEADER_H*/\r
\r
-\r
static void loadPcxStage1(FILE *file, bitmap_t *result) {\r
long bufSize;\r
int index;\r
\r
#ifndef BITMAP_H\r
#define BITMAP_H\r
-#include "src/lib/types.h"\r
-#include "src/lib/16_head.h"\r
\r
-#define PALSIZE 768\r
-\r
-typedef struct {\r
- byte huge *data;\r
- word width;\r
- word height;\r
- byte *palette;\r
- word offset;\r
-// byte far *font;\r
-} bitmap_t;\r
-\r
-typedef struct {\r
- byte **data;\r
- word ntiles; /* the number of tiles */\r
- word twidth; /* width of the tiles */\r
- word theight; /* height of the tiles */\r
- byte *palette; /* palette for the tile set */\r
-} tileset_t;\r
+#include "src/lib/modex16.h"\r
\r
bitmap_t bitmapLoadPcx(char *filename);\r
tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);\r
#include "src/lib/16_head.h"
#include "src/lib/bitmap.h"
#include "src/lib/planar.h"
-#include "src/lib/modex16/planar16.h"
+#include "src/lib/modex16/16planar.h"
#include "src/lib/16text.h"
#include "src/lib/modex16/16render.h"
#include "src/lib/modex16/320x240.h"
#define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2))
#define PLANE(x) (1<< (x&3))
#define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02)
+#define PALSIZE 768
typedef union
{
#include <stdio.h>\r
#include <stdlib.h>\r
#include <malloc.h>\r
-#include "src/lib/modex16/planar16.h"\r
+#include "src/lib/modex16/16planar.h"\r
\r
#ifndef PCXHEADER_H\r
#define PCXHEADER_H\r
#ifndef PLANW_H\r
#define PLANW_H\r
\r
-#include "src/lib/planar.h"\r
#include "src/lib/modex16.h"\r
\r
planar_buf_t planarLoadPcx(char *filename);\r
tileset_t planarLoadPcxTiles(char *filename, word twidth, word theight);\r
+\r
#endif\r
\r
#include "src/lib/planar.h"\r
\r
-extern byte *modexNewPal();\r
-\r
/* creates a planar buffer from the bitmap data.\r
The planar buffer is dynamically allocated, and should\r
be destroyed with the planar_buf_free function when no longer\r
#ifndef PLANAR_H
#define PLANAR_H
-#include "src/lib/types.h"
-#include "src/lib/16_head.h"
-#include "src/lib/bitmap.h"
-//#include "src/lib/modex16.h"
+#include "src/lib/modex16.h"
-typedef struct {
- byte huge *plane[4]; /* 4 planes of image data */
- word width; /* width of the image (spread across 4 planes) */
- word height; /* height of the image (spread across 4 planes) */
- word pwidth; /* the number of bytes in each plane */
- byte *palette;
-} planar_buf_t;
+extern byte *modexNewPal();
/* creates a planar buffer from the bitmap data.
The planar buffer is dynamically allocated, and should
/*\r
* typedefs of the game variables!\r
*/\r
+typedef struct {\r
+ byte huge *data;\r
+ word width;\r
+ word height;\r
+ byte *palette;\r
+ word offset;\r
+} bitmap_t;\r
+\r
+typedef struct {\r
+ byte **data;\r
+ word ntiles; /* the number of tiles */\r
+ word twidth; /* width of the tiles */\r
+ word theight; /* height of the tiles */\r
+ byte *palette; /* palette for the tile set */\r
+} tileset_t;\r
+\r
+typedef struct {\r
+ byte huge *plane[4]; /* 4 planes of image data */\r
+ word width; /* width of the image (spread across 4 planes) */\r
+ word height; /* height of the image (spread across 4 planes) */\r
+ word pwidth; /* the number of bytes in each plane */\r
+ byte *palette;\r
+} planar_buf_t;\r
+\r
typedef struct {\r
word id; /* the Identification number of the page~ For layering~ */\r
byte far* data; /* the data for the page */\r
#include <dos.h>\r
#include <string.h>\r
#include "src/lib/modex16.h"\r
-#include "src/lib/modex16/planar16.h"\r
\r
global_game_variables_t gvar;\r
planar_buf_t huge p, ptmp;\r