Home | History | Annotate | Download | only in main

Lines Matching full:ctx

67 _eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy,
72 _eglQueryContext(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *ctx, EGLint attribute, EGLint *value);
76 _eglBindContext(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read,
85 _eglGetContext(_EGLContext *ctx)
87 if (ctx)
88 _eglGetResource(&ctx->Resource);
89 return ctx;
97 _eglPutContext(_EGLContext *ctx)
99 return (ctx) ? _eglPutResource(&ctx->Resource) : EGL_FALSE;
108 _eglLinkContext(_EGLContext *ctx)
110 _eglLinkResource(&ctx->Resource, _EGL_RESOURCE_CONTEXT);
111 return (EGLContext) ctx;
120 _eglUnlinkContext(_EGLContext *ctx)
122 _eglUnlinkResource(&ctx->Resource, _EGL_RESOURCE_CONTEXT);
133 _EGLContext *ctx = (_EGLContext *) context;
134 if (!dpy || !_eglCheckResource((void *) ctx, _EGL_RESOURCE_CONTEXT, dpy))
135 ctx = NULL;
136 return ctx;
144 _eglGetContextHandle(_EGLContext *ctx)
146 _EGLResource *res = (_EGLResource *) ctx;
148 (EGLContext) ctx : EGL_NO_CONTEXT;