Well first before I begin, I tried teh search function, without any helpfull results. What I want is to render a Textured Quad to the Screen, thats it. However whatever I do, i see just a white quad without the texture
Here is what i try:
public class LoginScreen extends Node {
private static final long serialVersionUID = 1150983124443967599L;
static DisplaySystem display = DisplaySystem.getDisplaySystem();
public LoginScreen() {
super("LoginScreen");
//Just a small background block!
//We need the background now!
String texturepath = "Textures/LoadingScreen_"+ (int)(Math.random()*10) + ".png";
Console.println("Loading file "+ texturepath);
Texture loadingscreentexture = TextureManager.loadTexture(LoginScreen.class.getClassLoader().getResource(texturepath),Texture.MM_LINEAR,Texture.MM_LINEAR);
TextureState ts = display.getRenderer().createTextureState();
ts.setTexture(loadingscreentexture);
ts.setEnabled(true );
Quad loadscreen = new Quad("Quad",EngineBase.sizex,EngineBase.sizey);
loadscreen.setRenderState(ts);
this.attachChild(loadscreen);
}
public void update(float interpolation){
}
}