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
| void gradient_rect( ImDrawList* list, const ImVec2& p_min, const ImVec2& p_max, | |
| ImU32 col_top, ImU32 col_bottom, float rounding, | |
| ImDrawFlags flags ) | |
| { | |
| /* | |
| * "It’s also that AddRectFilledMultiColor() doesn’t even support rounding. | |
| * In the event your shape could fill the window without requiring clipping | |
| * (which is always rectangular) you could use AddRectFilled() with rounding | |
| * and white color + the ShadeVertsLinearColorGradientKeepAlpha() function." | |
| * - ocornut |
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
| #include <stdio.h> | |
| #include <dlfcn.h> | |
| #define VISIBLE __attribute__((visibility("default"))) | |
| using void_fn = void(*)(void); | |
| using main_fn = int(*)(int, char**, char**); | |
| extern "C" VISIBLE int __libc_start_main(main_fn main, int argc, char** argv, main_fn init, void_fn fini, void_fn rtld_fini, void* stack_end) { | |
| static auto o_libc_start_main = reinterpret_cast<decltype(&__libc_start_main)>(dlsym(RTLD_NEXT, "__libc_start_main")); |
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
| #include <dlfcn.h> | |
| #include <GL/glx.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include <unistd.h> | |
| #include <sched.h> |