{"action":"created","issue":{"url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/56","repository_url":"https://api.github.com/repos/Nagarei/DxLibEx","labels_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/56/comments","events_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/56/events","html_url":"https://github.com/Nagarei/DxLibEx/issues/56","id":144825823,"number":56,"title":"アニメーションを管理するutilityの作成","user":{"login":"Nagarei","id":15170167,"avatar_url":"https://avatars.githubusercontent.com/u/15170167?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagarei","html_url":"https://github.com/Nagarei","followers_url":"https://api.github.com/users/Nagarei/followers","following_url":"https://api.github.com/users/Nagarei/following{/other_user}","gists_url":"https://api.github.com/users/Nagarei/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagarei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagarei/subscriptions","organizations_url":"https://api.github.com/users/Nagarei/orgs","repos_url":"https://api.github.com/users/Nagarei/repos","events_url":"https://api.github.com/users/Nagarei/events{/privacy}","received_events_url":"https://api.github.com/users/Nagarei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Nagarei/DxLibEx/labels/discussion","name":"discussion","color":"eb6101"},{"url":"https://api.github.com/repos/Nagarei/DxLibEx/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-03-31T08:30:39Z","updated_at":"2016-04-06T12:43:36Z","closed_at":null,"body":"アニメーションする画像を一つの画像とみなすラッパークラスの提案\r\n\r\n仮実装:  8437349\r\n問題点\r\n\r\n- const関数内で画像を切り替えるのは良いのか\r\n- 名前はこれで良いのか。長すぎないか。一般的すぎないか。(特にtime系)\r\n\r\n改善点\r\n- デフォルトコンストラクタと、コンストラクト後に設定する関数の実装\r\n\r\n使用イメージ（仮実装での使用方法)\r\n```cpp\r\n//実行結果はDxLibのLoadDivGraphサンプルと同じ(に見える)\r\n\r\nint WINAPI WinMain(HINSTANCE, HINSTANCE,LPSTR, int)\r\n{\r\n\tChangeWindowMode(TRUE);\r\n\tif (DxLib_Init() == -1)        // ＤＸライブラリ初期化処理\r\n\t{\r\n\t\treturn -1;        // エラーが起きたら直ちに終了\r\n\t}\r\n\tSetDrawScreen(DX_SCREEN_BACK);\r\n\r\n\tusing cps = dxle::time::timing_maker::count_per_second;\r\n\tusing counter = dxle::time::counter;\r\n\tdxle::animation_graph graph(counter{ cps{ 10 } }, dxle::LoadDivGraph(\"test2.bmp\", 10, { 4, 3 }, { 48, 56 }));\r\n\tgraph.start();\r\n\r\n\twhile (ProcessMessage() == 0)\r\n\t{\r\n\t\t// グラフィックの描画(自動的にアニメーションされる)\r\n\t\tgraph.DrawGraph(0, 0, FALSE);\r\n\r\n\t\tScreenFlip();\r\n\t\tClearDrawScreen();\r\n\t}\r\n\r\n\tDxLib_End();            // ＤＸライブラリ使用の終了処理\r\n\r\n\treturn 0;            // ソフトの終了\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/comments/206352853","html_url":"https://github.com/Nagarei/DxLibEx/issues/56#issuecomment-206352853","issue_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/56","id":206352853,"user":{"login":"Nagarei","id":15170167,"avatar_url":"https://avatars.githubusercontent.com/u/15170167?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagarei","html_url":"https://github.com/Nagarei","followers_url":"https://api.github.com/users/Nagarei/followers","following_url":"https://api.github.com/users/Nagarei/following{/other_user}","gists_url":"https://api.github.com/users/Nagarei/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagarei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagarei/subscriptions","organizations_url":"https://api.github.com/users/Nagarei/orgs","repos_url":"https://api.github.com/users/Nagarei/repos","events_url":"https://api.github.com/users/Nagarei/events{/privacy}","received_events_url":"https://api.github.com/users/Nagarei/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:43:36Z","updated_at":"2016-04-06T12:43:36Z","body":"> 配列への参照を受けるmake関数\r\n\r\n配列への参照を許可していないのは`std::array`の動作と合わせる為にあえてですが、許可したほうが良いですかね？\r\n\r\nとりあえず、make関数を通せばVS2013でも生の配列のreference wrapperが通るように細工をできると思うのでそれもやってみます。"}}