istereo

annotate src/ES2Renderer.h @ 27:fd39c0198935

normal mapped tunnel
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 08 Sep 2011 08:30:00 +0300
parents
children 8dd271942543
rev   line source
nuclear@0 1 //
nuclear@0 2 // ES2Renderer.h
nuclear@0 3 // istereo
nuclear@0 4 //
nuclear@0 5 // Created by nuclear on 9/6/11.
nuclear@0 6 // Copyright __MyCompanyName__ 2011. All rights reserved.
nuclear@0 7 //
nuclear@0 8
nuclear@0 9 #import "ESRenderer.h"
nuclear@0 10
nuclear@0 11 #import <OpenGLES/ES2/gl.h>
nuclear@0 12 #import <OpenGLES/ES2/glext.h>
nuclear@0 13
nuclear@0 14 @interface ES2Renderer : NSObject <ESRenderer>
nuclear@0 15 {
nuclear@0 16 @private
nuclear@0 17 EAGLContext *context;
nuclear@0 18
nuclear@0 19 // The pixel dimensions of the CAEAGLLayer
nuclear@0 20 GLint backingWidth;
nuclear@0 21 GLint backingHeight;
nuclear@0 22
nuclear@0 23 // The OpenGL ES names for the framebuffer and renderbuffer used to render to this view
nuclear@0 24 GLuint defaultFramebuffer, colorRenderbuffer;
nuclear@0 25
nuclear@0 26 GLuint program;
nuclear@0 27 }
nuclear@0 28
nuclear@0 29 - (void)render;
nuclear@0 30 - (BOOL)resizeFromLayer:(CAEAGLLayer *)layer;
nuclear@0 31
nuclear@0 32 @end
nuclear@0 33