Support LINE_F

This commit is contained in:
Jaby
2023-05-27 15:14:19 +02:00
committed by Jaby
parent 1129ea40f1
commit ca1e937dae
5 changed files with 100 additions and 11 deletions

View File

@@ -45,6 +45,11 @@ namespace JabyEngine {
internal::render(reinterpret_cast<const uint32_t*>(&primitive), sizeof(T)/sizeof(uint32_t));
}
template<size_t N>
static void render(const LINE_F (&line)[N]) {
internal::render(reinterpret_cast<const uint32_t*>(&line), N);
}
uint8_t swap_buffers_vsync(uint8_t syncs, bool clear_screen = true);
}
}