Skip to content

Instantly share code, notes, and snippets.

View Decencies's full-sized avatar
💭
Bri'ish

Decencies

💭
Bri'ish
View GitHub Profile
@ialhashim
ialhashim / screencapture.cpp
Last active September 13, 2024 11:23
Portable screen capture using C++ under Windows 10 (or 8)
#include "screengrab.h"
void capture()
{
CComPtr<ID3D11Device> pDevice;
CComPtr<IDXGIOutputDuplication> pDeskDupl;
//(...)create devices and duplication interface etc here..
DXGI_OUTDUPL_DESC OutputDuplDesc;
@MinerCraftGuy
MinerCraftGuy / gist:c3b98e8938286a67ce667d1c2ff6f1cb
Last active August 19, 2024 21:34
Transformation Functions
func_100008_d isDurationMax
func_100009_j_ getFacing
func_100011_g getIsPotionDurationMax
func_100012_b setPotionDurationMax
func_100015_a isKeyDown
func_102007_a canInsertItem
func_102008_b canExtractItem
func_102012_a insertStackFromInventory
func_102013_b canExtractItemFromInventory
func_102015_a canInsertItemToInventory