Defining a Textured Cube from Scratch
Use this example as a template for designing your own custom geometry.
The source code will show you how to define position, texture coordinate and primitive index arrays, along with how to apply texture and material properties.