2
0

DrawHelper.txt 1.0 KB

12345678910111213141516171819202122
  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. - LineList2D_AA
  9. - LineList2D_Pixel
  10. - RoundedRect2D - Also copy from Recast/imguiRenderGL::drawRoundedRect
  11. - Also 3D equivalents
  12. - Line, Quad, QuadBorder, Box, BoxBorder
  13. - Then I also need draw* equivalents of those methods. draw equivalents will also create the buffer and submit the draw call.
  14. --------------------------
  15. Add extra parameter to each of the 2D draw methods: ScreenSpace or ClipSpace
  16. (They may use 3D versions for world space)
  17. - I need two separate 2D materials
  18. Only one material per viewport needs to exist, no need for separate material for each element