LShelagin / cpp_course

0 stars 0 forks source link

Замечания по sfml3 #4

Open sergey-shambir opened 6 years ago

sergey-shambir commented 6 years ago

Проект на github не собирается из-за ошибок компоновки. В частности, find_library отсутствует в CMakeLists.txt, а это значит, что переменные SFML_LIBRARIES и SFML_DEPENDENCIES в CMake не объявлены

CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x1c): undefined reference to `sf::ConvexShape::setPointCount(unsigned long long)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x49): undefined reference to `sf::ConvexShape::setPoint(unsigned long long, sf::Vector2<float> const&)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x7a): undefined reference to `sf::ConvexShape::setPoint(unsigned long long, sf::Vector2<float> const&)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0xab): undefined reference to `sf::ConvexShape::setPoint(unsigned long long, sf::Vector2<float> const&)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0xde): undefined reference to `sf::Transformable::setPosition(sf::Vector2<float> const&)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x107): undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x116): undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x205): undefined reference to `sf::Window::pollEvent(sf::Event&)'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x223): undefined reference to `sf::Window::close()'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x271): undefined reference to `sf::Transformable::getPosition() const'
CMakeFiles\sfml3.1.dir/objects.a(main.obj):main.cpp:(.text+0x31b): undefined reference to `sf::Transformable::getRotation() const'
sergey-shambir commented 6 years ago

В sfml3.1 треугольник поворачивается в другую сторону, если курсор мыши отстоит на него на 30-40 градусов по часовой стрелке. В sfml3.3 при прохождении через курсора границу глаза зрачок прыгает default