上传者: tanjian1998
|
上传时间: 2022-03-04 12:59:24
|
文件大小: 41KB
|
文件类型: -
This sample teaches you how to create an OpenGL based Spline Drawing application using the MFC library.
It shows how to setup 4 Control Points:
1. Start Point
2. End Point
3. Tangent Start Point
4. Tangent End Point
User Interactions
* Right click to load the on screen context menu.
* Left click and drag to move the selected control point around and see its effect on the spline.
* From the Spline menu, you can select the Type of Spline: Hermite, Cardinal or Bezier.
* In the same menu you can change the Tension of the control points effect on the spline.
* You can also select different control points between: Start/End points and Start/End Tangent points.