Files
palladium/source/drivers/gfx.cpp
tobid7 4924d86bc0 # Work at gfx driver system
- 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
2026-03-16 15:19:12 +01:00

19 lines
436 B
C++
Executable File

#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