Lines Matching refs:ctx
70 _eglInitContext(_EGLContext *ctx, _EGLDisplay *disp,
75 _eglQueryContext(_EGLContext *ctx, EGLint attribute, EGLint *value);
79 _eglBindContext(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read,
84 _eglBindContextToThread(_EGLContext *ctx, _EGLThreadInfo *t);
91 _eglGetContext(_EGLContext *ctx)
93 if (ctx)
94 _eglGetResource(&ctx->Resource);
95 return ctx;
103 _eglPutContext(_EGLContext *ctx)
105 return (ctx) ? _eglPutResource(&ctx->Resource) : EGL_FALSE;
114 _eglLinkContext(_EGLContext *ctx)
116 _eglLinkResource(&ctx->Resource, _EGL_RESOURCE_CONTEXT);
117 return (EGLContext) ctx;
126 _eglUnlinkContext(_EGLContext *ctx)
128 _eglUnlinkResource(&ctx->Resource, _EGL_RESOURCE_CONTEXT);
139 _EGLContext *ctx = (_EGLContext *) context;
140 if (!disp || !_eglCheckResource((void *) ctx, _EGL_RESOURCE_CONTEXT, disp))
141 ctx = NULL;
142 return ctx;
150 _eglGetContextHandle(_EGLContext *ctx)
152 _EGLResource *res = (_EGLResource *) ctx;
154 (EGLContext) ctx : EGL_NO_CONTEXT;