Я следую за началом игры C ++
программирование Джона Хортона и прямо сейчас в первой главе, но есть проблема, которая пытаюсь запустить этот код < /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;
}
< /code>
Здесь
отображает ошибку EXE после выполнения < /p>
, показывает эту ошибку после выполнения
и я, есть какая -то проблема с настройкой линкера, выполненной мной в визуальной студии ???
Подробнее здесь: https://stackoverflow.com/questions/793 ... ty-version