| 12345678910111213141516171819202122 |
- Add class DrawHelper:
- - Line2D_AA - Creates an emulated AA line using triangles. See Recast/imguiRenderGL::drawPolygon for implementation. Line vertices and colors
- are appended in the specified buffer. No actual drawing is done.
- - Line2D_Pixel - Creates a simple line using LINE primitive topology. Line vertices and colors are appended in the specified buffer.
- - Quad2D
- - QuadBorder2D_AA
- - QuadBorder2D_Pixel
- - LineList2D_AA
- - LineList2D_Pixel
- - RoundedRect2D - Also copy from Recast/imguiRenderGL::drawRoundedRect
- - Also 3D equivalents
- - Line, Quad, QuadBorder, Box, BoxBorder
- - Then I also need draw* equivalents of those methods. draw equivalents will also create the buffer and submit the draw call.
- --------------------------
- Add extra parameter to each of the 2D draw methods: ScreenSpace or ClipSpace
- (They may use 3D versions for world space)
- - I need two separate 2D materials
- Only one material per viewport needs to exist, no need for separate material for each element
|