home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / cube3d / cube3D.exe / cube3D / src / palm.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-26  |  1.6 KB  |  55 lines

  1. /*
  2.  * @(#)palm.h
  3.  *
  4.  * Copyright 1999-2000, Aaron Ardiri (mailto:aaron@ardiri.com)
  5.  * All rights reserved.
  6.  *
  7.  * The  source code  outlines a number of basic Palm Computing Programming
  8.  * principles and you  should be able to take the core structure and write 
  9.  * a large complex program. It is distributed WITHOUT ANY WARRANTY; use it
  10.  * "AS IS" and at your own risk.
  11.  *
  12.  * The code presented is Copyright 1999-2000 by Aaron Ardiri. It should be
  13.  * used for  educational purposes only.  You  shall not modify  the Cube3D 
  14.  * source code in any way and  re-distribute it as your  own,  however you
  15.  * are free to use  the code as  a guide for  developing  programs  on the 
  16.  * Palm Computing Platform.
  17.  */
  18.  
  19. #ifndef _PALM_H
  20. #define _PALM_H
  21.  
  22. // system includes
  23. #include <PalmOS.h>
  24.  
  25. // application constants and structures
  26. #define appCreator 'CUBE'
  27. #define ftrGlobals         1000
  28. #define ftrGraphicsGlobals 1001
  29. #define ftrDeviceGlobals   1002
  30. #define ftrHelpGlobals     1003
  31. #define ftrCubeGlobals     1004
  32.  
  33. #define CUBE_FPS      16  // this is "adequate" for animations :)
  34. #define SCREEN_WIDTH  160
  35. #define SCREEN_HEIGHT 128 // 160x128 display area
  36.  
  37. // local includes
  38. #include "resource.h"
  39. #include "fixed.h"
  40. #include "device.h"
  41. #include "help.h"
  42. #include "graphics.h"
  43. #include "gccfix.h"
  44. #include "cube3D.h"
  45.  
  46. // functions
  47. extern UInt32  PilotMain(UInt16, MemPtr, UInt16);
  48. extern void    InitApplication(void);
  49. extern Boolean ApplicationHandleEvent(EventType *);
  50. extern void    ApplicationDisplayDialog(UInt16);
  51. extern void    EventLoop(void);
  52. extern void    EndApplication(void);
  53.  
  54. #endif 
  55.