- Update pool to use template allocator directly instead of std::vector

- Add a GfxDriver config Template to be able to modify settings like allocators / Types for specific Drivers
- Add glad
This commit is contained in:
2026-09-06 16:12:57 +02:00
parent 8a94f0ccd0
commit 5ec73d20c3
17 changed files with 25678 additions and 30 deletions
+19
View File
@@ -0,0 +1,19 @@
#include <pd/drivers/gfx.hpp>
namespace PD {
PD_API std::unique_ptr<GfxDriver> Gfx::driver;
GfxDriver::GfxDriver(std::string_view name) : DriverInterface(name) {}
void GfxDriver::SetViewPort(const ivec2& size) { ViewPort = size; }
void GfxDriver::SetViewPort(int x, int y) {
ViewPort.x = x;
ViewPort.y = y;
}
void GfxDriver::Reset() {
CurrentVertex = 0;
CurrentIndex = 0;
SysReset();
}
} // namespace PD