RenGL Editor

Design apps and games visually.

Drag, resize and style a screen on a canvas, see it the way your app will draw it, and run it in a window of its own. When a button needs to do something, the Java is one click away.

The RenGL Editor on an app project: the element tree on the left, a settings screen in the middle drawn in the dark theme, and the inspector for the selected button on the right

The editor is a RenGL app itself: every panel, tree and field in this screenshot is drawn by the toolkit it edits.

Three kinds of project

Start with what you're making.

A new project is a Maven build that depends on RenGL, a Main class that starts it, an assets folder and a first scene or layout. Open it in the editor and go.

▤

App

Screens built from containers and elements: layouts, buttons, text, images, fields, tabs and splits. A screen is a JSON layout the app loads with one line.

✦

2D game

Scenes of entities with sprites, colliders and your own components, shown through a camera with a grid and zoom. Pick, move and nest entities in a hierarchy.

◈

3D game

Scenes of meshes, models, materials and lights, with a camera and a sky. Move, rotate and scale with handles in a viewport drawn by the GPU, the way the game draws it.

The designer

What you see is what the app draws.

The page in the middle is the real layout, drawn by the same engine that will run it. No preview mode to trust.

  • Hierarchy. Every element as a tree. Add with + or the Element menu, rename with F2, reorder and nest.
  • Direct manipulation. Click to select the innermost element, drag it, resize it from its handles, or drop it into a layout at the line that shows where it will land.
  • Inspector. Size, anchors, style, text, values and events for the selected element, with a tooltip on every property.
  • Everything undoes. Ctrl+Z and Ctrl+Shift+Z cover every move, resize and property change.
  • Try other themes. Step the page through Light, Dark and Crimson, or edit the project's own theme.
The page and inspector of the app designer in the Light theme, with a profile card selected and its size, spacing and style in the inspector
The 3D scene editor with a floor, a red box and a blue ball lit by a directional light, and the scene's sky, fog and shadow settings on the right

Scenes in 2D and 3D

Build the world, not just the menu.

Games get the same editor with a viewport in place of the page.

  • 3D viewport. Drawn by the GPU as the game would draw it. Orbit, pan and zoom, and pick a node with a click.
  • Handles. Move, rotate and scale with Q, W, E and R, and press Escape to put a drag back.
  • Lights, camera and sky. Add them from the Add menu, look through the scene's own camera, and set fog, shadows and tone mapping. Lights can blink.
  • Building tools. Select several nodes, group them into folders, snap and arrange them, add copies in a row or scatter them, and start from material and sky presets.
  • Terrain and prefabs. Shape terrain, reuse prefabs, and drop models and pictures in from an assets panel. Preview a model's animations without leaving the editor.
  • Physics. Give nodes colliders and joints, see them outlined in the viewport, and press Play to watch the world run, then Stop to put it back.
  • 2D scenes. A grid and camera, nested entities, sprites from images and your own components.

From layout to running app

Run it, then make it do something.

▶

Run in a window

Run Layout opens your screen in a window of its own, with its own theme. Resize it to check anchors, docks and splits at other sizes, and turn on reload to follow every edit.

⌘

Java in the same place

A code editor with highlighting and completion that asks the real Java compiler, so it knows your classes and the engine's. It docks beside the page or pops out into its own window.

⚡

Events wire themselves

Name a method on a button's click and the editor adds the method to your controller class. It only ever adds, so code you wrote is never touched.

◐

Themes

A theme editor for the colors and corner size of every button, field and panel, saved in theme.json and loaded by the app, so the editor shows what ships.

▤

Console

Compile errors and stack traces from your project's code land in a console. Click a line and the file opens at that line in the code editor.

?

Docs built in

Press F1 on any element for its documentation: what it is for, how it behaves and every setting it has.

⬇

Run and ship from the editor

Run the whole game or only the open scene, edit its code beside it, and package it into an app that runs without Java installed, with an installer or archive for each platform.

⊞

Select many, rename in place

Select several rows in the hierarchy with Ctrl and Shift, drag them together, and rename with a double-click or F2.

Main.java and MainController.java, as a new app project makes them
// Main: load the layout the editor saved, and connect the methods it names.
Container ui = UiFile.load("layouts/main.json");
window.addContainer(ui);
UiHandlers.bind(ui, new MainController(ui));

// MainController: the editor adds saveSettings() when a button's On Click is set to it.
public class MainController {
    private final Container root;

    public MainController(Container root) {
        this.root = root;
    }

    public void saveSettings() {
        UiFile.find(root, "savedText", TextOverlay.class).setText("Saved");
    }
}

Run the editor

Build RenGL once, then open the editor.

The editor is a Java project that depends on the engine, so the engine goes into your local Maven repository first.

  1. 1

    Install the engine

    JDK 25 and a GPU with OpenGL 3.3 (or Metal on macOS). Skip this if you already did it for RenGL.

    git clone https://github.com/piitex/RenGL.git cd RenGL ./mvnw install -DskipTests
  2. 2

    Get the editor

    Clone it beside the engine and open the folder in your IDE as a Maven project.

    git clone https://github.com/piitex/RenGL-Editor.git
  3. 3

    Run EditorApp

    Run me.piitex.editor.EditorApp. It opens on a project hub to make or open a project. On macOS add the JVM flags.

    -XstartOnFirstThread --enable-native-access=ALL-UNNAMED
Status: the editor is in active development. A few things are known to be rough, such as hover effects on running apps and auto-importing in the code editor. RenGL-Editor on GitHub ↗

Boring, simplistic designs don't have to be the normal.