win32 gui: replace D2D renderer with D3d11 shader
This commit is contained in:
parent
157dc3d47c
commit
5b83619f7a
13 changed files with 1945 additions and 425 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue