diff options
author | PoroCYon <pcy@national.shitposting.agency> | 2019-05-26 00:38:24 +0200 |
---|---|---|
committer | PoroCYon <pcy@national.shitposting.agency> | 2019-05-26 00:38:24 +0200 |
commit | 38f61a24fcdf5a78cbabc9184f55ded3b496f1d4 (patch) | |
tree | dd16419db7c9b8cebbdfea58e216b328e73047ea /src/libui_sdl/libui/unix/uipriv_unix.h | |
parent | 31e0f15797d0b6545ddc1a361252f267bf5d793d (diff) |
'port' libui GL stuff to Linux
Only implemented the functions needed by melonDS, and only tested using
a very recent mesa+libglvnd+nouveau. Will most likely bork using
proprietary nvidia or old(er) drivers (see gl.c)
Diffstat (limited to 'src/libui_sdl/libui/unix/uipriv_unix.h')
-rw-r--r-- | src/libui_sdl/libui/unix/uipriv_unix.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/unix/uipriv_unix.h b/src/libui_sdl/libui/unix/uipriv_unix.h index 33ff1e3..42d5d76 100644 --- a/src/libui_sdl/libui/unix/uipriv_unix.h +++ b/src/libui_sdl/libui/unix/uipriv_unix.h @@ -5,7 +5,7 @@ #define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_10 #include <gtk/gtk.h> #include <math.h> -#include <dlfcn.h> // see drawtext.c +#include <dlfcn.h> // see drawtext.c, gl.c #include <langinfo.h> #include <string.h> #include <stdlib.h> @@ -63,3 +63,7 @@ extern GtkCellRenderer *newCellRendererButton(void); extern void loadFutures(void); extern PangoAttribute *FUTURE_pango_attr_foreground_alpha_new(guint16 alpha); extern gboolean FUTURE_gtk_widget_path_iter_set_object_name(GtkWidgetPath *path, gint pos, const char *name); + +// gl.c +extern uiGLContext *createGLContext(GtkGLArea* gla, int maj, int min); + |