home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / NACKEXP.ZIP / EXAMPLE1.H < prev    next >
Text File  |  1993-08-15  |  1KB  |  52 lines

  1. /* Header file for ACK-3D example */
  2.  
  3. #define VIEW_X        84        /* Size of the 3D viewport */
  4. #define VIEW_X1        236
  5. #define VIEW_Y        7
  6. #define VIEW_Y1        89
  7.  
  8. #define CEILING_COLOR    23
  9. #define FLOOR_COLOR    27
  10.  
  11.  
  12. #define PLAYER_X    390        /* Initial X coordinate */
  13. #define PLAYER_Y    260        /* Initial Y coordinate */
  14. #define PLAYER_ANGLE    480        /* Initial POV angle    */
  15.  
  16. #define DOORSPEED    4
  17.  
  18. typedef struct {
  19.     int        mdx;
  20.     int        mdy;
  21.     int        mButtons;
  22. } MOUSE;
  23.  
  24. typedef struct {
  25.     int    Number;
  26.     int    Type;
  27.     char    *Name;
  28. } BMTABLE;
  29.  
  30. typedef struct
  31.     {
  32.     unsigned char start;
  33.     unsigned char length;
  34.     }ColorRange;
  35.  
  36.  
  37. /* Prototypes */
  38. int AppInitialize(void);
  39. int AppSetupEngine(void);
  40. int AppSetupOverlay(void);
  41. int AppLoadBitmaps(void);
  42. int AppSetupObjects(void);
  43. int AppSetGraphics(void);
  44. void AppSetupPalRanges(void);
  45. void AppShow3D(void);
  46. void CheckMouse(MOUSE *m);
  47. int mouse_installed(void);
  48. void mouse_hide_cursor(void);
  49. void mouse_set_cursor(int row,int col);
  50. void mouse_read_cursor(int *button,int *row,int *col);
  51.  
  52.