From 5a54774474f43ae29716751d6415563a59b92c7d Mon Sep 17 00:00:00 2001 From: pk33 Date: Mon, 11 Nov 2024 18:06:18 +0100 Subject: tidying up and basic input --- include/display.h | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 include/display.h (limited to 'include/display.h') diff --git a/include/display.h b/include/display.h deleted file mode 100644 index 63fc7b2..0000000 --- a/include/display.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef __DISPLAY_H__ -#define __DISPLAY_H__ - -#include "libdrm/drm_mode.h" - -#include "types.h" -/* TEMP */ -typedef struct { - u32 *data; - Size w, h; -} Surface; -/**/ - - -typedef struct { - Size id[2]; - u32 *map[2]; - Size stride; - Size size; -} Framebuffer; - - -typedef struct { - Framebuffer fb; - Surface surface; - - struct drm_mode_crtc crtc; - struct drm_mode_modeinfo mode; - struct drm_mode_get_connector connector; - - Size devfd, ttyfd; - - Size active; -} Display; - - -extern Display __display; - - -Size display_init( void ); - -void display_flip( void ); -void display_vtswitcher_poll( int timeout ); - -void display_term( void ); - - -#endif /* __DISPLAY_H__ */ -- cgit v1.2.3