Somehow I found time to do the next one too. This was pretty fun one as well. I love the morphing effect. And I like the simpleness of the code compared to the c/c++ version. :)
I left out the Object struct as the D version didn't need the field for the number of vertices, and then there wasn't anything else left than the array itself. So now there are just arrays of Vertices.
I also put a static opCall in the Vertex struct, although it isn't strictly necessary.
And as with the lesson 10, the datais imported into the binary at compile time, so no file i/o is needed.
You can check it out here.
Thursday, March 20, 2008
NeHe Lesson 25: Morphing & Loading Objects From A File
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment