-
-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathMainSdl.java
More file actions
29 lines (26 loc) · 730 Bytes
/
Copy pathMainSdl.java
File metadata and controls
29 lines (26 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import imgui.ImGui;
import imgui.app.Application;
import imgui.app.Backend;
import imgui.app.Configuration;
/**
* Smoke-test entry point for the SDL3 + SDL_GPU backend. Run with:
* <pre>
* ./gradlew :example:run -PmainClass=MainSdl
* </pre>
*/
public class MainSdl extends Application {
@Override
protected void configure(final Configuration config) {
config.setTitle("Example Application — SDL3 + SDL_GPU");
config.setBackend(Backend.SDL);
}
@Override
public void process() {
ImGui.begin("SDL3 + SDL_GPU");
ImGui.text("Hello from the SDL backend!");
ImGui.end();
}
public static void main(final String[] args) {
launch(new MainSdl());
}
}