MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / SDLInit

Function SDLInit

demo/main.cpp:2604–2614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2602}
2603
2604void SDLInit(const char* title)
2605{
2606 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) < 0) // Initialize SDL's Video subsystem and game controllers
2607 printf("Unable to initialize SDL");
2608
2609 // Create our window centered
2610 g_window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
2611 g_screenWidth, g_screenHeight, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
2612
2613 g_windowId = SDL_GetWindowID(g_window);
2614}
2615
2616void SDLMainLoop()
2617{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected