GUI: prepare for new pattern renderer

likely two stages, depending on how efficient the first one is

stage 1:
- no more Selectables
- using ImDrawList to draw the pattern
  - perhaps even bypassing that and directly firing quads at the draw queue

stage 2:
- using textures and tiles to draw the pattern
This commit is contained in:
tildearrow 2025-12-27 18:16:33 -05:00
parent 240d3c5718
commit 4db4509621
6 changed files with 115 additions and 0 deletions

View file

@ -419,6 +419,11 @@ inline void FurnaceGUI::patternRow(int i, bool isPlaying, float lineHeight, int
}
void FurnaceGUI::drawPattern() {
if (newPatternRenderer) {
drawPatternNew();
return;
}
//int delta0=SDL_GetPerformanceCounter();
if (nextWindow==GUI_WINDOW_PATTERN) {
patternOpen=true;