简体   繁体   中英

integrate opengl context into java swing

I am planning to develop a Java GUI application with some 3D function, I can develop 3D part functionality with opengl and C++. but I am not lucky enough to google any document for java to provide opengl window context for C++ code.

Majority of the material suggests JOGL which provides much more straightforward but that means I have to re-develop the same logic to be developed again.

my question is, is there anyway I can use Java swing to provide opengl context so that opengl code wrote in C++ can be used in Java?

Seems like JOGL (Java™ Binding for the OpenGL® API) is the only option. Also, you may have performance penalties if you are trying to mix Swing and OpenGL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM