Advertisement
chunkyguy

GameController.h

Jan 15th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  GameController.h
  3. //
  4. //  Created by Sidharth Juyal on 13/01/12.
  5. //  Copyright (c) 2012 whackylabs. All rights reserved.
  6. //
  7.  
  8. #import <UIKit/UIKit.h>
  9. #import <GLKit/GLKit.h>
  10.  
  11. typedef struct
  12. {
  13.     // Handle to a program object
  14.     GLuint programObject;
  15.    
  16.     // Attribute locations
  17.     GLint  positionLoc;
  18.     GLint  texCoordLoc;
  19.    
  20.     // Sampler location
  21.     GLint samplerLoc;
  22.    
  23.     // Texture handle
  24.     GLuint textureId;
  25.    
  26. } UserData;
  27.  
  28. @interface GameController : GLKViewController<GLKViewDelegate>{
  29.     EAGLContext *context_;
  30.     UserData *data;
  31. }
  32. -(void)compileProgramForVertexShader:(GLuint)vShader fragShader:(GLuint)fShader;
  33. -(GLuint)buildShaderType:(GLenum)shaderType path:(NSString *)path;
  34. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement