sdl update

This commit is contained in:
2024-02-22 02:40:28 +06:00
parent 713c80a93d
commit 14c677a0f5
7 changed files with 37 additions and 19 deletions

View File

@@ -21,6 +21,9 @@ f32 getMainWindowDPI(){
Maybe main_window_open(const char* window_title){
SDL_TRY_ZERO(SDL_Init(SDL_INIT_VIDEO));
SDL_version v;
SDL_GetVersion(&v);
kprintf("SDL version: %u.%u.%u\n", v.major, v.minor, v.patch);
// GL 3.0 + GLSL 130
const char* glsl_version = "#version 130";
SDL_TRY_ZERO( SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0));