программирование Джона Хортона и прямо сейчас в первой главе, но есть проблема, которая пытаюсь запустить этот код < /p>
Код: Выделить всё
type// Include important C++ libraries here
#include
// Make code easier to type with "using namespace"
using namespace sf;
int main()
{
// Create a video mode object
VideoMode vm(1920, 1080);
// Create and open a window for the game
RenderWindow window(vm, "Timber!!!", Style::Fullscreen);
// Create a texture to hold a graphic on the GPU
Texture textureBackground;
// Load a graphic into the texture
textureBackground.loadFromFile("graphics/background.png");
// Create a sprite
Sprite spriteBackground;
// Attach the texture to the sprite
spriteBackground.setTexture(textureBackground);
// Set the spriteBackground to cover the screen
spriteBackground.setPosition(0, 0);
while (window.isOpen())
{
if (Keyboard::isKeyPressed(Keyboard::Escape))
{
window.close();
}
// Clear everything from the last frame
window.clear();
// Draw our game scene here
window.draw(spriteBackground);
// Show everything we just drew
window.display();
}
return 0;
}
после выполнения отображается ошибка exe
после выполнения отображается эта ошибка
и я думаю, что есть какая-то проблема с настройкой компоновщика, которую я сделал в Visual Studio ???
Подробнее здесь: https://stackoverflow.com/questions/793 ... ty-version