Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
Zitat
sfml-system-d.lib sfml-window-d.lib sfml-graphics-d.lib
Zitat
sfml-system.lib sfml-window.lib sfml-graphics.lib
Anonymous
unregistriert
C-/C++-Quelltext |
|
1 |
1>LINK : fatal error LNK1181: Eingabedatei "sfml-system.lib" kann nicht geöffnet werden |
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
#include <SFML/Window.hpp> //////////////////////////////////////////////////////////// /// Entry point of application /// /// \return Application exit code /// //////////////////////////////////////////////////////////// int main() { // Create the main window sf::Window App(sf::VideoMode(800, 600, 32), "SFML Events"); // Get a reference to the input manager associated to our window, and //store it for later use const sf::Input& Input = App.GetInput(); // Start main loop while (App.IsOpened()) { // Process events sf::Event Event; while (App.GetEvent(Event)) { // Close window : exit if (Event.Type == sf::Event::Closed) App.Close(); // Escape key : exit if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape)) App.Close(); } // Get some useless input states, just to illustrate the tutorial bool LeftKeyDown = Input.IsKeyDown(sf::Key::Left); bool RightButtonDown = Input.IsMouseButtonDown(sf::Mouse::Right); bool JoyButton1Down = Input.IsJoystickButtonDown(0, 1); unsigned int MouseX = Input.GetMouseX(); unsigned int MouseY = Input.GetMouseY(); int JoystickX = Input.GetJoystickAxis(1, sf::Joy::AxisZ); int JoystickY = Input.GetJoystickAxis(1, sf::Joy::AxisY); int JoystickPOV = Input.GetJoystickAxis(1, sf::Joy::AxisPOV); // Display window on screen App.Display(); } return EXIT_SUCCESS; } |
Werbeanzeige