openGL android 中的进度条

发布于 2025-01-04 10:16:49 字数 188 浏览 3 评论 0原文

我正在努力在 Android 中使用 OpenGL 绘制进度条。有没有人可以建议一下。我已经能够使用 OpenGL 为条形图绘制静态图像。我想根据进度填充栏上的颜色。

我需要的是如何调整顶点缓冲区的大小以适应进度?我正在尝试采用两个不同的顶点缓冲区。一个用于绘制背景,另一个用于绘制进度。现在我想在进度缓冲区中填充颜色,其长度应取决于收到的数据。

I am working to draw progressbar using OpenGL in Android. Is there someone who can suggest. I have been able to draw static images for the bars using OpenGL. I want to fill the color on the bar depending upon the progress.

What I need is how to resize the vertices buffer for the progress? I am trying to take two different vertex buffers. one for drawing the background and other for the progress. Now I want to fill color in the progress buffer and its length should depend on the data recieved.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文