SetupUnit.h 708 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2008 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "Common/CommonTypes.h"
  6. #include "VideoBackends/Software/NativeVertexFormat.h"
  7. class PointerWrap;
  8. class SetupUnit
  9. {
  10. u8 m_PrimType;
  11. int m_VertexCounter;
  12. OutputVertexData m_Vertices[3];
  13. OutputVertexData *m_VertPointer[3];
  14. OutputVertexData *m_VertWritePointer;
  15. void SetupQuad();
  16. void SetupTriangle();
  17. void SetupTriStrip();
  18. void SetupTriFan();
  19. void SetupLine();
  20. void SetupLineStrip();
  21. void SetupPoint();
  22. public:
  23. void Init(u8 primitiveType);
  24. OutputVertexData* GetVertex() { return m_VertWritePointer; }
  25. void SetupVertex();
  26. void DoState(PointerWrap &p);
  27. };