Lines Matching refs:gl
68 namespace gl { namespace
132 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context() local
133 return static_cast<egl_context_t*>(gl->rasterizer.base); in context()
157 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl) = 0;
158 virtual EGLBoolean bindReadSurface(ogles_context_t* gl) = 0;
227 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
228 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
584 EGLBoolean egl_window_surface_v2_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
593 gl->rasterizer.procs.colorBuffer(gl, &buffer); in bindDrawSurface()
594 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
595 gl->rasterizer.procs.depthBuffer(gl, &depth); in bindDrawSurface()
599 EGLBoolean egl_window_surface_v2_t::bindReadSurface(ogles_context_t* gl) in bindReadSurface() argument
608 gl->rasterizer.procs.readBuffer(gl, &buffer); in bindReadSurface()
651 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
652 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
675 EGLBoolean egl_pixmap_surface_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
685 gl->rasterizer.procs.colorBuffer(gl, &buffer); in bindDrawSurface()
686 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
687 gl->rasterizer.procs.depthBuffer(gl, &depth); in bindDrawSurface()
690 EGLBoolean egl_pixmap_surface_t::bindReadSurface(ogles_context_t* gl) in bindReadSurface() argument
699 gl->rasterizer.procs.readBuffer(gl, &buffer); in bindReadSurface()
714 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
715 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
759 EGLBoolean egl_pbuffer_surface_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
761 gl->rasterizer.procs.colorBuffer(gl, &pbuffer); in bindDrawSurface()
762 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
763 gl->rasterizer.procs.depthBuffer(gl, &depth); in bindDrawSurface()
766 EGLBoolean egl_pbuffer_surface_t::bindReadSurface(ogles_context_t* gl) in bindReadSurface() argument
768 gl->rasterizer.procs.readBuffer(gl, &pbuffer); in bindReadSurface()
1165 static int makeCurrent(ogles_context_t* gl) in makeCurrent() argument
1168 if (gl) { in makeCurrent()
1169 egl_context_t* c = egl_context_t::context(gl); in makeCurrent()
1171 if (current != gl) { in makeCurrent()
1185 setGlThreadSpecific(gl); in makeCurrent()
1663 ogles_context_t* gl = ogles_init(sizeof(egl_context_t)); in eglCreateContext() local
1664 if (!gl) return setError(EGL_BAD_ALLOC, EGL_NO_CONTEXT); in eglCreateContext()
1666 egl_context_t* c = static_cast<egl_context_t*>(gl->rasterizer.base); in eglCreateContext()
1672 return (EGLContext)gl; in eglCreateContext()
1730 ogles_context_t* gl = (ogles_context_t*)ctx; in eglMakeCurrent() local
1731 if (makeCurrent(gl) == 0) { in eglMakeCurrent()
1759 ogles_surfaceport(gl, 0, 0); in eglMakeCurrent()
1760 ogles_viewport(gl, 0, 0, w, h); in eglMakeCurrent()
1761 ogles_scissor(gl, 0, 0, w, h); in eglMakeCurrent()
1768 d->bindDrawSurface(gl); in eglMakeCurrent()
1773 r->bindReadSurface(gl); in eglMakeCurrent()