2018-11-16 00:42:29 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
|
|
|
|
2010-09-25 17:46:12 +02:00
|
|
|
#ifndef __GTK_DISPLAY_DRIVER_H
|
|
|
|
#define __GTK_DISPLAY_DRIVER_H
|
|
|
|
|
|
|
|
#include "gtk_s9x.h"
|
|
|
|
|
|
|
|
class S9xDisplayDriver
|
|
|
|
{
|
2020-07-01 00:28:10 +02:00
|
|
|
public:
|
|
|
|
virtual ~S9xDisplayDriver()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
virtual void refresh(int width, int height) = 0;
|
|
|
|
virtual int init() = 0;
|
|
|
|
virtual void deinit() = 0;
|
|
|
|
virtual void update(uint16_t *buffer, int width, int height, int stride_in_pixels) = 0;
|
|
|
|
virtual void *get_parameters() = 0;
|
|
|
|
virtual void save(const char *filename) = 0;
|
|
|
|
virtual bool is_ready() = 0;
|
2010-09-25 17:46:12 +02:00
|
|
|
|
2020-07-01 00:28:10 +02:00
|
|
|
protected:
|
|
|
|
Snes9xWindow *window;
|
|
|
|
Snes9xConfig *config;
|
2020-07-05 00:53:38 +02:00
|
|
|
Gtk::DrawingArea *drawing_area;
|
2010-09-25 17:46:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __GTK_DISPLAY_DRIVER_H*/
|