我正在尝试使用SDL创建游戏。一切正常,但只是停止工作。我使用SDL_Init初始化所有内容,但是它只是停止了。
std::cout << "Before INIT" << std::endl;
//Start SDL
if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
{
std::cout << "SDL could not initialize." << std::endl;
}
else
{
std::cout << "SDL could init" << std::endl;
}
上面的代码是我要启动的代码,这是控制台输出:
Before INIT
如果将SDL_INIT_EVERYTHING替换为单独的设置,则似乎无法使用:
SDL_INIT_JOYSTICK
SDL_INIT_GAMECONTROLLER
我正在使用什么:
Windows 10
Visual Studio 2017
SDL2-devel-2.0.9-VC
All I use is the SDL2 version from the website.
我的视觉工作室也提出了这个建议,但是并没有帮助我找到解决方案:
The thread 0x840 has exited with code 0 (0x0).
The thread 0x1784 has exited with code -1073741510 (0xc000013a).
The thread 0x42d4 has exited with code -1073741510 (0xc000013a).
The thread 0x23c8 has exited with code -1073741510 (0xc000013a).
The thread 0x4330 has exited with code -1073741510 (0xc000013a).
The thread 0x3fe4 has exited with code -1073741510 (0xc000013a).
The thread 0x42f4 has exited with code -1073741510 (0xc000013a).
The thread 0x1410 has exited with code -1073741510 (0xc000013a).
The thread 0x3a14 has exited with code -1073741510 (0xc000013a).
The program '[2552] ice-game.exe' has exited with code -1073741510 (0xc000013a).
我希望有人可以帮助我完成这项工作!