Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leungll/opengl-psyduck
PsyDuck, Software Development Based on Graphics Engine course, 2020 Spring, NENU
https://github.com/leungll/opengl-psyduck
codeblocks-ide graphics-engine mingw64 nenu opengl psyduck windows10
Last synced: about 2 months ago
JSON representation
PsyDuck, Software Development Based on Graphics Engine course, 2020 Spring, NENU
- Host: GitHub
- URL: https://github.com/leungll/opengl-psyduck
- Owner: leungll
- License: apache-2.0
- Created: 2020-05-21T04:06:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T13:02:13.000Z (9 months ago)
- Last Synced: 2024-03-31T14:22:04.398Z (9 months ago)
- Topics: codeblocks-ide, graphics-engine, mingw64, nenu, opengl, psyduck, windows10
- Language: C
- Homepage:
- Size: 400 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenGLProject_PsyDuck
**PsyDuck**, Software Development Based on Graphics Engine course, 2020 Spring, NENU![maven](https://img.shields.io/badge/C-passing-red)
![maven](https://img.shields.io/badge/MinGW-compile-green)
![maven](https://img.shields.io/badge/IDE-Code%3A%3ABlocks%20-yellow)
![maven](https://img.shields.io/badge/version-v1.0-orange)
![maven](https://img.shields.io/badge/License-Apache%202.0-blue)## 开发环境
* System: Win10
* IDE: Code::Blocks 17.12
* Compiler: MinGW
* Frame: OpenGL## 引入资源
* `glut.h & glu.h & gl.h & windows.h`
* 可在仓库 `resource` 文件夹中引入## 编译 & 运行
* `cd OpenGLProject_PsyDuck\PsyDuck\`
* 用 Code::Blocks 打开 `PsyDuck.cbp` 文件
* `Build and run`## 实现功能
* 基本**卡通人物填充**
* **键盘**控制运动:
- 利用 NormalKeys —— `Alt + 1` & `Alt + 2` 实现动画的**逆时针与顺时针旋转**
- 利用 SpecialKeys —— `GLUT_KEY_LEFT` & `GLUT_KEY_RIGHT` 实现动画左右方向**平移运动**
* **鼠标**控制运动:利用 `glutMouseFunc` & `glutMotionFunc` 实现卡通人物在**平面**沿**任意方向自动旋转**
* 利用 `glutTimerFunc` 实现动画**颜色自动变化**
* **菜单**控制:可右键弹出菜单选择**卡通动漫人物的颜色**
* 尝试 Windows GUI 编程,实现**屏幕显示字体**