home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Programming / wfimage / src / waveformsbase.h < prev   
Encoding:
C/C++ Source or Header  |  2001-09-14  |  1.9 KB  |  68 lines

  1. #ifndef  WAVEFORMSBASE_H
  2. #define  WAVEFORMSBASE_H
  3.  
  4. #include <exec/types.h>
  5. #include <exec/libraries.h>
  6. #include <graphics/gfxbase.h>
  7.  
  8. #include <intuition/intuition.h>
  9. #include <intuition/classes.h>
  10. #include <intuition/classusr.h>
  11. #include <intuition/imageclass.h>
  12. #include <dos.h>
  13.  
  14.  
  15. //#define DOUBLEMATH   1
  16.  
  17.  
  18. #ifdef DOUBLEMATH
  19. #include <mieeedoub.h>
  20. #define PI      3.14159265358979323846       /*  Floating point constants */
  21. #define PID2    1.57079632679489661923       /*  PI/2  */
  22. #define PID4    0.78539816339744830962       /*  PI/4  */
  23. #define I_PI    0.31830988618379067154       /*  1/PI  */
  24. #define I_PID2  0.63661977236758134308       /*  1/(PI/2)  */
  25. #endif /* DOUBLEMATH */
  26.  
  27.  
  28. struct waveformData
  29. {
  30.    struct DrawInfo     *wf_DrawInfo;
  31.    LONG                 wf_WaveShape;
  32.    LONG                 wf_WaveType;
  33.    LONG                 wf_Outline;
  34.    LONG                 wf_BoxFrame;         /* whether to frame the graphic or NOT */
  35.    WORD                 wf_ShadowPen;        /* used for box outline shadow */
  36.    WORD                 wf_HiLitePen;        /*    ...same for highlighting */
  37.    WORD                 wf_WavePen;
  38.    WORD                 wf_ZeroPen;
  39.    WORD                 wf_OsciPen;          /* see user tags below */
  40.    WORD                 wf_Pad;
  41. };
  42.  
  43.  
  44. struct WFIBase
  45. {
  46.    struct ClassLibrary  cb_Lib;              /* Node (14) -> Library (34) -> ClassLib (40) */
  47.    struct Library      *cb_SysBase;
  48.    struct Library      *cb_GfxBase;
  49.    struct Library      *cb_IntuitionBase;
  50.    struct Library      *cb_UtilityBase;
  51.  
  52. #ifdef DOUBLEMATH
  53.    struct Library      *cb_MathIeeeDoubBasBase;
  54.    struct Library      *cb_MathIeeeDoubTransBase;
  55. #endif /* DOUBLEMATH */
  56.  
  57.    ULONG                cb_SegList;
  58. };
  59.  
  60.  
  61. BOOL __saveds __asm raiseClass( REGISTER __a0 struct WFIBase *cb );
  62. VOID __saveds __asm dropClass( REGISTER __a0 struct WFIBase *cb );
  63.  
  64.  
  65. #endif /* WAVEFORMSBASE_H */
  66.  
  67.  
  68.