snes9x/gtk/src/gtk_display_driver_gtk.h

44 lines
1.4 KiB
C
Raw Normal View History

/*****************************************************************************\
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_GTK_H
#define __GTK_DISPLAY_DRIVER_GTK_H
#include "gtk_s9x.h"
#include "gtk_display_driver.h"
class S9xGTKDisplayDriver : public S9xDisplayDriver
{
public:
S9xGTKDisplayDriver (Snes9xWindow *window, Snes9xConfig *config);
void refresh (int width, int height);
int init ();
void deinit ();
void clear_buffers ();
2018-05-05 00:12:22 +02:00
void update (int width, int height, int yoffset);
uint16 *get_next_buffer ();
uint16 *get_current_buffer ();
2010-09-25 17:46:12 +02:00
void push_buffer (uint16 *src);
void *get_parameters () { return NULL; }
2018-05-13 18:02:52 +02:00
void save (const char *filename) { }
2010-09-25 17:46:12 +02:00
private:
void clear ();
2010-09-25 17:46:12 +02:00
void output (void *src,
int src_pitch,
int x,
int y,
int width,
int height,
int dst_width,
int dst_height);
int last_known_width;
int last_known_height;
2010-09-25 17:46:12 +02:00
};
#endif /* __GTK_DISPLAY_DRIVER_GTK_H */