This project demonstrates a simple animation of a wolf's face using the OpenGL library. The wolf's face is drawn with various facial features, and the animation allows the face to move horizontally.
- wolf_animation.cpp: The main source code file containing the OpenGL code for drawing the wolf's face, handling animation, and keyboard interactions.
- Nose: Draws the nose of the wolf's face. (Function:
nose()
) - Right Cheek: Draws the right cheek of the wolf's face. (Function:
rightCheek()
) - Left Cheek: Draws the left cheek of the wolf's face. (Function:
leftCheek()
) - Chin: Draws the chin of the wolf's face. (Function:
chin()
) - Forehead: Draws the forehead of the wolf's face. (Function:
forehead()
) - Eyes: Draws the eyes of the wolf's face. (Function:
eyes()
) - Gums: Draws the upper and lower gums of the wolf's face. (Function:
gums()
) - Fangs: Draws the fangs of the wolf's face. (Function:
fangs()
) - Teeth: Draws the teeth of the wolf's face. (Function:
teeth()
)
- The wolf's face can move horizontally to the right when the animation is enabled.
- Pressing the 'V' key toggles the animation on and off. (Function:
keyboardFunc()
) - The timer function controls the animation by triggering a redraw at regular intervals. (Function:
timerFunc()
)
- Compile the code using an OpenGL-compatible compiler.
- Run the executable.
- The window displays the animated wolf's face.
- Press the 'V' key to toggle the animation.
- Adjust the timer interval and animation speed in the code as needed.
- Feel free to modify the drawing functions to customize the wolf's face.
Enjoy experimenting with the wolf animation project!