Support LINE_F

This commit is contained in:
2023-05-27 15:14:19 +02:00
parent 6f735eeefb
commit 4914e3b9b4
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);
}
}