m_bbox.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Emacs style mode select -*- C++ -*-
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. // Nil.
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef __M_BBOX__
  22. #define __M_BBOX__
  23. #include <values.h>
  24. #include "m_fixed.h"
  25. // Bounding box coordinate storage.
  26. enum
  27. {
  28. BOXTOP,
  29. BOXBOTTOM,
  30. BOXLEFT,
  31. BOXRIGHT
  32. }; // bbox coordinates
  33. // Bounding box functions.
  34. void M_ClearBox (fixed_t* box);
  35. void
  36. M_AddToBox
  37. ( fixed_t* box,
  38. fixed_t x,
  39. fixed_t y );
  40. #endif
  41. //-----------------------------------------------------------------------------
  42. //
  43. // $Log:$
  44. //
  45. //-----------------------------------------------------------------------------