Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何用imgui制作ui动画在安卓端的实现? #8

Open
lu9943 opened this issue Jul 25, 2024 · 3 comments
Open

如何用imgui制作ui动画在安卓端的实现? #8

lu9943 opened this issue Jul 25, 2024 · 3 comments
Labels
GUI | 图形用户界面 通过图形元素(如窗口、按钮、图标等)与用户进行交互 ImGui https://github.com/ocornut/imgui tech | 技术

Comments

@lu9943
Copy link

lu9943 commented Jul 25, 2024

是这样的,最近在学c++基础,为了熟悉c++,特意想自己动手做点小项目出来,所以玩上了imgui项目,以下说一下我的想法看看能不能实现
把星舰33个发动机的环形灯单独做成浮窗球类型,然后点击它的时候以120帧动画转场到ui功能区界面,在安卓平台上能实现吗?
类似安卓内核外挂的ui
3aca8bf9804d437a86fa2e4543715041
微信图片_20240608100546
我玩过这些开源的项目,这是用c代码写的,用ndk打包成可执行文件.sh,然后用mt管理器启动,里面集成了c++的imgui框架,所以我也想做一个属于自己的基于c++写的imgui动画项目,然后在安卓端运行,但我不知道怎么入手,想先实现一套imgui动画,再对接后续的项目,

@Sunrisepeak
Copy link
Owner

Sunrisepeak commented Jul 26, 2024

@lu9943

官方有Android的例子 https://github.com/ocornut/imgui/tree/master/examples/example_android_opengl3
但imgui本身并不支持动画, 动画可能要自己实现

@Sunrisepeak
Copy link
Owner

Android上使用 opengl渲染示例

ocornut/imgui#3446

@Sunrisepeak Sunrisepeak added tech | 技术 GUI | 图形用户界面 通过图形元素(如窗口、按钮、图标等)与用户进行交互 ImGui https://github.com/ocornut/imgui labels Jul 27, 2024
@Sunrisepeak
Copy link
Owner

Sunrisepeak commented Aug 3, 2024

补充一个使用imgui构建安卓应用教程

ImGui安卓示例编译/运行详细步骤 | 一键编译脚本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI | 图形用户界面 通过图形元素(如窗口、按钮、图标等)与用户进行交互 ImGui https://github.com/ocornut/imgui tech | 技术
Projects
Development

No branches or pull requests

2 participants