Lines Matching refs:gl
90 namespace gl { namespace
154 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context() local
155 return static_cast<egl_context_t*>(gl->rasterizer.base); in context()
179 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl) = 0;
180 virtual EGLBoolean bindReadSurface(ogles_context_t* gl) = 0;
249 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
250 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
608 EGLBoolean egl_window_surface_v2_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
617 gl->rasterizer.procs.colorBuffer(gl, &buffer); in bindDrawSurface()
618 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
619 gl->rasterizer.procs.depthBuffer(gl, &depth); in bindDrawSurface()
623 EGLBoolean egl_window_surface_v2_t::bindReadSurface(ogles_context_t* gl) in bindReadSurface() argument
632 gl->rasterizer.procs.readBuffer(gl, &buffer); in bindReadSurface()
675 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
676 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
706 EGLBoolean egl_pixmap_surface_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
716 gl->rasterizer.procs.colorBuffer(gl, &buffer); in bindDrawSurface()
717 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
718 gl->rasterizer.procs.depthBuffer(gl, &depth); in bindDrawSurface()
721 EGLBoolean egl_pixmap_surface_t::bindReadSurface(ogles_context_t* gl) in bindReadSurface() argument
730 gl->rasterizer.procs.readBuffer(gl, &buffer); in bindReadSurface()
745 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
746 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
798 EGLBoolean egl_pbuffer_surface_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
800 gl->rasterizer.procs.colorBuffer(gl, &pbuffer); in bindDrawSurface()
801 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
802 gl->rasterizer.procs.depthBuffer(gl, &depth); in bindDrawSurface()
805 EGLBoolean egl_pbuffer_surface_t::bindReadSurface(ogles_context_t* gl) in bindReadSurface() argument
807 gl->rasterizer.procs.readBuffer(gl, &pbuffer); in bindReadSurface()
1222 static int makeCurrent(ogles_context_t* gl) in makeCurrent() argument
1225 if (gl) { in makeCurrent()
1226 egl_context_t* c = egl_context_t::context(gl); in makeCurrent()
1228 if (current != gl) { in makeCurrent()
1242 setGlThreadSpecific(gl); in makeCurrent()
1724 ogles_context_t* gl = ogles_init(sizeof(egl_context_t)); in eglCreateContext() local
1725 if (!gl) return setError(EGL_BAD_ALLOC, EGL_NO_CONTEXT); in eglCreateContext()
1727 egl_context_t* c = static_cast<egl_context_t*>(gl->rasterizer.base); in eglCreateContext()
1733 return (EGLContext)gl; in eglCreateContext()
1790 ogles_context_t* gl = (ogles_context_t*)ctx; in eglMakeCurrent() local
1791 if (makeCurrent(gl) == 0) { in eglMakeCurrent()
1819 ogles_surfaceport(gl, 0, 0); in eglMakeCurrent()
1820 ogles_viewport(gl, 0, 0, w, h); in eglMakeCurrent()
1821 ogles_scissor(gl, 0, 0, w, h); in eglMakeCurrent()
1828 d->bindDrawSurface(gl); in eglMakeCurrent()
1833 r->bindReadSurface(gl); in eglMakeCurrent()