Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.lessvoid.nifty.examples.jogl;
- import com.jogamp.newt.opengl.GLWindow;
- import de.lessvoid.nifty.Nifty;
- import de.lessvoid.nifty.builder.LayerBuilder;
- import de.lessvoid.nifty.builder.ScreenBuilder;
- import de.lessvoid.nifty.examples.jogl.JOGLNiftyRunner.Callback;
- import de.lessvoid.nifty.tools.Color;
- public class ControlsDemoJOGL {
- public static void main(String[] args) throws Exception {
- JOGLNiftyRunner.run(args, new Callback() {
- @Override
- public void init(final Nifty nifty, final GLWindow window) {
- new ScreenBuilder("start") {
- {
- layer(new LayerBuilder("background") {
- {
- backgroundColor(new Color(1.f, 0.f, 0.f, 0.5f));
- }
- });
- }
- }.build(nifty);
- nifty.gotoScreen("start");
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement