Skip to content

Instantly share code, notes, and snippets.

View DeafMan1983's full-sized avatar
💭
I am developing with Python, C# and C++

Jens Eckervogt DeafMan1983

💭
I am developing with Python, C# and C++
  • Germany
  • 02:51 (UTC +02:00)
View GitHub Profile
@DeafMan1983
DeafMan1983 / ProgramSDLwithMenus.cs
Last active July 1, 2022 14:30
That is an example Menu, Game and Option like scene switcher with old version of Half-Life by Serria or Quake by IQ Software, It was porting from C++/C in StackOverflow https://stackoverflow.com/questions/39133873/how-to-set-a-gui-button-in-the-win32-window-using-sdl-c?answertab=active#tab-top - It is simple result . If you add Text and sprites …
using System;
using static SDL2.SDL;
namespace SdlMenuExample
{
static class Program
{
public struct color
{
public byte r, g, b, a;
@DeafMan1983
DeafMan1983 / NativeLong.cs
Last active September 23, 2020 05:04
NativeLong for C# with Dotnet
/*
* Jens Eckervogt ( aka DeafMan1983 )
* NativeLong for all platform if you use Windows It will work for Windows. But no problem.
*/
public interface INativeLong
{
long ToNative();
}
public class NativeLong : INativeLong