PolyScreenLine.h 796 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * PolyScreenLine.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 5/8/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Screen
  10. #pragma once
  11. #include "PolyGlobals.h"
  12. #include "PolyScreenEntity.h"
  13. #include "PolyCoreServices.h"
  14. #include "PolyMesh.h"
  15. #include <string>
  16. using std::string;
  17. namespace Polycode {
  18. class _PolyExport ScreenLine : public ScreenEntity {
  19. public:
  20. ScreenLine(Vector2* start, Vector2* end);
  21. ScreenLine(ScreenEntity* target1, ScreenEntity* target2);
  22. ~ScreenLine();
  23. void Update();
  24. void Render();
  25. void setLineWidth(float width);
  26. protected:
  27. float lineWidth;
  28. Vertex startVertex;
  29. Vertex endVertex;
  30. RenderDataArray *vertexDataArray;
  31. ScreenEntity *target1;
  32. ScreenEntity *target2;
  33. };
  34. }