Suchergebnisse
Suchergebnisse 1-3 von insgesamt 3.
Zitat von »NachoMan« an deiner stelle würd ich mir c++ für spieleprogrammierer kaufen und durcharbeiten Dann werde ich das mal machen. Danke
Zitat von »K-Bal« Du definierst eine globale und eine lokale Variable App, so kann das nicht funktionieren. Warum schaust du dir nicht die Beispiele aus der Dokumentation an? Hab ich, dort lösen die das halt in einer Datei. Ich will das ganze aber auf mehrere Klassen verteilen. PS: Blutiger Anfänger ...
Hallo, ich bräuchte wohl eure Hilfe. Main.cpp C-/C++-Quelltext 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include "Stdafx.h" #include "Inputs.h" KeyboardInput kbInput; int main(){ sf::Window App(sf::VideoMode(800, 600, 32), "SFML"); App.Display(); while(App.IsOpened()){ kbInput.Escape(); } return EXIT_SUCCESS; } Inputs.h 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 #ifndef INPUTS_H #define INPUTS_H #include "Stdafx.h" sf::Window App; sf::Event Event; class KeyboardIn...