k123

HelloGLKViewController.h

May 30th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import <GLKit/GLKit.h>
  2.  
  3. typedef struct {
  4.     GLuint vertexBuffer;
  5.     GLuint indexBuffer;
  6.     GLKMatrix4 matrix;
  7.     GLubyte numFaces;
  8. } Drawable;
  9.  
  10. @interface HelloGLKitViewController : GLKViewController
  11.  
  12. @property (strong, nonatomic) EAGLContext *context;
  13. @property (strong, nonatomic) GLKBaseEffect *effect;
  14.  
  15. - (Drawable)createDrawable: (NSString *)objFileName;
  16. - (void) renderDrawable: (Drawable)object;
  17.  
  18. @end
Advertisement
Add Comment
Please, Sign In to add comment