fa03a2c5b2
PBOs aren't generally faster any more. NPOT textures are widely supported. Giving control over to Gtk while waiting for a swap doesn't really work that well, so the sync control extension options are removed. This means the OpenGL and Vulkan backends are in parity with regard to options.
38 lines
943 B
C++
38 lines
943 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_GLX_CONTEXT_H
|
|
#define __GTK_GLX_CONTEXT_H
|
|
|
|
#include "gtk_opengl_context.h"
|
|
|
|
#include <epoxy/glx.h>
|
|
|
|
class GTKGLXContext : public OpenGLContext
|
|
{
|
|
public:
|
|
GTKGLXContext();
|
|
~GTKGLXContext();
|
|
bool attach(Display *dpy, Window xid);
|
|
bool create_context();
|
|
void resize();
|
|
void swap_buffers();
|
|
void swap_interval(int frames);
|
|
void make_current();
|
|
bool ready();
|
|
|
|
GLXContext context;
|
|
GLXFBConfig fbconfig;
|
|
Display *display;
|
|
int screen;
|
|
Window xid;
|
|
|
|
int version_major;
|
|
int version_minor;
|
|
};
|
|
|
|
#endif
|