{"action":"created","issue":{"url":"https://api.github.com/repos/MonoGame/MonoGame/issues/5495","repository_url":"https://api.github.com/repos/MonoGame/MonoGame","labels_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/5495/labels{/name}","comments_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/5495/comments","events_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/5495/events","html_url":"https://github.com/MonoGame/MonoGame/pull/5495","id":209605657,"number":5495,"title":"Expose TexelWidth/TexelHeight properties in Texture2D","user":{"login":"nkast","id":3018589,"avatar_url":"https://avatars.githubusercontent.com/u/3018589?v=3","gravatar_id":"","url":"https://api.github.com/users/nkast","html_url":"https://github.com/nkast","followers_url":"https://api.github.com/users/nkast/followers","following_url":"https://api.github.com/users/nkast/following{/other_user}","gists_url":"https://api.github.com/users/nkast/gists{/gist_id}","starred_url":"https://api.github.com/users/nkast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkast/subscriptions","organizations_url":"https://api.github.com/users/nkast/orgs","repos_url":"https://api.github.com/users/nkast/repos","events_url":"https://api.github.com/users/nkast/events{/privacy}","received_events_url":"https://api.github.com/users/nkast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-22T22:43:41Z","updated_at":"2017-02-24T20:33:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MonoGame/MonoGame/pulls/5495","html_url":"https://github.com/MonoGame/MonoGame/pull/5495","diff_url":"https://github.com/MonoGame/MonoGame/pull/5495.diff","patch_url":"https://github.com/MonoGame/MonoGame/pull/5495.patch"},"body":"#5484 , \r\nhttps://github.com/MonoGame/MonoGame/pull/5267#issuecomment-257422132"},"comment":{"url":"https://api.github.com/repos/MonoGame/MonoGame/issues/comments/282397195","html_url":"https://github.com/MonoGame/MonoGame/pull/5495#issuecomment-282397195","issue_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/5495","id":282397195,"user":{"login":"tomspilman","id":103522,"avatar_url":"https://avatars.githubusercontent.com/u/103522?v=3","gravatar_id":"","url":"https://api.github.com/users/tomspilman","html_url":"https://github.com/tomspilman","followers_url":"https://api.github.com/users/tomspilman/followers","following_url":"https://api.github.com/users/tomspilman/following{/other_user}","gists_url":"https://api.github.com/users/tomspilman/gists{/gist_id}","starred_url":"https://api.github.com/users/tomspilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomspilman/subscriptions","organizations_url":"https://api.github.com/users/tomspilman/orgs","repos_url":"https://api.github.com/users/tomspilman/repos","events_url":"https://api.github.com/users/tomspilman/events{/privacy}","received_events_url":"https://api.github.com/users/tomspilman/received_events","type":"User","site_admin":false},"created_at":"2017-02-24T20:33:08Z","updated_at":"2017-02-24T20:33:08Z","body":"So the thing that makes me hesitate on this is https://github.com/MonoGame/MonoGame/issues/5111.\r\n\r\nI have a first implementation I wrote for a PSVita port.  The pipeline reduces the texture sizes at build time and stores the original texture size in XNB (no change to the format).  Then at runtime when the XNB is loaded we store them in a new property `Texture2D.OriginalWidth/Height`.  Internal to `SpriteBatch` we use these to scale the texture cords back up to the correct range.  This makes like 90% of the work of rescaling assets automatic.\r\n\r\nMaybe we just work that out later.  Just wanted to avoid adding an API to then remove it or change it again.\r\n\r\nStill we should wait until after 3.6 which we plan to release in a week or so."}}
{"actor":{"display_login":"tomspilman"}}