Here's my code
#include <stdio.h>
#include <stdbool.h>
#include <SDL2/SDL.h>
int main(){
if(SDL_Init(SDL_INIT_VIDEO) != 0){
return -1;
}
SDL_Window *window = SDL_CreateWindow("test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
if(window){
SDL_Delay(3000);
SDL_DestroyWindow(window);
}
SDL_Quit();
}
The window is created and I manage to get in the if statement, it just doesn't show the window.
I'm working on VSCode, on Ubuntu (which I installed today, so there might be components I'm missing for the window to show but as of right now I don't know).