This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
#include <windows.h> | |
#include <imagehlp.h> | |
#pragma comment(lib,"imagehlp.lib") | |
int main(void) | |
{ | |
HMODULE hMod = GetModuleHandle(NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <DxLib.h> | |
namespace RetRot | |
{ | |
class RetRot | |
{ | |
bool iniFlag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DWORD GetMainThread(DWORD Pid) | |
{ | |
struct | |
{ | |
const DWORD Pid; | |
DWORD Tid; | |
} tmpDat = {Pid, 0}; | |
EnumWindows( | |
[](HWND hWnd, LPARAM lp) -> BOOL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <vector> | |
#include <algorithm> | |
#include <numeric> | |
using namespace std; | |
#define rep(i,n) for(lint i = 0; i < n; i++) | |
#define repr(i,n) for(lint i = n - 1; i >= 0; i--) | |
#define repb(i,start,end) for(lint i = start; i <= end; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
struct A | |
{ | |
long long a, b; | |
}; | |
const int len = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.7) | |
project(stylus_test) | |
add_executable(test main.cpp) | |
find_package(SDL2 CONFIG REQUIRED) | |
target_link_libraries(test | |
PRIVATE | |
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main> | |
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Write by Kiterai 2023 | |
// https://chaosplant.tech/tech-notes/page50 | |
// | |
// This source code is licensed under CC0 | |
// http://creativecommons.org/publicdomain/zero/1.0/deed.ja | |
// | |
#include <windows.h> | |
#include <ole2.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#include "stb_image_write.h" | |
#include <vulkan/vulkan.hpp> | |
#include <fstream> | |
#include <filesystem> | |
#include <iostream> | |
#include <vector> | |
const uint32_t screenWidth = 640; | |
const uint32_t screenHeight = 480; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STB_IMAGE_IMPLEMENTATION | |
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#include "stb_image.h" | |
#include "stb_image_write.h" | |
#include <glm/glm.hpp> | |
#include <glm/gtc/matrix_transform.hpp> | |
#include <vulkan/vulkan.hpp> | |
#include <filesystem> | |
#include <fstream> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <filesystem> | |
#include <fstream> | |
#include <iostream> | |
#include <random> | |
#include <vulkan/vulkan.hpp> | |
struct Param { | |
uint32_t matAH; | |
uint32_t matAWBH; | |
uint32_t matBW; |
OlderNewer