DrawHelper.txt 1.1 KB

123456789101112131415161718192021
  1. Add class DrawHelper:
  2. - Line2D_AA - Creates an emulated AA line using triangles. See Recast/imguiRenderGL::drawPolygon for implementation. Line vertices and colors
  3. are appended in the specified buffer. No actual drawing is done.
  4. - Line2D_Pixel - Creates a simple line using LINE primitive topology. Line vertices and colors are appended in the specified buffer.
  5. - Quad2D
  6. - QuadBorder2D_AA
  7. - QuadBorder2D_Pixel
  8. - Polygon2D
  9. - PolygonBorder2D_AA
  10. - PolygonBorder2D_Pixel
  11. - LineList2D_AA
  12. - LineList2D_Pixel
  13. - RoundedRect2D - Also copy from Recast/imguiRenderGL::drawRoundedRect
  14. - Also 3D equivalents
  15. - Line, Quad, QuadBorder, Box, BoxBorder
  16. - Then I also need draw* equivalents of those methods. draw equivalents will also create the buffer and submit the draw call.
  17. - draw equivalents accept a time for how long to display the element, if 0 it will only be displayed for one frame
  18. - all elements should be grouped into a common vertex/index buffer (as much as possible)
  19. - draw methods should combine methods above to make drawing easier. e.g. a transparent box with AA line borders should be easily drawable