Before you go off on me for "not searching", I've searched around a LOT and found a lot of answers, but none of them worked for me.
嗨,我正在制作一个3D java lwjgl游戏,我正试图在屏幕中间渲染一些简单的2D文本,但无论我尝试什么,我都看不到任何文字呈现在我的屏幕上.这是我的Text2D.java类:
package com.gmail.br45entei.base.engine.rendering;
import java.awt.Font;
import java.awt.FontFormatException;
import java.io.IOException;
import org.newdawn.slick.Color;
import org.newdawn.slick.UnicodeFont;
import com.gmail.br45entei.base.engine.core.Vector2f;
import com.gmail.br45entei.base.game.Game;
import com.gmail.br45entei.base.game.MainComponent;
import com.gmail.br45entei.file.FileMgmt;
/**
* @author Brian_Entei
*
*/
public class Text3D {
private Camera camera;
private UnicodeFont font;
private Color color;
private Vector2f position;
private String text = "New string";
private int …Run Code Online (Sandbox Code Playgroud)