nuclear@39: /* nuclear@39: Stereoscopic tunnel for iOS. nuclear@39: Copyright (C) 2011 John Tsiombikas nuclear@39: nuclear@39: This program is free software: you can redistribute it and/or modify nuclear@39: it under the terms of the GNU General Public License as published by nuclear@39: the Free Software Foundation, either version 3 of the License, or nuclear@39: (at your option) any later version. nuclear@39: nuclear@39: This program is distributed in the hope that it will be useful, nuclear@39: but WITHOUT ANY WARRANTY; without even the implied warranty of nuclear@39: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nuclear@39: GNU General Public License for more details. nuclear@39: nuclear@39: You should have received a copy of the GNU General Public License nuclear@39: along with this program. If not, see . nuclear@39: */ nuclear@39: nuclear@39: /* XXX this file is mostly generated from Xcode and therefore sucks ass */ nuclear@0: nuclear@0: #import "ESRenderer.h" nuclear@0: nuclear@0: #import nuclear@0: #import nuclear@0: nuclear@0: @interface ES2Renderer : NSObject nuclear@0: { nuclear@0: @private nuclear@0: EAGLContext *context; nuclear@0: nuclear@0: // The pixel dimensions of the CAEAGLLayer nuclear@30: int xsz, ysz; nuclear@0: nuclear@0: // The OpenGL ES names for the framebuffer and renderbuffer used to render to this view nuclear@30: unsigned int fbo, rbuf_color, rbuf_depth; nuclear@0: nuclear@0: GLuint program; nuclear@0: } nuclear@0: nuclear@0: - (void)render; nuclear@0: - (BOOL)resizeFromLayer:(CAEAGLLayer *)layer; nuclear@0: nuclear@0: @end nuclear@0: