{"action":"created","comment":{"url":"https://api.github.com/repos/H-I-D/Tank/pulls/comments/71094178","id":71094178,"diff_hunk":"@@ -146,15 +146,41 @@ void drawGround(void)\n \r\n void drawJiki(void)\r\n {\r\n+\tint i = 0;\r\n+\tdouble step;\r\n+\tdouble h = jiki.h;\r\n+\tdouble w = jiki.w;\r\n+\r\n+\tstep = 60.0*PI / 180.0;\r\n+\r\n     glPushMatrix();\r\n     \r\n-    glTranslatef(jiki.x, jiki.y, z);\r\n-    \r\n+\tglTranslatef(jiki.x, jiki.y, 0);\r\n+\tglRotatef(jiki.t, 0.0, 0.0, 1);\r\n     glMaterialfv(GL_FRONT, GL_DIFFUSE, color[GREEN]);\r\n     glMaterialfv(GL_FRONT, GL_AMBIENT, color[BLACK]);\r\n     glMaterialfv(GL_FRONT, GL_SPECULAR, color[WHITE]);\r\n     glMaterialf(GL_FRONT, GL_SHININESS, 50.0);\r\n     \r\n+\tglBegin(GL_QUADS);\r\n+\tglVertex3d(-h / 2.0, -jiki.w / 2.0, 0.5);\r\n+\tglVertex3d(-(jiki.h - 0.5) / 2.0, -(jiki.w - 0.5) / 2.0, 0);\r\n+\tglVertex3d(())\r\n+\tglEnd();\r\n+\r\n+\r\n+\r\n+\r\n+\r\n+\tglBegin(GL_QUADS);\r\n+\tfor (i = 0;i < 6;i++) {\r\n+\t\tglVertex3d(0.5*cos(step*(double)i), 0.5*sin(step*(double)i), 0);\r\n+\t\tglVertex3d(0.5*cos(step*(double)(i + 1)), 0.5*sin(step*(double)(i + 1)), 0);\r\n+\t\tglVertex3d(0.5*cos(step*(double)(i + 1)), 0.5*sin(step*(double)(i + 1)), 0.5);\r\n+\t\tglVertex3d(0.5*cos(step*(double)i), 0.5*sin(step*(double)i), 0.5);\r\n+\t}\r\n+\tglEnd();\r\n+\r","path":"draw.c","position":40,"original_position":40,"commit_id":"5c90a038b4074bc275259c38d06bcab84d0f8838","original_commit_id":"5c90a038b4074bc275259c38d06bcab84d0f8838","user":{"login":"H-I-D","id":12569381,"avatar_url":"https://avatars.githubusercontent.com/u/12569381?v=3","gravatar_id":"","url":"https://api.github.com/users/H-I-D","html_url":"https://github.com/H-I-D","followers_url":"https://api.github.com/users/H-I-D/followers","following_url":"https://api.github.com/users/H-I-D/following{/other_user}","gists_url":"https://api.github.com/users/H-I-D/gists{/gist_id}","starred_url":"https://api.github.com/users/H-I-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H-I-D/subscriptions","organizations_url":"https://api.github.com/users/H-I-D/orgs","repos_url":"https://api.github.com/users/H-I-D/repos","events_url":"https://api.github.com/users/H-I-D/events{/privacy}","received_events_url":"https://api.github.com/users/H-I-D/received_events","type":"User","site_admin":false},"body":"コレバグでないの？","created_at":"2016-07-18T01:26:36Z","updated_at":"2016-07-18T01:26:36Z","html_url":"https://github.com/H-I-D/Tank/pull/11#discussion_r71094178","pull_request_url":"https://api.github.com/repos/H-I-D/Tank/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/H-I-D/Tank/pulls/comments/71094178"},"html":{"href":"https://github.com/H-I-D/Tank/pull/11#discussion_r71094178"},"pull_request":{"href":"https://api.github.com/repos/H-I-D/Tank/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/H-I-D/Tank/pulls/11","id":77752270,"html_url":"https://github.com/H-I-D/Tank/pull/11","diff_url":"https://github.com/H-I-D/Tank/pull/11.diff","patch_url":"https://github.com/H-I-D/Tank/pull/11.patch","issue_url":"https://api.github.com/repos/H-I-D/Tank/issues/11","number":11,"state":"open","locked":false,"title":"[WIP] design tank","user":{"login":"tsucchee","id":20159277,"avatar_url":"https://avatars.githubusercontent.com/u/20159277?v=3","gravatar_id":"","url":"https://api.github.com/users/tsucchee","html_url":"https://github.com/tsucchee","followers_url":"https://api.github.com/users/tsucchee/followers","following_url":"https://api.github.com/users/tsucchee/following{/other_user}","gists_url":"https://api.github.com/users/tsucchee/gists{/gist_id}","starred_url":"https://api.github.com/users/tsucchee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsucchee/subscriptions","organizations_url":"https://api.github.com/users/tsucchee/orgs","repos_url":"https://api.github.com/users/tsucchee/repos","events_url":"https://api.github.com/users/tsucchee/events{/privacy}","received_events_url":"https://api.github.com/users/tsucchee/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-18T01:24:20Z","updated_at":"2016-07-18T01:26:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdbcabba6fd727e7e61a4e3c9b47de276b9fbba0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/H-I-D/Tank/pulls/11/commits","review_comments_url":"https://api.github.com/repos/H-I-D/Tank/pulls/11/comments","review_comment_url":"https://api.github.com/repos/H-I-D/Tank/pulls/comments{/number}","comments_url":"https://api.github.com/repos/H-I-D/Tank/issues/11/comments","statuses_url":"https://api.github.com/repos/H-I-D/Tank/statuses/5c90a038b4074bc275259c38d06bcab84d0f8838","head":{"label":"H-I-D:design_tank","ref":"design_tank","sha":"5c90a038b4074bc275259c38d06bcab84d0f8838","user":{"login":"H-I-D","id":12569381,"avatar_url":"https://avatars.githubusercontent.com/u/12569381?v=3","gravatar_id":"","url":"https://api.github.com/users/H-I-D","html_url":"https://github.com/H-I-D","followers_url":"https://api.github.com/users/H-I-D/followers","following_url":"https://api.github.com/users/H-I-D/following{/other_user}","gists_url":"https://api.github.com/users/H-I-D/gists{/gist_id}","starred_url":"https://api.github.com/users/H-I-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H-I-D/subscriptions","organizations_url":"https://api.github.com/users/H-I-D/orgs","repos_url":"https://api.github.com/users/H-I-D/repos","events_url":"https://api.github.com/users/H-I-D/events{/privacy}","received_events_url":"https://api.github.com/users/H-I-D/received_events","type":"User","site_admin":false},"repo":{"id":62021231,"name":"Tank","full_name":"H-I-D/Tank","owner":{"login":"H-I-D","id":12569381,"avatar_url":"https://avatars.githubusercontent.com/u/12569381?v=3","gravatar_id":"","url":"https://api.github.com/users/H-I-D","html_url":"https://github.com/H-I-D","followers_url":"https://api.github.com/users/H-I-D/followers","following_url":"https://api.github.com/users/H-I-D/following{/other_user}","gists_url":"https://api.github.com/users/H-I-D/gists{/gist_id}","starred_url":"https://api.github.com/users/H-I-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H-I-D/subscriptions","organizations_url":"https://api.github.com/users/H-I-D/orgs","repos_url":"https://api.github.com/users/H-I-D/repos","events_url":"https://api.github.com/users/H-I-D/events{/privacy}","received_events_url":"https://api.github.com/users/H-I-D/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/H-I-D/Tank","description":"Tank Game inspired by Wii Play","fork":false,"url":"https://api.github.com/repos/H-I-D/Tank","forks_url":"https://api.github.com/repos/H-I-D/Tank/forks","keys_url":"https://api.github.com/repos/H-I-D/Tank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/H-I-D/Tank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/H-I-D/Tank/teams","hooks_url":"https://api.github.com/repos/H-I-D/Tank/hooks","issue_events_url":"https://api.github.com/repos/H-I-D/Tank/issues/events{/number}","events_url":"https://api.github.com/repos/H-I-D/Tank/events","assignees_url":"https://api.github.com/repos/H-I-D/Tank/assignees{/user}","branches_url":"https://api.github.com/repos/H-I-D/Tank/branches{/branch}","tags_url":"https://api.github.com/repos/H-I-D/Tank/tags","blobs_url":"https://api.github.com/repos/H-I-D/Tank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/H-I-D/Tank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/H-I-D/Tank/git/refs{/sha}","trees_url":"https://api.github.com/repos/H-I-D/Tank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/H-I-D/Tank/statuses/{sha}","languages_url":"https://api.github.com/repos/H-I-D/Tank/languages","stargazers_url":"https://api.github.com/repos/H-I-D/Tank/stargazers","contributors_url":"https://api.github.com/repos/H-I-D/Tank/contributors","subscribers_url":"https://api.github.com/repos/H-I-D/Tank/subscribers","subscription_url":"https://api.github.com/repos/H-I-D/Tank/subscription","commits_url":"https://api.github.com/repos/H-I-D/Tank/commits{/sha}","git_commits_url":"https://api.github.com/repos/H-I-D/Tank/git/commits{/sha}","comments_url":"https://api.github.com/repos/H-I-D/Tank/comments{/number}","issue_comment_url":"https://api.github.com/repos/H-I-D/Tank/issues/comments{/number}","contents_url":"https://api.github.com/repos/H-I-D/Tank/contents/{+path}","compare_url":"https://api.github.com/repos/H-I-D/Tank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/H-I-D/Tank/merges","archive_url":"https://api.github.com/repos/H-I-D/Tank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/H-I-D/Tank/downloads","issues_url":"https://api.github.com/repos/H-I-D/Tank/issues{/number}","pulls_url":"https://api.github.com/repos/H-I-D/Tank/pulls{/number}","milestones_url":"https://api.github.com/repos/H-I-D/Tank/milestones{/number}","notifications_url":"https://api.github.com/repos/H-I-D/Tank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/H-I-D/Tank/labels{/name}","releases_url":"https://api.github.com/repos/H-I-D/Tank/releases{/id}","deployments_url":"https://api.github.com/repos/H-I-D/Tank/deployments","created_at":"2016-06-27T02:57:46Z","updated_at":"2016-07-07T03:21:24Z","pushed_at":"2016-07-18T01:24:20Z","git_url":"git://github.com/H-I-D/Tank.git","ssh_url":"git@github.com:H-I-D/Tank.git","clone_url":"https://github.com/H-I-D/Tank.git","svn_url":"https://github.com/H-I-D/Tank","homepage":"","size":66,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"H-I-D:master","ref":"master","sha":"dedc41ef9c6e22f926278b079796cf1556a0a650","user":{"login":"H-I-D","id":12569381,"avatar_url":"https://avatars.githubusercontent.com/u/12569381?v=3","gravatar_id":"","url":"https://api.github.com/users/H-I-D","html_url":"https://github.com/H-I-D","followers_url":"https://api.github.com/users/H-I-D/followers","following_url":"https://api.github.com/users/H-I-D/following{/other_user}","gists_url":"https://api.github.com/users/H-I-D/gists{/gist_id}","starred_url":"https://api.github.com/users/H-I-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H-I-D/subscriptions","organizations_url":"https://api.github.com/users/H-I-D/orgs","repos_url":"https://api.github.com/users/H-I-D/repos","events_url":"https://api.github.com/users/H-I-D/events{/privacy}","received_events_url":"https://api.github.com/users/H-I-D/received_events","type":"User","site_admin":false},"repo":{"id":62021231,"name":"Tank","full_name":"H-I-D/Tank","owner":{"login":"H-I-D","id":12569381,"avatar_url":"https://avatars.githubusercontent.com/u/12569381?v=3","gravatar_id":"","url":"https://api.github.com/users/H-I-D","html_url":"https://github.com/H-I-D","followers_url":"https://api.github.com/users/H-I-D/followers","following_url":"https://api.github.com/users/H-I-D/following{/other_user}","gists_url":"https://api.github.com/users/H-I-D/gists{/gist_id}","starred_url":"https://api.github.com/users/H-I-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H-I-D/subscriptions","organizations_url":"https://api.github.com/users/H-I-D/orgs","repos_url":"https://api.github.com/users/H-I-D/repos","events_url":"https://api.github.com/users/H-I-D/events{/privacy}","received_events_url":"https://api.github.com/users/H-I-D/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/H-I-D/Tank","description":"Tank Game inspired by Wii Play","fork":false,"url":"https://api.github.com/repos/H-I-D/Tank","forks_url":"https://api.github.com/repos/H-I-D/Tank/forks","keys_url":"https://api.github.com/repos/H-I-D/Tank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/H-I-D/Tank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/H-I-D/Tank/teams","hooks_url":"https://api.github.com/repos/H-I-D/Tank/hooks","issue_events_url":"https://api.github.com/repos/H-I-D/Tank/issues/events{/number}","events_url":"https://api.github.com/repos/H-I-D/Tank/events","assignees_url":"https://api.github.com/repos/H-I-D/Tank/assignees{/user}","branches_url":"https://api.github.com/repos/H-I-D/Tank/branches{/branch}","tags_url":"https://api.github.com/repos/H-I-D/Tank/tags","blobs_url":"https://api.github.com/repos/H-I-D/Tank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/H-I-D/Tank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/H-I-D/Tank/git/refs{/sha}","trees_url":"https://api.github.com/repos/H-I-D/Tank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/H-I-D/Tank/statuses/{sha}","languages_url":"https://api.github.com/repos/H-I-D/Tank/languages","stargazers_url":"https://api.github.com/repos/H-I-D/Tank/stargazers","contributors_url":"https://api.github.com/repos/H-I-D/Tank/contributors","subscribers_url":"https://api.github.com/repos/H-I-D/Tank/subscribers","subscription_url":"https://api.github.com/repos/H-I-D/Tank/subscription","commits_url":"https://api.github.com/repos/H-I-D/Tank/commits{/sha}","git_commits_url":"https://api.github.com/repos/H-I-D/Tank/git/commits{/sha}","comments_url":"https://api.github.com/repos/H-I-D/Tank/comments{/number}","issue_comment_url":"https://api.github.com/repos/H-I-D/Tank/issues/comments{/number}","contents_url":"https://api.github.com/repos/H-I-D/Tank/contents/{+path}","compare_url":"https://api.github.com/repos/H-I-D/Tank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/H-I-D/Tank/merges","archive_url":"https://api.github.com/repos/H-I-D/Tank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/H-I-D/Tank/downloads","issues_url":"https://api.github.com/repos/H-I-D/Tank/issues{/number}","pulls_url":"https://api.github.com/repos/H-I-D/Tank/pulls{/number}","milestones_url":"https://api.github.com/repos/H-I-D/Tank/milestones{/number}","notifications_url":"https://api.github.com/repos/H-I-D/Tank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/H-I-D/Tank/labels{/name}","releases_url":"https://api.github.com/repos/H-I-D/Tank/releases{/id}","deployments_url":"https://api.github.com/repos/H-I-D/Tank/deployments","created_at":"2016-06-27T02:57:46Z","updated_at":"2016-07-07T03:21:24Z","pushed_at":"2016-07-18T01:24:20Z","git_url":"git://github.com/H-I-D/Tank.git","ssh_url":"git@github.com:H-I-D/Tank.git","clone_url":"https://github.com/H-I-D/Tank.git","svn_url":"https://github.com/H-I-D/Tank","homepage":"","size":66,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/H-I-D/Tank/pulls/11"},"html":{"href":"https://github.com/H-I-D/Tank/pull/11"},"issue":{"href":"https://api.github.com/repos/H-I-D/Tank/issues/11"},"comments":{"href":"https://api.github.com/repos/H-I-D/Tank/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/H-I-D/Tank/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/H-I-D/Tank/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/H-I-D/Tank/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/H-I-D/Tank/statuses/5c90a038b4074bc275259c38d06bcab84d0f8838"}}}}
{"actor":{"display_login":"H-I-D"}}