LeovanGit / crosshair

Crosshair for any game using WinAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUILD INSTRUCTIONS

To compile this just use build.bat or you can compile it yourself smth like this:

  • for dynamic linking:
g++ source/main.cpp source/window.cpp source/translucent_window.cpp source/menu_window.cpp source/texture.cpp -lgdi32 -lmsimg32 -o crosshair -DLOGS -mwindows
  • for static linking:
g++ source/main.cpp source/window.cpp source/translucent_window.cpp source/menu_window.cpp source/texture.cpp -lgdi32 -lmsimg32 -static-libgcc -static-libstdc++ -static -lpthread -o crosshair -DLOGS -mwindows

Note that -lgdi32 and other libraries on some compilers must be after all *.cpp files!

Also you can add -mwindows if you want to hide terminal on startup.

HOW TO USE

Actually you can use any image of any format that is supported by stb library (QUICK NOTES) as crosshair texture, just drag and drop it on menu window client area.

Note that texture dimensions should be even (but not necessary quad) to draw crosshair accurate in the center.

You can find some default crosshairs in assets directory.

TODO

  • Write own image loader library

About

Crosshair for any game using WinAPI


Languages

Language:C 93.0%Language:C++ 6.9%Language:Batchfile 0.1%