home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Jeux / demos / crystalPPC.lha / amiga.h < prev    next >
C/C++ Source or Header  |  1998-02-09  |  642b  |  39 lines

  1. #ifndef AMIGA_H
  2. #define AMIGA_H
  3.  
  4. #define dprintf printf
  5.  
  6. #define PixelAt(x,y) (graphicsData+FRAME_WIDTH*(y)+(x))
  7.  
  8. class Graphics
  9. {
  10. public:
  11.   Graphics(int argc, char *argv[]);
  12.   ~Graphics(void);
  13.  
  14.   int Open(void);
  15.   void Close(void);
  16.  
  17.   void Print(void);
  18.   void Clear(int color);
  19.  
  20.   void SetPixel (int x, int y, int color);
  21.   void SetLine (int x1, int y1, int x2, int y2, int color);
  22.   void SetHorLine (int x1, int x2, int y, int color);
  23.   void SetRGB(int i, int r, int g, int b);
  24.  
  25.   char *Memory;
  26. };
  27.  
  28. class Keyboard
  29. {
  30. public:
  31.   Keyboard(int argc, char *argv[]);
  32.   ~Keyboard(void);
  33.  
  34.   int Open(void);
  35.   void Close(void);
  36. };
  37.  
  38. #endif // AMIGA_H
  39.