Working with textures

A texture, if you are unfamiliar with the term, can basically be thought of as an image. These textures can be applied to a simple geometric square, two triangles, to make an image. This type of image is commonly referred to as a Sprite. We use a Sprite class in the demo at the end of this section. It is also important to note that textures can be applied to more complex geometry and are used in 3D modeling to skin objects. Textures will play a larger part as we continue with the demos later on in the book.