I tried to call renderer.setBackgroundColor(ColorRGBA.Blue), but nothing happened.
By the way, I also can’t change the title by settings.setTitle();
For the Title issue:
private static AppSettings settings;
public static void main(String[] args) {
yourApp app = new yourApp();
settings = new AppSettings(true);
settings.setTitle(“Your Title Here”);
app.setSettings(settings);
app.start();
}
You must set the app settings BEFORE starting the app however, so make sure this happens here!
Not sure how to set the background color though. I recall something a while back about it being broken, but I’m not 100% sure if this is still the case.
Cheers!
~FlaH
It should be:
[java]viewPort.setBackgroundColor(ColorRGBA.Blue);[/java]
Where did you get the (non-working) code sample with “renderer” from, does it need to be updated in one of the tutorials?
2 Likes
tehflah said:
For the Title issue:
private static AppSettings settings;
public static void main(String[] args) {
yourApp app = new yourApp();
settings = new AppSettings(true);
settings.setTitle("Your Title Here");
app.setSettings(settings);
app.start();
}
You must set the app settings BEFORE starting the app however, so make sure this happens here! :)
Not sure how to set the background color though. I recall something a while back about it being broken, but I'm not 100% sure if this is still the case.
Cheers!
~FlaH
Thanks for you reply!
zathras said:
It should be:
[java]viewPort.setBackgroundColor(ColorRGBA.Blue);[/java]
Where did you get the (non-working) code sample with "renderer" from, does it need to be updated in one of the tutorials?
I searched in the java code and found there is a .setBackgroundColor() function in the renderer, so I thought that might be the function to change the background color.