X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=include%2Figtkgl.h;fp=include%2Figtkgl.h;h=b4454564d12e8e1665704a36e45d94c717294943;hp=a78a05707b07f53dae3d54224099dd89db4fb21a;hb=f7ec4500c417377b467509679011d64a047f17d7;hpb=980ee7fd1f5bd8c1625f05cc21a32bf3a9eca6fc diff --git a/include/igtkgl.h b/include/igtkgl.h index a78a0570..b4454564 100644 --- a/include/igtkgl.h +++ b/include/igtkgl.h @@ -25,19 +25,18 @@ #include #include "generic/constant.h" -typedef int gint; -typedef gint gboolean; - -struct _QERGtkGLTable -{ - INTEGER_CONSTANT( Version, 1 ); - STRING_CONSTANT( Name, "gtkgl" ); - - ui::Widget ( *glwidget_new )(gboolean zbufffer); - void ( *glwidget_swap_buffers )( ui::Widget widget ); - gboolean ( *glwidget_make_current )( ui::Widget widget ); - void ( *glwidget_destroy_context )( ui::Widget widget ); - void ( *glwidget_create_context )( ui::Widget widget ); +template +using func = T *; + +struct _QERGtkGLTable { + STRING_CONSTANT(Name, "gtkgl"); + INTEGER_CONSTANT(Version, 1); + + func glwidget_new; + func glwidget_swap_buffers; + func glwidget_make_current; + func glwidget_destroy_context; + func glwidget_create_context; }; #endif