Modification Needed - NeHe Lesson 11
I''m after to use the Flag Sin wave as used in Lesson 11(NeHe), but I need to alter it slightly and I cannot for the life of me determine what values to change.
I need the flag to be more flexible. I''m after the flag to have a width and height variable.
Any helpers?
We are the music makers, and we are the dreamers of dreams
Hi,
I think the array should be declared as an ADT.
either you could create a single dimension array
of points of size x*y, or perhaps a multidimensional
array of size [x][y] like in the sample. To declare a
dynamic array you need to use memory padding /* maybe some other time */. To make the flag more flexible you could try
changing the wave used or multiplying the function by a number
greater than 1.
I think the array should be declared as an ADT.
either you could create a single dimension array
of points of size x*y, or perhaps a multidimensional
array of size [x][y] like in the sample. To declare a
dynamic array you need to use memory padding /* maybe some other time */. To make the flag more flexible you could try
changing the wave used or multiplying the function by a number
greater than 1.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement