istereo
annotate src/ES2Renderer.h @ 32:bc6db80aaa58
stop the texture coordinates from growing to rediculous proportions
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Thu, 08 Sep 2011 21:22:44 +0300 |
parents | 1bb950d0976b |
children | ff055bff6a15 |
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@30 | 20 int xsz, ysz; |
nuclear@0 | 21 |
nuclear@0 | 22 // The OpenGL ES names for the framebuffer and renderbuffer used to render to this view |
nuclear@30 | 23 unsigned int fbo, rbuf_color, rbuf_depth; |
nuclear@0 | 24 |
nuclear@0 | 25 GLuint program; |
nuclear@0 | 26 } |
nuclear@0 | 27 |
nuclear@0 | 28 - (void)render; |
nuclear@0 | 29 - (BOOL)resizeFromLayer:(CAEAGLLayer *)layer; |
nuclear@0 | 30 |
nuclear@0 | 31 @end |
nuclear@0 | 32 |