Proof of concept for implementing imgui into various Source games on Linux.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include/imgui
src
LICENSE
Makefile
README.md

README.md

imgui demo in Counter-Strike: Global Offensive on Linux imgui demo in Counter-Strike: Source on Linux imgui demo in Team Fortress 2 on Linux
Counter-Strike: Global Offensive Counter-Strike: Source Team Fortress 2

imgui-sdl-csgo

Implements the imgui graphical user interface by hijacking the SDL_GL_SwapWindow symbol. Nothing really specific for Counter-Strike: Global Offensive any more but changing the repository name now is a pain.

Special thanks to SirBarclay who provided a working example of OpenGL drawing based on my initial hooking code.

Usage

You will need the appropriate SDL2 library for the specified architecture.

Injecting

See my blog post for some loading options.

32-bit

Compile with make x86 TYPE=runtime-x86 and load with any injection method.

64-bit

Compile with make x64 TYPE=runtime-x64 and load with any injection method.

Preloading

32-bit

Compile with make x86 TYPE=preload and launch.

LD_PRELOAD=/home/aixxe/libsdl-imgui.so ./hl2.sh -game tf
LD_PRELOAD=/home/aixxe/libsdl-imgui.so ./hl2.sh -game cstrike

64-bit

Compile with make x64 TYPE=preload and launch.

LD_PRELOAD=/home/aixxe/libsdl-imgui.so ./csgo.sh