{"action":"created","comment":{"url":"https://api.github.com/repos/xorserer/Playground/pulls/comments/46413731","id":46413731,"diff_hunk":"@@ -0,0 +1,150 @@\n+//\n+//  Copyright (c) 2015 Lightricks. All rights reserved.\n+//  Created by Ophir on 9/25/15.\n+//\n+\n+#import \"TMMainScreenViewController.h\"\n+\n+#import \"Geometry.h\"\n+#import \"TMShaderCompiler.h\"\n+\n+@import GLKit;\n+\n+@interface TMMainScreenViewController ()\n+\n+/// Used for the initial setup, which happens once at \\c viewDidAppear.\n+@property (nonatomic) BOOL firstApearance;\n+/// The \\c EAGLContext is initialised once, here in the main screen. Other view controllers just\n+/// use the method: @code [EAGLContext currentContext]; @endcode to retrieve it.\n+@property (strong, nonatomic) EAGLContext *EAGLcontext;\n+/// This class takes care of all the gesture behaviors, and delegates the actions back to it's\n+/// initiator.\n+@property (strong, nonatomic) TMGestureBehavior *gestureBehavior;\n+/// The device's scale.\n+@property (nonatomic) CGFloat scale;\n+/// The device's bounds.\n+@property (nonatomic) CGRect bounds;\n+\n+@end\n+\n+@implementation TMMainScreenViewController\n+\n+#pragma mark -\n+#pragma mark UIViewController\n+#pragma mark -\n+\n+- (void)viewDidLoad {\n+  [super viewDidLoad];\n+  self.EAGLcontext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];\n+  [EAGLContext setCurrentContext: self.EAGLcontext];\n+  self.firstApearance = YES;\n+}\n+\n+- (void)viewDidAppear:(BOOL)animated {\n+  if (self.firstApearance) {\n+    [self initialSetup];\n+  }\n+  [self.GLKview setNeedsDisplay];","path":"ToneMappingGL/ToneMappingGL/TMMainScreenViewController.m","position":47,"original_position":47,"commit_id":"ec26005d1cf628d6b37b5cd77054715b5ac80b2d","original_commit_id":"28a2356bb0c29cba96226dff5d6d2ce46561c54d","user":{"login":"ophir88","id":6900539,"avatar_url":"https://avatars.githubusercontent.com/u/6900539?v=3","gravatar_id":"","url":"https://api.github.com/users/ophir88","html_url":"https://github.com/ophir88","followers_url":"https://api.github.com/users/ophir88/followers","following_url":"https://api.github.com/users/ophir88/following{/other_user}","gists_url":"https://api.github.com/users/ophir88/gists{/gist_id}","starred_url":"https://api.github.com/users/ophir88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ophir88/subscriptions","organizations_url":"https://api.github.com/users/ophir88/orgs","repos_url":"https://api.github.com/users/ophir88/repos","events_url":"https://api.github.com/users/ophir88/events{/privacy}","received_events_url":"https://api.github.com/users/ophir88/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-12-02T13:34:15Z","updated_at":"2015-12-02T13:34:15Z","html_url":"https://github.com/xorserer/Playground/pull/8#discussion_r46413731","pull_request_url":"https://api.github.com/repos/xorserer/Playground/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/xorserer/Playground/pulls/comments/46413731"},"html":{"href":"https://github.com/xorserer/Playground/pull/8#discussion_r46413731"},"pull_request":{"href":"https://api.github.com/repos/xorserer/Playground/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/xorserer/Playground/pulls/8","id":51641197,"html_url":"https://github.com/xorserer/Playground/pull/8","diff_url":"https://github.com/xorserer/Playground/pull/8.diff","patch_url":"https://github.com/xorserer/Playground/pull/8.patch","issue_url":"https://api.github.com/repos/xorserer/Playground/issues/8","number":8,"state":"open","locked":false,"title":"tone-mapper","user":{"login":"ophir88","id":6900539,"avatar_url":"https://avatars.githubusercontent.com/u/6900539?v=3","gravatar_id":"","url":"https://api.github.com/users/ophir88","html_url":"https://github.com/ophir88","followers_url":"https://api.github.com/users/ophir88/followers","following_url":"https://api.github.com/users/ophir88/following{/other_user}","gists_url":"https://api.github.com/users/ophir88/gists{/gist_id}","starred_url":"https://api.github.com/users/ophir88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ophir88/subscriptions","organizations_url":"https://api.github.com/users/ophir88/orgs","repos_url":"https://api.github.com/users/ophir88/repos","events_url":"https://api.github.com/users/ophir88/events{/privacy}","received_events_url":"https://api.github.com/users/ophir88/received_events","type":"User","site_admin":false},"body":"ready for round 1","created_at":"2015-11-24T10:29:20Z","updated_at":"2015-12-02T13:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df655f3fed013b2fcd55fab8481b0b8e1a7cfe5f","assignee":{"login":"xorserer","id":5460245,"avatar_url":"https://avatars.githubusercontent.com/u/5460245?v=3","gravatar_id":"","url":"https://api.github.com/users/xorserer","html_url":"https://github.com/xorserer","followers_url":"https://api.github.com/users/xorserer/followers","following_url":"https://api.github.com/users/xorserer/following{/other_user}","gists_url":"https://api.github.com/users/xorserer/gists{/gist_id}","starred_url":"https://api.github.com/users/xorserer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorserer/subscriptions","organizations_url":"https://api.github.com/users/xorserer/orgs","repos_url":"https://api.github.com/users/xorserer/repos","events_url":"https://api.github.com/users/xorserer/events{/privacy}","received_events_url":"https://api.github.com/users/xorserer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/xorserer/Playground/pulls/8/commits","review_comments_url":"https://api.github.com/repos/xorserer/Playground/pulls/8/comments","review_comment_url":"https://api.github.com/repos/xorserer/Playground/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xorserer/Playground/issues/8/comments","statuses_url":"https://api.github.com/repos/xorserer/Playground/statuses/ec26005d1cf628d6b37b5cd77054715b5ac80b2d","head":{"label":"ophir88:PR1","ref":"PR1","sha":"ec26005d1cf628d6b37b5cd77054715b5ac80b2d","user":{"login":"ophir88","id":6900539,"avatar_url":"https://avatars.githubusercontent.com/u/6900539?v=3","gravatar_id":"","url":"https://api.github.com/users/ophir88","html_url":"https://github.com/ophir88","followers_url":"https://api.github.com/users/ophir88/followers","following_url":"https://api.github.com/users/ophir88/following{/other_user}","gists_url":"https://api.github.com/users/ophir88/gists{/gist_id}","starred_url":"https://api.github.com/users/ophir88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ophir88/subscriptions","organizations_url":"https://api.github.com/users/ophir88/orgs","repos_url":"https://api.github.com/users/ophir88/repos","events_url":"https://api.github.com/users/ophir88/events{/privacy}","received_events_url":"https://api.github.com/users/ophir88/received_events","type":"User","site_admin":false},"repo":{"id":44055734,"name":"Playground","full_name":"ophir88/Playground","owner":{"login":"ophir88","id":6900539,"avatar_url":"https://avatars.githubusercontent.com/u/6900539?v=3","gravatar_id":"","url":"https://api.github.com/users/ophir88","html_url":"https://github.com/ophir88","followers_url":"https://api.github.com/users/ophir88/followers","following_url":"https://api.github.com/users/ophir88/following{/other_user}","gists_url":"https://api.github.com/users/ophir88/gists{/gist_id}","starred_url":"https://api.github.com/users/ophir88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ophir88/subscriptions","organizations_url":"https://api.github.com/users/ophir88/orgs","repos_url":"https://api.github.com/users/ophir88/repos","events_url":"https://api.github.com/users/ophir88/events{/privacy}","received_events_url":"https://api.github.com/users/ophir88/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ophir88/Playground","description":"Repository for learning about GitHub & testing new stuff","fork":true,"url":"https://api.github.com/repos/ophir88/Playground","forks_url":"https://api.github.com/repos/ophir88/Playground/forks","keys_url":"https://api.github.com/repos/ophir88/Playground/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ophir88/Playground/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ophir88/Playground/teams","hooks_url":"https://api.github.com/repos/ophir88/Playground/hooks","issue_events_url":"https://api.github.com/repos/ophir88/Playground/issues/events{/number}","events_url":"https://api.github.com/repos/ophir88/Playground/events","assignees_url":"https://api.github.com/repos/ophir88/Playground/assignees{/user}","branches_url":"https://api.github.com/repos/ophir88/Playground/branches{/branch}","tags_url":"https://api.github.com/repos/ophir88/Playground/tags","blobs_url":"https://api.github.com/repos/ophir88/Playground/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ophir88/Playground/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ophir88/Playground/git/refs{/sha}","trees_url":"https://api.github.com/repos/ophir88/Playground/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ophir88/Playground/statuses/{sha}","languages_url":"https://api.github.com/repos/ophir88/Playground/languages","stargazers_url":"https://api.github.com/repos/ophir88/Playground/stargazers","contributors_url":"https://api.github.com/repos/ophir88/Playground/contributors","subscribers_url":"https://api.github.com/repos/ophir88/Playground/subscribers","subscription_url":"https://api.github.com/repos/ophir88/Playground/subscription","commits_url":"https://api.github.com/repos/ophir88/Playground/commits{/sha}","git_commits_url":"https://api.github.com/repos/ophir88/Playground/git/commits{/sha}","comments_url":"https://api.github.com/repos/ophir88/Playground/comments{/number}","issue_comment_url":"https://api.github.com/repos/ophir88/Playground/issues/comments{/number}","contents_url":"https://api.github.com/repos/ophir88/Playground/contents/{+path}","compare_url":"https://api.github.com/repos/ophir88/Playground/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ophir88/Playground/merges","archive_url":"https://api.github.com/repos/ophir88/Playground/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ophir88/Playground/downloads","issues_url":"https://api.github.com/repos/ophir88/Playground/issues{/number}","pulls_url":"https://api.github.com/repos/ophir88/Playground/pulls{/number}","milestones_url":"https://api.github.com/repos/ophir88/Playground/milestones{/number}","notifications_url":"https://api.github.com/repos/ophir88/Playground/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ophir88/Playground/labels{/name}","releases_url":"https://api.github.com/repos/ophir88/Playground/releases{/id}","created_at":"2015-10-11T14:39:48Z","updated_at":"2015-10-11T14:39:50Z","pushed_at":"2015-12-02T08:48:59Z","git_url":"git://github.com/ophir88/Playground.git","ssh_url":"git@github.com:ophir88/Playground.git","clone_url":"https://github.com/ophir88/Playground.git","svn_url":"https://github.com/ophir88/Playground","homepage":null,"size":221,"stargazers_count":0,"watchers_count":0,"language":"Objective-C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"xorserer:develop","ref":"develop","sha":"89e4293cefda252e54405a98fa6676e2daba4c31","user":{"login":"xorserer","id":5460245,"avatar_url":"https://avatars.githubusercontent.com/u/5460245?v=3","gravatar_id":"","url":"https://api.github.com/users/xorserer","html_url":"https://github.com/xorserer","followers_url":"https://api.github.com/users/xorserer/followers","following_url":"https://api.github.com/users/xorserer/following{/other_user}","gists_url":"https://api.github.com/users/xorserer/gists{/gist_id}","starred_url":"https://api.github.com/users/xorserer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorserer/subscriptions","organizations_url":"https://api.github.com/users/xorserer/orgs","repos_url":"https://api.github.com/users/xorserer/repos","events_url":"https://api.github.com/users/xorserer/events{/privacy}","received_events_url":"https://api.github.com/users/xorserer/received_events","type":"User","site_admin":false},"repo":{"id":33937810,"name":"Playground","full_name":"xorserer/Playground","owner":{"login":"xorserer","id":5460245,"avatar_url":"https://avatars.githubusercontent.com/u/5460245?v=3","gravatar_id":"","url":"https://api.github.com/users/xorserer","html_url":"https://github.com/xorserer","followers_url":"https://api.github.com/users/xorserer/followers","following_url":"https://api.github.com/users/xorserer/following{/other_user}","gists_url":"https://api.github.com/users/xorserer/gists{/gist_id}","starred_url":"https://api.github.com/users/xorserer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorserer/subscriptions","organizations_url":"https://api.github.com/users/xorserer/orgs","repos_url":"https://api.github.com/users/xorserer/repos","events_url":"https://api.github.com/users/xorserer/events{/privacy}","received_events_url":"https://api.github.com/users/xorserer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xorserer/Playground","description":"Repository for learning about GitHub & testing new stuff","fork":false,"url":"https://api.github.com/repos/xorserer/Playground","forks_url":"https://api.github.com/repos/xorserer/Playground/forks","keys_url":"https://api.github.com/repos/xorserer/Playground/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xorserer/Playground/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xorserer/Playground/teams","hooks_url":"https://api.github.com/repos/xorserer/Playground/hooks","issue_events_url":"https://api.github.com/repos/xorserer/Playground/issues/events{/number}","events_url":"https://api.github.com/repos/xorserer/Playground/events","assignees_url":"https://api.github.com/repos/xorserer/Playground/assignees{/user}","branches_url":"https://api.github.com/repos/xorserer/Playground/branches{/branch}","tags_url":"https://api.github.com/repos/xorserer/Playground/tags","blobs_url":"https://api.github.com/repos/xorserer/Playground/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xorserer/Playground/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xorserer/Playground/git/refs{/sha}","trees_url":"https://api.github.com/repos/xorserer/Playground/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xorserer/Playground/statuses/{sha}","languages_url":"https://api.github.com/repos/xorserer/Playground/languages","stargazers_url":"https://api.github.com/repos/xorserer/Playground/stargazers","contributors_url":"https://api.github.com/repos/xorserer/Playground/contributors","subscribers_url":"https://api.github.com/repos/xorserer/Playground/subscribers","subscription_url":"https://api.github.com/repos/xorserer/Playground/subscription","commits_url":"https://api.github.com/repos/xorserer/Playground/commits{/sha}","git_commits_url":"https://api.github.com/repos/xorserer/Playground/git/commits{/sha}","comments_url":"https://api.github.com/repos/xorserer/Playground/comments{/number}","issue_comment_url":"https://api.github.com/repos/xorserer/Playground/issues/comments{/number}","contents_url":"https://api.github.com/repos/xorserer/Playground/contents/{+path}","compare_url":"https://api.github.com/repos/xorserer/Playground/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xorserer/Playground/merges","archive_url":"https://api.github.com/repos/xorserer/Playground/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xorserer/Playground/downloads","issues_url":"https://api.github.com/repos/xorserer/Playground/issues{/number}","pulls_url":"https://api.github.com/repos/xorserer/Playground/pulls{/number}","milestones_url":"https://api.github.com/repos/xorserer/Playground/milestones{/number}","notifications_url":"https://api.github.com/repos/xorserer/Playground/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xorserer/Playground/labels{/name}","releases_url":"https://api.github.com/repos/xorserer/Playground/releases{/id}","created_at":"2015-04-14T14:47:53Z","updated_at":"2015-12-02T09:14:31Z","pushed_at":"2015-12-02T09:14:31Z","git_url":"git://github.com/xorserer/Playground.git","ssh_url":"git@github.com:xorserer/Playground.git","clone_url":"https://github.com/xorserer/Playground.git","svn_url":"https://github.com/xorserer/Playground","homepage":null,"size":233,"stargazers_count":0,"watchers_count":0,"language":"Objective-C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/xorserer/Playground/pulls/8"},"html":{"href":"https://github.com/xorserer/Playground/pull/8"},"issue":{"href":"https://api.github.com/repos/xorserer/Playground/issues/8"},"comments":{"href":"https://api.github.com/repos/xorserer/Playground/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/xorserer/Playground/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/xorserer/Playground/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xorserer/Playground/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/xorserer/Playground/statuses/ec26005d1cf628d6b37b5cd77054715b5ac80b2d"}}}}