win32 gui: replace D2D renderer with D3d11 shader

This commit is contained in:
Jonathan Marler 2025-01-11 22:26:21 -07:00
parent 157dc3d47c
commit 5b83619f7a
13 changed files with 1945 additions and 425 deletions

View file

@ -126,8 +126,8 @@ pub fn fmtmsg(buf: []u8, value: anytype) []const u8 {
}
pub fn render(self: *Self) error{}!void {
_ = gui.updateScreen(&self.vx.screen);
if (self.hwnd) |hwnd| win32.invalidateHwnd(hwnd);
const hwnd = self.hwnd orelse return;
_ = gui.updateScreen(hwnd, &self.vx.screen);
}
pub fn stop(self: *Self) void {
// this is guaranteed because stop won't be called until after