e17ff69533
GTK: Remove support for GTK+ 2.0. GTK 3 is stable and widespread enough now. GTK: Rearrange headers to eliminate gtk_s9xcore.h Gtk: Initial gtkmm conversion work. Gtk: More gtkmm conversion and bug fixing. Gtk: More gtkmm fixes. Gtk: More Fixes OpenGL no longer creates a second window. Accelerators are fixed. Gtk: More fixes Removed GLX context dependency on Gtk. Gtk: Fix formatting. Gtk: Remove a #pragma once
33 lines
1006 B
C++
33 lines
1006 B
C++
/*****************************************************************************\
|
|
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.
|
|
\*****************************************************************************/
|
|
|
|
#ifndef __GTK_DISPLAY_DRIVER_H
|
|
#define __GTK_DISPLAY_DRIVER_H
|
|
|
|
#include "gtk_s9x.h"
|
|
|
|
class S9xDisplayDriver
|
|
{
|
|
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;
|
|
|
|
protected:
|
|
Snes9xWindow *window;
|
|
Snes9xConfig *config;
|
|
Gtk::DrawingArea *drawing_area;
|
|
};
|
|
|
|
#endif /* __GTK_DISPLAY_DRIVER_H*/
|