Libgdx and javafx3/16/2024 ![]() ![]() But when I do tracing, the context is null for both when I do, and I can find no way to set it using setContext() so I can do makeCurrent().Įdit: I was able to break through using GLContext.getCurrentGL().getContext(). Well, I've been researching online and came across something on GLWindow and it says that a GLContext is automatically created when GLWindow is created, and I'm sure that it's the same for GLJPanel. I guess the question now is, how to set the context, or where does it get created?Īh, I see. Current context: WindowsWGLContext, FBO, hardware) - 3.3.0, options 0x2c03, this 0x1d4d56f1, handle 0x10002, isShared false, etc etc. I try using setContext() on either the GLJPanel or the my version of JoglAWTCanvas, but I don't know what to hook up to that, since the context is null for either, and not setting it spits this out:Įxception in thread "AWT-EventQueue-0" : Caught GLException: AWT-EventQueue-0: This context is not current. Actually, I opted not to extend, chose to implement Application in the line of JoglAWTCanvas and Graphics and GLEventListener, in the line of JoglGraphicsBase with GLJPanel.Įverything passed through creation fine, but it's now saying that the my context is not current. Well, I tried as you said and extended these classes, and hooked it up to a SwingNode. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |