开发者

Render widgets in OpenGL canvas in Java

开发者 https://www.devze.com 2023-01-07 10:00 出处:网络
Is it possible with Java (and any widget toolkit: AWT/Swing/SWT/...) to render widget within an OpenGL canvas, applying transformations to them while retaining their functio开发者_Python百科nalities a

Is it possible with Java (and any widget toolkit: AWT/Swing/SWT/...) to render widget within an OpenGL canvas, applying transformations to them while retaining their functio开发者_Python百科nalities and event reactions?


http://www.fenggui.org/doku.php

Update: Haven't been many updates to the project. Might be dead, but might be enough for your needs.

I haven't tried it myself but probably better to try this first than cook up your own. If you're going to try your own, I'd go with Swing since it's all internally rendered. The transforms and events will prove tricky especially if you're going beyond 2d opengl.


I encounter the same problem of drawing in-canvas widgets for SWT GLCanvas, tried TWL. But because we are using an Eclipse plugin project, it couldn't recognize the .xml TWL use to define a theme. But if you are not using a plugin project, TWL is very promising.

0

精彩评论

暂无评论...
验证码 换一张
取 消