{"id":19199055,"url":"https://github.com/leungll/opengl-psyduck","last_synced_at":"2026-04-30T12:32:57.575Z","repository":{"id":105367474,"uuid":"265751374","full_name":"leungll/OpenGL-PsyDuck","owner":"leungll","description":"PsyDuck, Software Development Based on Graphics Engine course, 2020 Spring, NENU ","archived":false,"fork":false,"pushed_at":"2024-03-31T13:02:13.000Z","size":410,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-30T12:32:56.935Z","etag":null,"topics":["codeblocks-ide","graphics-engine","mingw64","nenu","opengl","psyduck","windows10"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leungll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-05-21T04:06:48.000Z","updated_at":"2024-05-23T06:13:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"87362c48-5148-4a85-8cc4-a1f89a7349b6","html_url":"https://github.com/leungll/OpenGL-PsyDuck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leungll/OpenGL-PsyDuck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungll%2FOpenGL-PsyDuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungll%2FOpenGL-PsyDuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungll%2FOpenGL-PsyDuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungll%2FOpenGL-PsyDuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leungll","download_url":"https://codeload.github.com/leungll/OpenGL-PsyDuck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungll%2FOpenGL-PsyDuck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32465009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeblocks-ide","graphics-engine","mingw64","nenu","opengl","psyduck","windows10"],"created_at":"2024-11-09T12:25:28.145Z","updated_at":"2026-04-30T12:32:57.557Z","avatar_url":"https://github.com/leungll.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenGLProject_PsyDuck\n**PsyDuck**, Software Development Based on Graphics Engine course, 2020 Spring, NENU \n\n![maven](https://img.shields.io/badge/C-passing-red)\n![maven](https://img.shields.io/badge/MinGW-compile-green)\n![maven](https://img.shields.io/badge/IDE-Code%3A%3ABlocks%20-yellow)\n![maven](https://img.shields.io/badge/version-v1.0-orange)\n![maven](https://img.shields.io/badge/License-Apache%202.0-blue)\n\n## 开发环境\n* System: Win10\n* IDE: Code::Blocks 17.12\n* Compiler: MinGW\n* Frame: OpenGL\n\n## 引入资源\n* `glut.h \u0026 glu.h \u0026 gl.h \u0026 windows.h`\n* 可在仓库 `resource` 文件夹中引入\n\n## 编译 \u0026 运行\n* `cd OpenGLProject_PsyDuck\\PsyDuck\\`\n* 用 Code::Blocks 打开 `PsyDuck.cbp` 文件\n* `Build and run`\n\n## 实现功能\n* 基本**卡通人物填充**\n* **键盘**控制运动：\n    - 利用 NormalKeys —— `Alt + 1` \u0026 `Alt + 2` 实现动画的**逆时针与顺时针旋转**\n    - 利用 SpecialKeys —— `GLUT_KEY_LEFT` \u0026 `GLUT_KEY_RIGHT` 实现动画左右方向**平移运动**\n* **鼠标**控制运动：利用 `glutMouseFunc` \u0026 `glutMotionFunc` 实现卡通人物在**平面**沿**任意方向自动旋转**\n* 利用 `glutTimerFunc` 实现动画**颜色自动变化**\n* **菜单**控制：可右键弹出菜单选择**卡通动漫人物的颜色**\n* 尝试 Windows GUI 编程，实现**屏幕显示字体**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleungll%2Fopengl-psyduck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleungll%2Fopengl-psyduck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleungll%2Fopengl-psyduck/lists"}