Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // GameController.h
- //
- // Created by Sidharth Juyal on 13/01/12.
- // Copyright (c) 2012 whackylabs. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import <GLKit/GLKit.h>
- typedef struct
- {
- // Handle to a program object
- GLuint programObject;
- // Attribute locations
- GLint positionLoc;
- GLint texCoordLoc;
- // Sampler location
- GLint samplerLoc;
- // Texture handle
- GLuint textureId;
- } UserData;
- @interface GameController : GLKViewController<GLKViewDelegate>{
- EAGLContext *context_;
- UserData *data;
- }
- -(void)compileProgramForVertexShader:(GLuint)vShader fragShader:(GLuint)fShader;
- -(GLuint)buildShaderType:(GLenum)shaderType path:(NSString *)path;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement