Estou usando as funções SDL sem o SDL_main ser definido. Tudo bem?

esse é o meu código:

Lib.h

#ifdef ExportLib
    #define Lib __declspec(dllexport)
#else
    #define Lib __declspec(dllimport)
#endif
extern void Lib Launch();

Lib.cpp

#include <SDL/SDL.h>
#include "Lib.h"
void Launch() {
    SDL_Init(SDL_INIT_EVERYTHING);
    SDL_Window* win = SDL_CreateWindow("Untitle", 100, 100, 400, 400, 0);
    SDL_DestroyWindow(win);
    SDL_Quit();
}

Eu construo esse código em uma biblioteca estática. Então eu criei um novo arquivo de origem e usei esta biblioteca.

main.cpp

#include "Lib.h"

int main() {
    Launch();
    return 0;
}

Finalmente, eu compilo o main.cpp usando minha biblioteca estática sem o SDL_main ser definido e as dependências do SDL. Isso funciona bem, a janela aparece.

Mas é realmente bom fazer isso? Que funcionalidades eu perdi fazendo isso?

questionAnswers(2)

yourAnswerToTheQuestion