From 0b6ee849722002a8bc7cc5374e3136bee4be2ccd Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 2 Feb 2025 09:04:45 +0100 Subject: screen: add frame-buffer --- src/screen/drm/card.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/screen/drm/card.zig') diff --git a/src/screen/drm/card.zig b/src/screen/drm/card.zig index 411716a..d66a5f1 100644 --- a/src/screen/drm/card.zig +++ b/src/screen/drm/card.zig @@ -7,6 +7,7 @@ const Resources = @import("resources.zig").Resources; const Connector = @import("connector/root.zig").Connector; const Encoder = @import("encoder/root.zig").Encoder; const Crtc = @import("crtc/root.zig").Crtc; +const FrameBuffer = @import("frame-buffer/root.zig").FrameBuffer; pub const Card = struct { @@ -52,4 +53,8 @@ pub const Card = struct { pub fn crtc(self: *Card, id: u32) !Crtc { return Crtc.init(self, id); } + + pub fn create_frame_buffer(self: *Card, width: u32, height: u32, bpp: u32) !FrameBuffer { + return FrameBuffer.init(self, width, height, bpp); + } }; -- cgit v1.2.3-70-g09d2