General Programming:Graphics:Coordinates

Introduction When dealing with 3D graphics, most API calls attempt to abstract out the pixel. What that means is that usually no calls directly reference pixels – rather – they use values which represent ratios. For example, consider TextureCoordinates. When referending TextureCoordinates you do not specify pixel values. Instead, the left edge of a texture[…]

TextureAddressMode

Introduction The TextureAddressMode controls how Sprites display their texture outside of the 0 – 1 range. TextureAddressMode can be used to create tiles and texture scrolling. TextureAddressMode is usually used in combination with texture coordinates. For more information on texture coordinates, see the texture coordinates page. Usage Example The following code creates three sprites. It[…]