istereo

annotate src/ES2Renderer.h @ 39:ff055bff6a15

copyright statements and stuff
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 11 Sep 2011 09:03:18 +0300
parents 8dd271942543
children
rev   line source
nuclear@39 1 /*
nuclear@39 2 Stereoscopic tunnel for iOS.
nuclear@39 3 Copyright (C) 2011 John Tsiombikas <nuclear@member.fsf.org>
nuclear@39 4
nuclear@39 5 This program is free software: you can redistribute it and/or modify
nuclear@39 6 it under the terms of the GNU General Public License as published by
nuclear@39 7 the Free Software Foundation, either version 3 of the License, or
nuclear@39 8 (at your option) any later version.
nuclear@39 9
nuclear@39 10 This program is distributed in the hope that it will be useful,
nuclear@39 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
nuclear@39 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nuclear@39 13 GNU General Public License for more details.
nuclear@39 14
nuclear@39 15 You should have received a copy of the GNU General Public License
nuclear@39 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
nuclear@39 17 */
nuclear@39 18
nuclear@39 19 /* XXX this file is mostly generated from Xcode and therefore sucks ass */
nuclear@0 20
nuclear@0 21 #import "ESRenderer.h"
nuclear@0 22
nuclear@0 23 #import <OpenGLES/ES2/gl.h>
nuclear@0 24 #import <OpenGLES/ES2/glext.h>
nuclear@0 25
nuclear@0 26 @interface ES2Renderer : NSObject <ESRenderer>
nuclear@0 27 {
nuclear@0 28 @private
nuclear@0 29 EAGLContext *context;
nuclear@0 30
nuclear@0 31 // The pixel dimensions of the CAEAGLLayer
nuclear@30 32 int xsz, ysz;
nuclear@0 33
nuclear@0 34 // The OpenGL ES names for the framebuffer and renderbuffer used to render to this view
nuclear@30 35 unsigned int fbo, rbuf_color, rbuf_depth;
nuclear@0 36
nuclear@0 37 GLuint program;
nuclear@0 38 }
nuclear@0 39
nuclear@0 40 - (void)render;
nuclear@0 41 - (BOOL)resizeFromLayer:(CAEAGLLayer *)layer;
nuclear@0 42
nuclear@0 43 @end
nuclear@0 44