istereo

annotate src/ES1Renderer.h @ 21:75a63f9ab7cc

ha!
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 10:49:11 +0300
parents
children
rev   line source
nuclear@0 1 //
nuclear@0 2 // ES1Renderer.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/ES1/gl.h>
nuclear@0 12 #import <OpenGLES/ES1/glext.h>
nuclear@0 13
nuclear@0 14 @interface ES1Renderer : 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
nuclear@0 27 - (void)render;
nuclear@0 28 - (BOOL)resizeFromLayer:(CAEAGLLayer *)layer;
nuclear@0 29
nuclear@0 30 @end