water.h 647 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __WATER_
  2. #define __WATER_
  3. #define WATER_BOUNDARY_METHOD_RANDOM 1
  4. #define WATER_BOUNDARY_METHOD_MAX_SIZE 2
  5. #define WATER_BOUNDARY_METHOD_SIZE_HEURISTICS 3
  6. typedef struct _WATER_BOUNDARY
  7. {
  8. float Top;
  9. float Bottom;
  10. float Left;
  11. float Right;
  12. float Height;
  13. float AspectRatio;
  14. float Size;
  15. struct _WATER_BOUNDARY *pNext;
  16. } WATER_BOUNDARY;
  17. typedef struct
  18. {
  19. WATER_BOUNDARY *pFirst;
  20. WATER_BOUNDARY *pLast;
  21. int iCount;
  22. } WATER_STRUCT;
  23. void w_Create_Water_Boundaries(void);
  24. void w_Release_Water_Boundaries(void);
  25. void w_Choose_Best_Boundary(WATER_BOUNDARY * pBoundary, float fx, float fy,
  26. float fz, int Method);
  27. #endif