Timeline for DirectX 2D Sprite Texture
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 6, 2011 at 0:28 | vote | accept | Jack | ||
Dec 6, 2011 at 0:12 | comment | added | Adam | You divide the pixel coordinates by the texture size. For example in a 100x1000 texture the point 50, 500 would be 0.5, 0.5. You may find msdn.microsoft.com/en-us/library/windows/desktop/… useful too as there's some additional complexity with D3D9. | |
Dec 5, 2011 at 13:44 | comment | added | Jack | Ah, thanks, this looks like its the issue but ill check when im home later. So would it be better to be using UV coordinates for specifying the texture location? If so how do I go about finding the coordinates at a certain point? | |
Dec 5, 2011 at 0:16 | history | answered | Adam | CC BY-SA 3.0 |