istereo

view src/ES1Renderer.h @ 0:1bb950d0976b

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 06 Sep 2011 08:07:14 +0300
parents
children
line source
1 //
2 // ES1Renderer.h
3 // istereo
4 //
5 // Created by nuclear on 9/6/11.
6 // Copyright __MyCompanyName__ 2011. All rights reserved.
7 //
9 #import "ESRenderer.h"
11 #import <OpenGLES/ES1/gl.h>
12 #import <OpenGLES/ES1/glext.h>
14 @interface ES1Renderer : NSObject <ESRenderer>
15 {
16 @private
17 EAGLContext *context;
19 // The pixel dimensions of the CAEAGLLayer
20 GLint backingWidth;
21 GLint backingHeight;
23 // The OpenGL ES names for the framebuffer and renderbuffer used to render to this view
24 GLuint defaultFramebuffer, colorRenderbuffer;
25 }
27 - (void)render;
28 - (BOOL)resizeFromLayer:(CAEAGLLayer *)layer;
30 @end