{"action":"created","issue":{"url":"https://api.github.com/repos/englercj/resource-loader/issues/36","labels_url":"https://api.github.com/repos/englercj/resource-loader/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/englercj/resource-loader/issues/36/comments","events_url":"https://api.github.com/repos/englercj/resource-loader/issues/36/events","html_url":"https://github.com/englercj/resource-loader/pull/36","id":121890505,"number":36,"title":"Add extra field in Resource for middleware","user":{"login":"ivanpopelyshev","id":695831,"avatar_url":"https://avatars.githubusercontent.com/u/695831?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanpopelyshev","html_url":"https://github.com/ivanpopelyshev","followers_url":"https://api.github.com/users/ivanpopelyshev/followers","following_url":"https://api.github.com/users/ivanpopelyshev/following{/other_user}","gists_url":"https://api.github.com/users/ivanpopelyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanpopelyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanpopelyshev/subscriptions","organizations_url":"https://api.github.com/users/ivanpopelyshev/orgs","repos_url":"https://api.github.com/users/ivanpopelyshev/repos","events_url":"https://api.github.com/users/ivanpopelyshev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanpopelyshev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-13T01:03:00Z","updated_at":"2015-12-13T01:22:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/englercj/resource-loader/pulls/36","html_url":"https://github.com/englercj/resource-loader/pull/36","diff_url":"https://github.com/englercj/resource-loader/pull/36.diff","patch_url":"https://github.com/englercj/resource-loader/pull/36.patch"},"body":"Required for pixi-compressed-textures\r\n\r\n```\r\nvar loader = new PIXI.loaders.Loader();\r\nloader.before( PIXI.compressedTextures.extensionChooser(renderer) );\r\n// use @2x texture if resolution is 2, use dds format if its windows\r\nvar textureOptions1 = { extra: { ext: [\"@2x.png\", \".dds\", \"@2x.dds\"] } };\r\n// use dds format if its windows but dont care for retina\r\nvar textureOptions2 = { extra: { ext: [\".dds\"] } };\r\n\r\nvar atlasOptions = { extra: { imageExtra: textureOptions.extra } }\r\n\r\nvar stage = new PIXI.Container();\r\n\r\nloader.add('building1', 'img/building1.png', textureOptions1)\r\n    .add('building2', 'img/building2.png', textureOptions2)\r\n    .add('IHateAtlases', 'img/atlas1.json', atlasOptions)\r\n```"},"comment":{"url":"https://api.github.com/repos/englercj/resource-loader/issues/comments/164208505","html_url":"https://github.com/englercj/resource-loader/pull/36#issuecomment-164208505","issue_url":"https://api.github.com/repos/englercj/resource-loader/issues/36","id":164208505,"user":{"login":"ivanpopelyshev","id":695831,"avatar_url":"https://avatars.githubusercontent.com/u/695831?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanpopelyshev","html_url":"https://github.com/ivanpopelyshev","followers_url":"https://api.github.com/users/ivanpopelyshev/followers","following_url":"https://api.github.com/users/ivanpopelyshev/following{/other_user}","gists_url":"https://api.github.com/users/ivanpopelyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanpopelyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanpopelyshev/subscriptions","organizations_url":"https://api.github.com/users/ivanpopelyshev/orgs","repos_url":"https://api.github.com/users/ivanpopelyshev/repos","events_url":"https://api.github.com/users/ivanpopelyshev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanpopelyshev/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T01:22:52Z","updated_at":"2015-12-13T01:22:52Z","body":"That's the lib: https://github.com/pixijs/pixi-compressed-textures"}}