-
-
Save sewbacca/79a84414e73848dc1e931051643f752a to your computer and use it in GitHub Desktop.
Printing Invalid window ID
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 <SDL2/SDL.h> | |
#include <unistd.h> | |
int main(int argc, char const *argv[]) | |
{ | |
uint32_t nix = 0; | |
auto win = SDL_CreateWindow("Test", 0, 0, 400, 200, nix); | |
SDL_RaiseWindow(win); | |
printf("ID: %i\n", SDL_GetWindowID(win)); | |
while (1) { usleep(100000); } | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with: