Skip to content

Instantly share code, notes, and snippets.

@meuchel
meuchel / comaccess.cpp
Created July 6, 2022 16:46
Access com port on Win9x WinNT systems or may be others. One of my very first contributions to the www :D It ends up somewhere on a server in China. To not loose this hot piece of hightec here it is again and may help the yogurt.
////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Class ComAccess
// Overlapped serial IO communication class
// System: Win9x WinNT
// File: comaccess.cpp
// Start date: 17.11.1997
// Update: 31.07.1998
// Version: 1.2
// Author: Patrick F. pat@* Germany
@meuchel
meuchel / sdlx11.cpp
Last active October 16, 2023 16:40
Create transparent native linux x11 xlib openGL window and use it with SDL2 or SDL_GPU. All events are handled by SDL_PollEvent
#include "sdlx11.hpp"
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xrender.h>
#include <GL/glx.h>
#include <SDL2/SDL.h>
SDL_Window*
SDLx11::SDL_CreateWindowEx(const char *title, int x, int y, int w, int h, bool fullscreen, double frame_alpha)
{