Skip to content

Refactor drawLine to use quads instead of GL_LINES#293

Open
oznogon wants to merge 2 commits intodaid:masterfrom
oznogon:new-sp-line-drawing
Open

Refactor drawLine to use quads instead of GL_LINES#293
oznogon wants to merge 2 commits intodaid:masterfrom
oznogon:new-sp-line-drawing

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Jan 28, 2026

Depends on #292 (FSAA implementation).

Refactor drawLine...() functions to draw lines using quads and a shader. The quad line shader is defined inline.

drawCircleOutline() and drawRectOutline() (formerly outlineRect()) also now accept a defined thickness/width.

Also:

  • Original drawLine... functions are retained but deprecated as drawGLLine...
  • Calculate circle point counts based on points-per-pixel counts instead of a fixed value, for smoother circles at different scales

@daid
Copy link
Owner

daid commented Mar 19, 2026

I see some FSAA changes in here but that was also handled by #293, any idea if there is some duplication?

oznogon added 2 commits March 19, 2026 15:56
Refactor drawLine...() functions to draw lines using quads and a
shader. The quad line shader is defined inline.

drawCircleOutline() and drawRectOutline() (formerly outlineRect())
also now accept a defined thickness/width.

Also:

- Original `drawLine` is `drawGLLine`
- Calculate circle point counts based on pixel counts instead of
  using a fixed value, for smoother circles
@oznogon oznogon force-pushed the new-sp-line-drawing branch from 4853162 to 64acc19 Compare March 19, 2026 22:57
@oznogon
Copy link
Contributor Author

oznogon commented Mar 19, 2026

I see some FSAA changes in here but that was also handled by #293, any idea if there is some duplication?

Yes, I should've rebased after #292 was merged.

@oznogon
Copy link
Contributor Author

oznogon commented Mar 19, 2026

Also to note that daid/EmptyEpsilon#2707 updates calls on the EE end to specify line width/thickness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants