java awt每个像素渲染器移植到imgui
我最近一直在开发Java AWT应用程序,它最初是一个非常简单的渲染测试演示,但已经有点级联,因此为了使我的生活更轻松,我决定切换到IMGUI(带有LWJGL后端)。我从未使用过lwjgl,但我曾与c ++一起使用IMGUI。
在当前格式中,该应用程序的GUI非常简单,因为我调整了我从代码中使用的算法的大多数变量,这正是我想开始切换到IMGUI的原因。 当前,它主要由一对图像组成,这是我的2D算法的每个像素可视化,并且使用AWTS图形功能来绘制一些矩形来表示其他数据。从本质上讲,每个帧都会产生2个动态图像。
那时,我的问题是,LWJGL的内部如何每个像素渲染(以及可能是某些矩形图),并将这些显示为IMGUI GUI的一部分。 或者让IMGUI和我现有的AWT渲染器在同一窗口中共存。
编辑: 以为我在这里添加一个摘要: 我想知道的是,我只想让iMgui渲染一个可以从Java内修改的图像,每个帧中使用某种SetPixelat函数进行修改。
I've recently been working on a java awt application, it started out as a very simple render testing demo but has sort of cascaded and so to make my life easier I have decided to switch to imgui (with an lwjgl backend). I have never used lwjgl but I have used imgui with c++.
In it's current format the gui of the application is incredibly simplistic as I tweak most variables for the algorithms i'm demoing with it from within code which is precisely why I want to start switching over to imgui.
Currently it mostly consists of a pair of images, one which is a per pixel visualisation of my 2d algorithms and one which uses awts graphics features to draw some rectangles to represent other data. essentially producing 2 dynamic images every frame.
my question is then, how would I do this per pixel rendering (and possibly some of the rectangle drawing) inside of lwjgl and get these displaying as part of an imgui gui.
that or getting imgui and my existing awt renderer to coexist within the same window.
EDIT:
Thought I'd add a summary here:
Littereally all I wanna know is how I can get ImGui to render an image that I can modify from within java every frame with some sort of SetPixelAt function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论