home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
x
/
volume10
/
xtrek
/
part02
/
bitmaps.c
next >
Wrap
C/C++ Source or Header
|
1990-10-23
|
5KB
|
131 lines
/*
static char sccsid[] = "@(#)bitmaps.c 3.1";
Copyright (c) 1986 Chris Guthrie
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
documentation. No representations are made about the
suitability of this software for any purpose. It is
provided "as is" without express or implied warranty.
*/
#include <X11/X.h>
/**** These are the ships ****/
#define VIEWS 16
#define ship_width 16
#define ship_height 16
/**** These are the explosions ****/
#define ex_width 64
#define ex_height 64
/**** These are the misc things ****/
#define cloud_width 7
#define cloud_height 7
#define etorp_width 3
#define etorp_height 3
#define mtorp_width 3
#define mtorp_height 3
#define crossw 15
#define crossh 15
#define crossmask_width 15
#define crossmask_height 15
#define planet_width 30
#define planet_height 30
#define mplanet_width 16
#define mplanet_height 16
#define shield_width 20
#define shield_height 20
#define icon_width 64
#define icon_height 64
char icon_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xf8, 0x83, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
0xf0, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
0xe0, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
0xc0, 0x83, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0xc0, 0x83, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x1e, 0xf0, 0xbf, 0x7f, 0xe0, 0x1b, 0x0e,
0x00, 0x3c, 0xf8, 0x9f, 0xff, 0xf8, 0x19, 0x07,
0x00, 0x3c, 0x80, 0x81, 0xe1, 0x1c, 0x98, 0x03,
0x00, 0x7e, 0x80, 0x81, 0x71, 0x0e, 0xd8, 0x01,
0x00, 0x7b, 0x80, 0x81, 0x39, 0x06, 0xf8, 0x00,
0x00, 0xf3, 0x80, 0x81, 0x1d, 0xfe, 0xf9, 0x03,
0x80, 0xf1, 0x80, 0x81, 0x7f, 0xfe, 0xf8, 0x07,
0xc0, 0xe0, 0x81, 0x81, 0xe1, 0x06, 0x18, 0x0e,
0xc0, 0xe0, 0x81, 0x81, 0xc1, 0x0e, 0x18, 0x0c,
0x60, 0xe0, 0x83, 0x81, 0xc1, 0x1c, 0x1a, 0x0c,
0x70, 0xc0, 0x87, 0x81, 0xc1, 0xf8, 0x1b, 0x7c,
0xfc, 0xe0, 0xdf, 0xc3, 0xe3, 0xe0, 0x3d, 0x3e,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x20, 0xe0, 0xff, 0x0f, 0x30, 0x08, 0x06,
0x00, 0xfc, 0xe1, 0xff, 0x07, 0x30, 0x7f, 0x06,
0xe0, 0xff, 0x1f, 0x01, 0x00, 0xf8, 0xff, 0x0f,
0x00, 0xfe, 0x0f, 0x01, 0x00, 0x80, 0xff, 0x00,
0x00, 0x70, 0x1c, 0x01, 0x00, 0x00, 0x5d, 0x00,
0x00, 0x00, 0xf0, 0xff, 0x01, 0x00, 0x3e, 0x00,
0x00, 0x00, 0xe0, 0xff, 0x00, 0x00, 0x36, 0x00,
0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0x3e, 0x00,
0x00, 0x00, 0xe0, 0x1f, 0x00, 0x00, 0x1c, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7f,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40,
0x00, 0xf8, 0x00, 0x00, 0x00, 0xa1, 0x00, 0x40,
0x00, 0xfe, 0xe3, 0xff, 0x0f, 0xa1, 0x6e, 0x40,
0x00, 0xff, 0xe7, 0xff, 0x0f, 0xa1, 0xa2, 0x40,
0x80, 0xff, 0x0f, 0x01, 0x00, 0xa1, 0x66, 0x40,
0x80, 0x8f, 0x0f, 0x01, 0x00, 0xa1, 0xa2, 0x40,
0xc0, 0x77, 0x1f, 0x01, 0x00, 0x41, 0xae, 0x42,
0xc0, 0xfb, 0xfe, 0xff, 0x01, 0x01, 0x00, 0x40,
0xc0, 0xdb, 0xfe, 0xff, 0x01, 0x01, 0x00, 0x40,
0xc0, 0xfb, 0xfe, 0xff, 0x01, 0x01, 0x00, 0x40,
0xc0, 0x77, 0x1f, 0x01, 0x00, 0x81, 0xc0, 0x43,
0x80, 0x8f, 0x0f, 0x01, 0x00, 0xc1, 0x20, 0x43,
0x80, 0xff, 0x0f, 0x01, 0x00, 0xa1, 0xa0, 0x42,
0x00, 0xff, 0xe7, 0xff, 0x0f, 0x91, 0xa0, 0x42,
0x00, 0xfe, 0xe3, 0xff, 0x0f, 0xf1, 0xa1, 0x42,
0x00, 0xf8, 0x00, 0x00, 0x00, 0x81, 0x60, 0x42,
0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0xec, 0x41,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40,
0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7f,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define stipple_width 16
#define stipple_height 16
char stipple_bits[] = {
0xfe, 0xfe, 0xfd, 0xfd, 0xfb, 0xfb, 0xf7, 0xf7,
0xef, 0xef, 0xdf, 0xdf, 0xbf, 0xbf, 0x7f, 0x7f,
0xfe, 0xfe, 0xfd, 0xfd, 0xfb, 0xfb, 0xf7, 0xf7,
0xef, 0xef, 0xdf, 0xdf, 0xbf, 0xbf, 0x7f, 0x7f};