簡體   English   中英

swing 和 jogl 在窗口應用程序中的使用

[英]swing and jogl usage in a windowed application

我在解決有關 jogl 和 swing 的問題時遇到了問題。 我想使用 jogl whit swing 組件,但它不會一直刷新。 how can i repaint, refresh the opengl "image" in the swing component (update).when i change the position of my opengl primitives and i call a repaint() or an invalidate function then the screen turns black. 如果有人設法克服了這個障礙,請回復這個主題我使用了來自 netBeans 插件(GLJPanel 或 Canvas)的演示應用程序謝謝,zsala

更新:

問題已解決。 任何有同樣問題的人都應該實施 JOGL canvas 並將 canvas 放在 canvas 的位置,供 Z97A6D52B92FB246A 使用。

實現 GLActionListener 就完成了。 它不斷刷新,沒有問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM