-
-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathExampleVulkan.java
More file actions
29 lines (26 loc) · 730 Bytes
/
Copy pathExampleVulkan.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 Vulkan backend. Run with:
* <pre>
* ./gradlew :example:run -PmainClass=ExampleVulkan
* </pre>
*/
public class ExampleVulkan extends Application {
@Override
protected void configure(final Configuration config) {
config.setTitle("Example Application — Vulkan");
config.setBackend(Backend.VULKAN);
}
@Override
public void process() {
ImGui.begin("Vulkan");
ImGui.text("Hello from the Vulkan backend!");
ImGui.end();
}
public static void main(final String[] args) {
launch(new ExampleVulkan());
}
}