Lines Matching refs:fGL
264 fGL.fContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];
266 fGL.fContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
269 if (!fGL.fContext || ![EAGLContext setCurrentContext:fGL.fContext])
276 glGenFramebuffers(1, &fGL.fFramebuffer);
277 glBindFramebuffer(GL_FRAMEBUFFER, fGL.fFramebuffer);
279 glGenRenderbuffers(1, &fGL.fRenderbuffer);
280 glGenRenderbuffers(1, &fGL.fStencilbuffer);
282 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer);
283 …glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, fGL.fRenderbuffer…
285 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fStencilbuffer);
286 …glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, fGL.fStencilbuff…
326 fDevManager = new SkiOSDeviceManager(fGL.fFramebuffer);
344 [fGL.fContext release];
352 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer);
353 [fGL.fContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:fGLLayer];
355 glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &fGL.fWidth);
356 glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_HEIGHT, &fGL.fHeight);
358 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fStencilbuffer);
359 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, fGL.fWidth, fGL.fHeight);
366 W = fGL.fWidth;
367 H = fGL.fHeight;
399 [EAGLContext setCurrentContext:fGL.fContext];
403 glBindFramebuffer(GL_FRAMEBUFFER, fGL.fFramebuffer);
413 glViewport(0, 0, fGL.fWidth, fGL.fHeight);
428 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer);
429 [fGL.fContext presentRenderbuffer:GL_RENDERBUFFER];
481 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer);