18 lines
361 B
C
18 lines
361 B
C
|
#pragma once
|
||
|
#include <gtk/gtk.h>
|
||
|
|
||
|
struct OpenGLContext
|
||
|
{
|
||
|
virtual bool attach (GtkWidget *widget) = 0;
|
||
|
virtual bool create_context () = 0;
|
||
|
virtual void resize () = 0;
|
||
|
virtual void swap_buffers () = 0;
|
||
|
virtual void swap_interval (int frames) = 0;
|
||
|
virtual void make_current () = 0;
|
||
|
|
||
|
int x;
|
||
|
int y;
|
||
|
int width;
|
||
|
int height;
|
||
|
};
|