Skip to content

Commit 5d2f3cf

Browse files
authored
Create README.md
1 parent 72dcdec commit 5d2f3cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# NetImgui extension for Defold
2+
3+
[NetImgui](https://github.com/sammyfreg/netImgui) is a library for remotely displaying and controlling Dear Imgui content in a different application (called the Server).
4+
5+
This extension works alongside [extension-imgui](https://github.com/britzl/extension-imgui) to make remoting available to Defold applications.
6+
7+
## Usage
8+
1. Add extension-imgui and extension-netimgui to your application
9+
2. Use imgui in the normal way - see extension-imgui documentation for more details
10+
3. Adding netimgui/netimgui.script will handle input, and also disables local imgui rendering when a Server is connected.
11+
12+
## Server application
13+
To connect to your Defold application running this extension, you'll need the NetImgui server application. The NetImgui distribution includes instructions for building on Windows, but the code is quite portable and can be built for MacOS.
14+
15+
There are two options for establishing the connection, and [example/example.script](/example/example.script) covers both:
16+
1. Connect from your Defold app to the server app by calling netimgui.connect_to_app() and specifying a host name or IP address.
17+
2. Instruct your Defold app to allow incoming connections by calling netimgui.connect_from_app()
18+
19+
The second option is typically best, as it means that your app/game runs as normal, but will automatically connect to a server.

0 commit comments

Comments
 (0)