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

14
src/win32/xy.zig Normal file
View file

@ -0,0 +1,14 @@
pub fn XY(comptime T: type) type {
return struct {
x: T,
y: T,
pub fn init(x: T, y: T) @This() {
return .{ .x = x, .y = y };
}
const Self = @This();
pub fn eql(self: Self, other: Self) bool {
return self.x == other.x and self.y == other.y;
}
};
}