X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=GL%2Fglesinterface.h;h=6f285711770591001b316c99f4beb34cca2cdc7a;hb=refs%2Fheads%2Fnocpp;hp=46de9e4bda9cb1423fd179c9ce0df6a35ac61255;hpb=90b6ce289bd8f5b58b88fcd856f5656e727904de;p=nanogl.git diff --git a/GL/glesinterface.h b/GL/glesinterface.h index 46de9e4..6f28571 100644 --- a/GL/glesinterface.h +++ b/GL/glesinterface.h @@ -34,7 +34,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define S #endif -struct GlESInterface +typedef struct GlESInterface_s { int (*eglChooseConfig) (int dpy, const int *attrib_list, int *configs, int config_size, int *num_config) S; @@ -53,7 +53,7 @@ struct GlESInterface int (*eglGetDisplay) (int display) S; int (*eglGetError) (void) S; - void (*(*eglGetProcAddress) (const char *procname))(...) S; + void *(*eglGetProcAddress) (const char *procname) S; int (*eglInitialize) (int dpy, int *major, int *minor) S; int (*eglMakeCurrent) (int dpy, int draw, int read, int ctx) S; @@ -216,7 +216,7 @@ struct GlESInterface int (*eglReleaseTexImage) (int dpy, int surface, int buffer) S; int (*eglSurfaceAttrib) (int dpy, int surface, int attribute, int value) S; - }; + } GlESInterface; #if !defined (__WINS__) #if defined(__TARGET_FPU_VFP) #pragma no_softfp_linkage