I need a function or method in C# that can capture screenshots of a running OpenGL game (Counter-Strike 1.6, Half-Life 1 Mod on Steam) and save them into a defined directory.
I want to call it in my C# Windows Form Application like takeScreenshots();
If a hook or dll injection is necessary, then that's just how it is. But I would prefer no injection. However, it must not be detected as cheat by Steam's anticheat tool VAC2.
.NET 4.5
Microsoft Visual Studio 2015
- take screenshot of OpenGL game
- save it on disk