[SFML] Problem z pierwszym programem
Ostatnio zmodyfikowano 2013-04-14 11:40
Vister26 Temat założony przez niniejszego użytkownika |
[SFML] Problem z pierwszym programem » 2013-04-13 21:52:12 #include <dlls.h> #include <game.h>
main() { a = 5; if( GameLoop() ) { sf::Window oknoAplikacji( sf::VideoMode( 800, 600, 32 ), "Kurs SFML - http://cpp0x.pl" ); while( oknoAplikacji.IsOpened() ) { sf::Event zdarzenie; while( oknoAplikacji.GetEvent( zdarzenie ) ) { if( zdarzenie.Type == sf::Event::Closed ) oknoAplikacji.Close(); if( zdarzenie.Type == sf::Event::KeyPressed && zdarzenie.Key.Code == sf::Key::Escape ) oknoAplikacji.Close(); if( zdarzenie.Type == sf::Event::MouseButtonPressed && zdarzenie.MouseButton.Button == sf::Mouse::Middle ) oknoAplikacji.Close(); } oknoAplikacji.Display(); } } if( !GameLoop() ) { } return 0; }
Po próbie skompilowanie tego kodu wywala takie błędy ||=== Game, Debug ===| In function 'int main()':| |13|error: 'class sf::Window' has no member named 'IsOpened'| |16|error: 'class sf::Window' has no member named 'GetEvent'| |18|error: 'class sf::Event' has no member named 'Type'| |19|error: 'class sf::Window' has no member named 'Close'| |21|error: 'class sf::Event' has no member named 'Type'| |21|error: 'class sf::Event' has no member named 'Key'| |21|error: 'sf::Key' has not been declared| |22|error: 'class sf::Window' has no member named 'Close'| |24|error: 'class sf::Event' has no member named 'Type'| |24|error: 'class sf::Event' has no member named 'MouseButton'| |25|error: 'class sf::Window' has no member named 'Close'| |28|error: 'class sf::Window' has no member named 'Display'| ||=== Build finished: 12 errors, 1 warnings ===|
Wcześniej wszystko ładnie chodziło a teraz nie chce. Wie ktoś w czym tkwi problem? |
|
hincu |
» 2013-04-13 22:30:30 nie znasz angielskiego w tym tkwi TWOJ problem |
|
Vister26 Temat założony przez niniejszego użytkownika |
» 2013-04-13 22:42:44 dzięki za hejt gościu, ale twój post nic nie wnosi ;) |
|
pekfos |
» 2013-04-14 10:25:00 To jest kod pod SFML 1.6 a nie SFML 2.0. |
|
Vister26 Temat założony przez niniejszego użytkownika |
» 2013-04-14 11:40:58 |
|
« 1 » |