Files
ConnectTools/README.md
Ayndpa 0f76252c16 Add initial implementation of ConnectTool with Dear ImGui and Steam Networking
- Created project files for ConnectTool including filters and user settings.
- Added README.md with setup instructions and prerequisites for building the project.
- Implemented imgui_hello.cpp as a simple Dear ImGui application using GLFW and OpenGL.
- Developed online_game_tool.cpp for hosting and joining game rooms using Steam Networking.
- Created p2p_chat.cpp for a peer-to-peer chat application utilizing Steam Networking.
- Implemented steam_friends.cpp to display the user's Steam friends list.
- Added TCP client and server classes for handling network communication.
- Integrated TCP server and client functionality into online_game_tool for real-time data exchange.
2025-11-17 20:41:03 +08:00

43 lines
1.1 KiB
Markdown

# ConnectTool - Dear ImGui Hello World
This repository includes a simple Dear ImGui "Hello World" example using GLFW + OpenGL3 for cross-platform compatibility.
## Prerequisites
- C++17 compatible compiler
- CMake 3.10 or higher
- OpenGL 3.0 or higher
- GLFW library
## Getting Dear ImGui
1. Download Dear ImGui from https://github.com/ocornut/imgui
2. Extract the contents to a folder named `imgui` in the project root (next to `CMakeLists.txt`)
## Building
1. Ensure you have GLFW installed. On Windows, you can use vcpkg:
```
vcpkg install glfw3
```
On Linux/macOS, use your package manager (e.g., `sudo apt install libglfw3-dev` on Ubuntu).
2. Create a build directory:
```
mkdir build
cd build
cmake ..
make
```
3. Run the executable:
```
./ConnectTool
```
## Cross-Platform Notes
- This setup uses GLFW for window management and OpenGL for rendering, ensuring compatibility across Windows, Linux, and macOS.
- If using Visual Studio on Windows, you can generate VS solution files with `cmake -G "Visual Studio 16 2019" ..` (adjust for your version).
- For macOS, ensure you have Xcode command line tools installed.