{"action":"created","comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/comments/32589695","id":32589695,"diff_hunk":"@@ -29,6 +29,8 @@ THE SOFTWARE.\n #include \"base/CCDirector.h\"\n #include \"base/CCEventDispatcher.h\"\n \n+#include \"2d/CCScene.h\"","path":"cocos/platform/CCGLView.cpp","position":4,"original_position":4,"commit_id":"200bd22f9709a6c8a5b7bc64f200d16c4fb769f1","original_commit_id":"200bd22f9709a6c8a5b7bc64f200d16c4fb769f1","user":{"login":"andyque","id":785541,"avatar_url":"https://avatars.githubusercontent.com/u/785541?v=3","gravatar_id":"","url":"https://api.github.com/users/andyque","html_url":"https://github.com/andyque","followers_url":"https://api.github.com/users/andyque/followers","following_url":"https://api.github.com/users/andyque/following{/other_user}","gists_url":"https://api.github.com/users/andyque/gists{/gist_id}","starred_url":"https://api.github.com/users/andyque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyque/subscriptions","organizations_url":"https://api.github.com/users/andyque/orgs","repos_url":"https://api.github.com/users/andyque/repos","events_url":"https://api.github.com/users/andyque/events{/privacy}","received_events_url":"https://api.github.com/users/andyque/received_events","type":"User","site_admin":false},"body":"GLView is a low level concepts and Scene is much high concepts.  The low level class shouldn't rely on the top. ","created_at":"2015-06-17T01:49:28Z","updated_at":"2015-06-17T01:49:28Z","html_url":"https://github.com/cocos2d/cocos2d-x/pull/9530#discussion_r32589695","pull_request_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530","_links":{"self":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/comments/32589695"},"html":{"href":"https://github.com/cocos2d/cocos2d-x/pull/9530#discussion_r32589695"},"pull_request":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530"}}},"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530","id":26183235,"html_url":"https://github.com/cocos2d/cocos2d-x/pull/9530","diff_url":"https://github.com/cocos2d/cocos2d-x/pull/9530.diff","patch_url":"https://github.com/cocos2d/cocos2d-x/pull/9530.patch","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9530","number":9530,"state":"open","locked":false,"title":"Added an option to create resizable windows on desktop.","user":{"login":"Neurochrom","id":6443230,"avatar_url":"https://avatars.githubusercontent.com/u/6443230?v=3","gravatar_id":"","url":"https://api.github.com/users/Neurochrom","html_url":"https://github.com/Neurochrom","followers_url":"https://api.github.com/users/Neurochrom/followers","following_url":"https://api.github.com/users/Neurochrom/following{/other_user}","gists_url":"https://api.github.com/users/Neurochrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Neurochrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neurochrom/subscriptions","organizations_url":"https://api.github.com/users/Neurochrom/orgs","repos_url":"https://api.github.com/users/Neurochrom/repos","events_url":"https://api.github.com/users/Neurochrom/events{/privacy}","received_events_url":"https://api.github.com/users/Neurochrom/received_events","type":"User","site_admin":false},"body":"You can also add callbacks that inform the application that the window was resized using GLView::addResizeCalback.\r\nA dummy parameter was added to createWithRect in mobile mobile versions to keep them in sync.\r\nTested on Windows and iOS.\r\nThis is my first official contribution to this project - hope I did not break to many guidelines ;)","created_at":"2014-12-16T21:55:58Z","updated_at":"2015-06-17T01:49:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3b05b89662b84e57c5e011b49ff24981843abca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530/commits","review_comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530/comments","review_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9530/comments","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-x/statuses/200bd22f9709a6c8a5b7bc64f200d16c4fb769f1","head":{"label":"Neurochrom:v3_resizable_windows","ref":"v3_resizable_windows","sha":"200bd22f9709a6c8a5b7bc64f200d16c4fb769f1","user":{"login":"Neurochrom","id":6443230,"avatar_url":"https://avatars.githubusercontent.com/u/6443230?v=3","gravatar_id":"","url":"https://api.github.com/users/Neurochrom","html_url":"https://github.com/Neurochrom","followers_url":"https://api.github.com/users/Neurochrom/followers","following_url":"https://api.github.com/users/Neurochrom/following{/other_user}","gists_url":"https://api.github.com/users/Neurochrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Neurochrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neurochrom/subscriptions","organizations_url":"https://api.github.com/users/Neurochrom/orgs","repos_url":"https://api.github.com/users/Neurochrom/repos","events_url":"https://api.github.com/users/Neurochrom/events{/privacy}","received_events_url":"https://api.github.com/users/Neurochrom/received_events","type":"User","site_admin":false},"repo":{"id":21089921,"name":"cocos2d-x","full_name":"Neurochrom/cocos2d-x","owner":{"login":"Neurochrom","id":6443230,"avatar_url":"https://avatars.githubusercontent.com/u/6443230?v=3","gravatar_id":"","url":"https://api.github.com/users/Neurochrom","html_url":"https://github.com/Neurochrom","followers_url":"https://api.github.com/users/Neurochrom/followers","following_url":"https://api.github.com/users/Neurochrom/following{/other_user}","gists_url":"https://api.github.com/users/Neurochrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Neurochrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neurochrom/subscriptions","organizations_url":"https://api.github.com/users/Neurochrom/orgs","repos_url":"https://api.github.com/users/Neurochrom/repos","events_url":"https://api.github.com/users/Neurochrom/events{/privacy}","received_events_url":"https://api.github.com/users/Neurochrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Neurochrom/cocos2d-x","description":"cocos2d-x for C++","fork":true,"url":"https://api.github.com/repos/Neurochrom/cocos2d-x","forks_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/forks","keys_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/teams","hooks_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/hooks","issue_events_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/issues/events{/number}","events_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/events","assignees_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/assignees{/user}","branches_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/branches{/branch}","tags_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/tags","blobs_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/statuses/{sha}","languages_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/languages","stargazers_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/stargazers","contributors_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/contributors","subscribers_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/subscribers","subscription_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/subscription","commits_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/contents/{+path}","compare_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/merges","archive_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/downloads","issues_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/issues{/number}","pulls_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/pulls{/number}","milestones_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/milestones{/number}","notifications_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/labels{/name}","releases_url":"https://api.github.com/repos/Neurochrom/cocos2d-x/releases{/id}","created_at":"2014-06-22T09:19:43Z","updated_at":"2014-12-16T21:08:31Z","pushed_at":"2015-06-04T21:50:19Z","git_url":"git://github.com/Neurochrom/cocos2d-x.git","ssh_url":"git@github.com:Neurochrom/cocos2d-x.git","clone_url":"https://github.com/Neurochrom/cocos2d-x.git","svn_url":"https://github.com/Neurochrom/cocos2d-x","homepage":"http://www.cocos2d-x.org","size":149760,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"v3"}},"base":{"label":"cocos2d:v3","ref":"v3","sha":"49c0b44252c1d0401278daaa70e0b1c50720d8ea","user":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"repo":{"id":1093228,"name":"cocos2d-x","full_name":"cocos2d/cocos2d-x","owner":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cocos2d/cocos2d-x","description":"cocos2d-x for C++","fork":false,"url":"https://api.github.com/repos/cocos2d/cocos2d-x","forks_url":"https://api.github.com/repos/cocos2d/cocos2d-x/forks","keys_url":"https://api.github.com/repos/cocos2d/cocos2d-x/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos2d/cocos2d-x/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos2d/cocos2d-x/teams","hooks_url":"https://api.github.com/repos/cocos2d/cocos2d-x/hooks","issue_events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/events{/number}","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/events","assignees_url":"https://api.github.com/repos/cocos2d/cocos2d-x/assignees{/user}","branches_url":"https://api.github.com/repos/cocos2d/cocos2d-x/branches{/branch}","tags_url":"https://api.github.com/repos/cocos2d/cocos2d-x/tags","blobs_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-x/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos2d/cocos2d-x/languages","stargazers_url":"https://api.github.com/repos/cocos2d/cocos2d-x/stargazers","contributors_url":"https://api.github.com/repos/cocos2d/cocos2d-x/contributors","subscribers_url":"https://api.github.com/repos/cocos2d/cocos2d-x/subscribers","subscription_url":"https://api.github.com/repos/cocos2d/cocos2d-x/subscription","commits_url":"https://api.github.com/repos/cocos2d/cocos2d-x/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos2d/cocos2d-x/contents/{+path}","compare_url":"https://api.github.com/repos/cocos2d/cocos2d-x/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos2d/cocos2d-x/merges","archive_url":"https://api.github.com/repos/cocos2d/cocos2d-x/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos2d/cocos2d-x/downloads","issues_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues{/number}","pulls_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos2d/cocos2d-x/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels{/name}","releases_url":"https://api.github.com/repos/cocos2d/cocos2d-x/releases{/id}","created_at":"2010-11-18T23:17:00Z","updated_at":"2015-06-17T01:37:14Z","pushed_at":"2015-06-17T01:34:48Z","git_url":"git://github.com/cocos2d/cocos2d-x.git","ssh_url":"git@github.com:cocos2d/cocos2d-x.git","clone_url":"https://github.com/cocos2d/cocos2d-x.git","svn_url":"https://github.com/cocos2d/cocos2d-x","homepage":"http://www.cocos2d-x.org","size":1490481,"stargazers_count":6054,"watchers_count":6054,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4367,"mirror_url":null,"open_issues_count":699,"forks":4367,"open_issues":699,"watchers":6054,"default_branch":"v3"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530"},"html":{"href":"https://github.com/cocos2d/cocos2d-x/pull/9530"},"issue":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9530"},"comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9530/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/9530/commits"},"statuses":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/statuses/200bd22f9709a6c8a5b7bc64f200d16c4fb769f1"}}}}