trixt0r / libgdx-fx Goto Github PK
View Code? Open in Web Editor NEWJavaFX backend for LibGDX
JavaFX backend for LibGDX
In LwjglToJavaFX there is this code:
if (caps.GL_ARB_debug_output)
glDebugMessageCallbackARB(new ARBDebugOutputCallback());
Every frame it outputs the following on the console:
[LWJGL] ARB_debug_output message
ID: 131154
Source: API
Type: PERFORMANCE
Severity: MEDIUM
Message: Pixel-path performance warning: Pixel transfer is synchronized with 3D rendering.
Is it possible to fix this?
Last commit was 4 years ago but I hope someone knows what's wrong.
I get this stacktrace every single time when running an LwjglFxApplication. (I tried the example code, still doesn't work)
Exception in thread "LWJGL Application" java.lang.NullPointerException
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.initiateGLInstances(LwjglGraphics.java:378)
at com.badlogic.gdx.backends.lwjgl.LwjglFXGraphics.setupDisplay(LwjglFXGraphics.java:88)
at com.badlogic.gdx.backends.lwjgl.LwjglFXApplication.mainLoop(LwjglFXApplication.java:65)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
The exception causes libGDX to crash, the JavaFX Stage still works though
Hi there,
I'm trying to make this work in IntelliJ Idea. I have imported the project from Eclipse but couldn't build it. I have added org.lwjgl.lwjgl-3.2.0.jar and org.lwjgl.opengl-3.2.0.jar to the dependencies, but still I'm getting several errors of symbols not found, for example:
Error:(35, 24) java: cannot find symbol
symbol: class ContextCapabilities
location: package org.lwjgl.opengl
There are other missing classes, but I guess the issue is the same. For example, it cannot find GLContext class either, and some methods like:
Error:(214, 38) java: no suitable method found for glMapTexture2DINTEL(int,int,int,int,java.nio.IntBuffer,java.nio.IntBuffer,java.nio.ByteBuffer)
method org.lwjgl.opengl.INTELMapTexture.glMapTexture2DINTEL(int,int,int,int[],int[],long,java.nio.ByteBuffer) is not applicable
(argument mismatch; int cannot be converted to int[])
method org.lwjgl.opengl.INTELMapTexture.glMapTexture2DINTEL(int,int,int,java.nio.IntBuffer,java.nio.IntBuffer,long,java.nio.ByteBuffer) is not applicable
(argument mismatch; int cannot be converted to java.nio.IntBuffer)
I guess I'm not using the right version of the libraries or something like that. I have take a look at the eclipse configuration files on the project, but couldn't find a hint about the dependencies.
Could you tell me the library dependencies I would need to add to my IntelliJ Idea project to make this build?
Thanks a million in advance!
I have the issue that the stuff that libGDX renders to the ImageView gets displayed upside-down. The input seems to be correctly though, but it just doesn't match the visuals. Any idea how to fix this?
First of all thanks for publishing this! It really worked out of the box, but there seem to be a few bugs and unfortunately I have no clue how to solve those.
When resizing the window, I get the following error:
java.lang.IllegalArgumentException: Upload requires 1251840 elements, but only 743280 elements remain in the buffer
at com.sun.prism.impl.BaseTexture.checkUpdateParams(Unknown Source)
at com.sun.prism.d3d.D3DTexture.update(Unknown Source)
at com.sun.prism.impl.BaseTexture.update(Unknown Source)
at com.sun.prism.impl.BaseResourceFactory.getCachedTexture(Unknown Source)
at com.sun.javafx.sg.prism.NGImageView.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGImageView.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderForClip(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderRectClip(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderClip(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderForClip(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderRectClip(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderClip(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)
at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(Unknown Source)
at com.sun.javafx.tk.quantum.PresentingPainter.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at com.sun.javafx.tk.RenderJob.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
The ImageView backed by libgdx still works after that, but most of the times, it breaks the rest of the UI. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.