garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
428 stars 102 forks source link

Fix the SFML renderer to work with non-MSVC compilers #24

Closed SimonBoorer closed 11 years ago

SimonBoorer commented 11 years ago

In Renderers/SFML.cpp:

m_Target.draw( &vert, 1, sf::PrimitiveType::Points );

should be:

m_Target.draw( &vert, 1, sf::Points );

as Scoped Enums are part of C++11 / Microsoft Extensions and c++11 is not defined in the premake files, resulting in a "error: 'sf::PrimitiveType` is not a class or namespace" error with G++ 4.4.5.

I also had to add:

include <cmath>

to the top of SFML.cpp because fabs was not declared.