celine.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //---------------------------------------------------------------------------
  2. //
  3. // celine.h - This file contains the class declarations for the line element
  4. //
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. #ifndef CELINE_H
  9. #define CELINE_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 <stuff\stuff.hpp>
  19. //---------------------------------------------------------------------------
  20. class LineElement : public Element
  21. {
  22. public:
  23. Stuff::Vector4D startPos;
  24. Stuff::Vector4D endPos;
  25. long color;
  26. long endColor;
  27. MemoryPtr fadeTable;
  28. LineElement (void) : Element()
  29. {
  30. startPos.x = startPos.y = startPos.z = startPos.w = 0.0f;
  31. endPos.x = endPos.y = endPos.z = endPos.w = 0.0f;
  32. color = 0;
  33. endColor = -1;
  34. fadeTable = NULL;
  35. }
  36. LineElement (Stuff::Vector4D &pos1, Stuff::Vector4D &pos2, long clr, MemoryPtr fTable, long endClr = -1);
  37. virtual void draw (void);
  38. };
  39. //---------------------------------------------------------------------------
  40. #endif