This page was last updated: December 31, 2022
If you look at the file SampleVertexData.cpp, you will see how the cube from the sample code was defined. Your job is to do the same thing, but with a different object.
I recommend you copy the Sample2019 folder and replace the file SampleVertexData.cpp with your own definition. I also recommend you use nothing but triangles. That way, nothing else needs to change from the Sample2019.
Define your object using a continuous stream of vertices. Vulkan can also do Index Buffers, but we will come to that later.
Replace the existing texture image with one of your own.
'l' (ell) | Toggle lighting on and off |
'm' | Toggle display mode (textures vs. colors) |
'p' | Pause/resume the animation |
'r' | Toggle rotation-animation and using the mouse |
Esc, 'q' | Exit the program |
Use the Teach to turn in your:
Feature | Points |
---|---|
New geometry | 80 |
New texture image | 20 |
Potential Total | 100 |