Skip to content

Instantly share code, notes, and snippets.

@Carcons
Carcons / mt_gl_glfw_imgui.cpp
Last active March 2, 2024 16:24
Minimal C++17 example of using multithreading with Dear ImGui, OpenGL (GLEW) and GLFW
// C++17
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <iostream>
@Marc-Ducret
Marc-Ducret / IconRenderer.cs
Created May 28, 2022 11:22
Unity Automatic 3D Icons Rendering
using System.Collections.Generic;
using DiceKingdoms.Game;
using DiceKingdoms.Interface;
using Unity.Mathematics;
using UnityEditor;
using UnityEditor.U2D;
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.U2D;
using Utility;
@TheCherno
TheCherno / Instrumentor.h
Last active July 20, 2024 13:55
Basic Instrumentation Profiler
//
// Basic instrumentation profiler by Cherno
// Usage: include this header file somewhere in your code (eg. precompiled header), and then use like:
//
// Instrumentor::Get().BeginSession("Session Name"); // Begin session
// {
// InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling
// // Code
// }