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
41 lines
1002 B
C++
41 lines
1002 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;
|
|
|
|
bool use_oml_sync_control;
|
|
int64_t ust, msc, sbc;
|
|
};
|
|
|
|
#endif
|