This file contains hidden or 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
| // | |
| // 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 | |
| // } |
This file contains hidden or 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
| static void SDL_LoadWindowIcon(SDL_Window* window) | |
| { | |
| #if defined(_WIN32) | |
| const unsigned int mask_r = 0x00ff0000; | |
| const unsigned int mask_g = 0x0000ff00; | |
| const unsigned int mask_b = 0x000000ff; | |
| const unsigned int mask_a = 0xff000000; | |
| const int res_id = 101; | |
| const int size = 32; | |
| const int bpp = 32; |