0
これはコードのほんの一部です。 Openglライブラリを使用していて、
ネイティブパスを設定していても、私のDisplayメソッド
が機能しないのはなぜですか?なぜOpenGLクラスのDisplayメソッドが機能しないのですか
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
public class Window
{
public static void CreateWindow(int width, int height, String title)
{
Display.setTitle(title);
try
{
Display.setDisplayMode(new DisplayMode(width, height));
Display.create();
Keyboard.create();
Mouse.create();
}
catch (LWJGLException e)
{
e.printStackTrace();
}
}
}
エラー:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Display cannot be resolved
Display cannot be resolved
DisplayMode cannot be resolved to a type
Display cannot be resolved
Keyboard cannot be resolved
Mouse cannot be resolved
LWJGLException cannot be resolved to a type
at com.base.engine.rendering.Window.CreateWindow(Window.java:14)
at com.base.engine.core.CoreEngine.CreateWindow(CoreEngine.java:27)
at com.base.game.Main.main(Main.java:10)
これらのクラスが存在しないLWJGL 3を使用している可能性があります。 – Vallentin