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
14
src/win32/xy.zig
Normal file
14
src/win32/xy.zig
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue