cellip.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //---------------------------------------------------------------------------
  2. //
  3. // cellip.h - This file contains the class declarations for the ellipse element
  4. //
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. #ifndef CELLIP_H
  9. #define CELLIP_H
  10. //---------------------------------------------------------------------------
  11. // Include files
  12. #ifndef CELEMENT_H
  13. #include "celement.h"
  14. #endif
  15. #ifndef VFX_H
  16. #include "vfx.h"
  17. #endif
  18. #include "utilities.h"
  19. #include <stuff\stuff.hpp>
  20. //---------------------------------------------------------------------------
  21. class EllipseElement : public Element
  22. {
  23. public:
  24. gos_VERTEX location[5];
  25. GUI_RECT clip;
  26. EllipseElement (void)
  27. {
  28. memset( location, 0, sizeof( location ) );
  29. memset( &clip, 0, sizeof( clip ) );
  30. }
  31. EllipseElement (Stuff::Vector2DOf<long> &cnt, Stuff::Vector2DOf<long> &ortho, long clr, long depth);
  32. virtual void draw (void);
  33. static void init(); // gotta call this one time before you can draw
  34. void setClip( const GUI_RECT& );
  35. static void removeTextureHandle (void);
  36. private:
  37. static unsigned long s_textureHandle;
  38. };
  39. //---------------------------------------------------------------------------
  40. #endif