/* DingusPPC - The Experimental PowerPC Macintosh emulator Copyright (C) 2018-23 divingkatae and maximum (theweirdo) spatium (Contact divingkatae#1017 or powermax#2286 on Discord for more info) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /** @file Display/screen abstraction (implemented on each platform). */ #ifndef DISPLAY_H #define DISPLAY_H #include #include #include class Display { public: Display(); ~Display(); // Configures the display for the given width/height. // Returns true if this is the first time the screen has been configured. bool configure(int width, int height); // Clears the display void blank(); void update(std::function convert_fb_cb, bool draw_hw_cursor, int cursor_x, int cursor_y); void handle_events(const WindowEvent& wnd_event); void setup_hw_cursor(std::function draw_hw_cursor, int cursor_width, int cursor_height); private: class Impl; // Holds private fields std::unique_ptr impl; }; #endif // DISPLAY_H