17 lines
414 B
Zig
17 lines
414 B
Zig
const std = @import("std");
|
|
pub const c = @import("c.zig").c;
|
|
|
|
pub const Window = opaque {
|
|
pub inline fn metal_CreateView(window: *Window) MetalView {
|
|
return c.SDL_Metal_CreateView(window);
|
|
}
|
|
};
|
|
|
|
pub inline fn metal_DestroyView(view: MetalView) void {
|
|
return c.SDL_Metal_DestroyView(view);
|
|
}
|
|
|
|
pub inline fn metal_GetLayer(view: MetalView) ?*anyopaque {
|
|
return c.SDL_Metal_GetLayer(view);
|
|
}
|