CmRenderOpMesh.h 650 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "CmPrerequisites.h"
  3. #include "CmVertexDeclaration.h"
  4. #include "CmVertexData.h"
  5. #include "CmIndexData.h"
  6. namespace CamelotFramework
  7. {
  8. enum DrawOperationType {
  9. DOT_POINT_LIST = 1,
  10. DOT_LINE_LIST = 2,
  11. DOT_LINE_STRIP = 3,
  12. DOT_TRIANGLE_LIST = 4,
  13. DOT_TRIANGLE_STRIP = 5,
  14. DOT_TRIANGLE_FAN = 6
  15. };
  16. struct RenderOpMesh
  17. {
  18. RenderOpMesh()
  19. :vertexData(nullptr), operationType(DOT_TRIANGLE_LIST), useIndexes(true),
  20. indexData(nullptr)
  21. { }
  22. std::shared_ptr<VertexData> vertexData;
  23. std::shared_ptr<IndexData> indexData;
  24. DrawOperationType operationType;
  25. bool useIndexes;
  26. };
  27. }