Korben
Korben

Reputation: 734

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?

Upvotes: 2

Views: 556

Answers (1)

ABN
ABN

Reputation: 11

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.

Upvotes: 1

Related Questions