Skip to content

Instantly share code, notes, and snippets.

View Ohjurot's full-sized avatar
🎮
DirectX 12

Ludwig Füchsl Ohjurot

🎮
DirectX 12
View GitHub Profile
@Ohjurot
Ohjurot / MOXIBYTE_CLA
Last active July 6, 2023 08:26 — forked from CLAassistant/SAP_CLA
Moxibyte CLA (Adapted SAP Individual Contributor License Agreement)
# Moxibyte CLA (Adapted from SAP Individual Contributor License Agreement)
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Moxibyte GmbH or its affiliates (“Moxibyte”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Moxibyte in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact webadmin@moxibyte.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to Moxiby
@Ohjurot
Ohjurot / conan.py
Last active March 10, 2023 08:52
Python script that will call conan twice (Debug and Release) and generate a premake5 lua file to use both configuration simultaniously
"""
Simple python script for using conan Debug and Release configurations
simultaniously. Take the normal (non generator) create conanbuildinfo.txt
and converts it to a proper premake5 lua file. Invokes conan twice with
build_type=Debug and build_type=Release
!IMPORTANT!
This Script is not compatible with conan >= 2.0.0
If you are looking for a conan >= 2.0.0 solution for premake5, consider
this PR: https://github.com/conan-io/conan/pull/13390
@Ohjurot
Ohjurot / CsMain.cs
Created February 4, 2022 16:22
C# .NET 6 Embedding in c++ (Portable version - Build your own runtime and distribute the shared folder)
using System.Runtime.InteropServices;
namespace CsCode
{
public static class CsMain
{
[UnmanagedCallersOnly]
public static int Test(IntPtr str)
{
int result = 0;
@Ohjurot
Ohjurot / ComPointer.hpp
Last active April 7, 2023 20:14
Simple templated COM Pointer class (Because I don't like the WRL ComPointer)
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@Ohjurot
Ohjurot / main.cpp
Last active June 1, 2021 20:04
Win32 Bad Snake | Just a very bad way to programm snake
#if defined(UNICODE) && !defined(_UNICODE)
#define _UNICODE
#elif defined(_UNICODE) && !defined(UNICODE)
#define UNICODE
#endif
#define _WIN32_WINNT 0x0A00
#define NOMINMAX
#include <windows.h>
#include <cmath>
@Ohjurot
Ohjurot / DualSense_WASAPI_Vibration.cpp
Created November 28, 2020 18:03
Minimal demo to get the DualSense controller vibrating using the haptic feedback (Audio device channel 3 and 4)
#include <Windows.h>
#include <avrt.h>
#include <string>
#include <sstream>
#include <initguid.h>
#include <Mmdeviceapi.h>
#include <audioclient.h>