Hi There,
I tried this code:
// LTBL
ls = ltbl::LightSystem(AABB(Vec2f(0.0f, 0.0f), Vec2f(static_cast<float>(WIN_WIDTH), static_cast<float>(WIN_HEIGHT))), window.get(), "data/lightFin.png", "data/shaders/lightAttenuationShader.frag");
ltbl::Light_Point* dLight = new ltbl::Light_Point();
dLight->SetCenter(Vec2f(0.0f, 0.0f));
dLight->SetRadius(750.f);
dLight->m_size = 30.f;
dLight->SetSpreadAngle(2.0f * static_cast<float>(M_PI));
dLight->m_softSpreadAngle = 0.0f;
dLight->CalculateAABB();
ls.AddLight(dLight);
And i get this when compiling:
1>------ Build started: Project: Testing, Configuration: Release Win32 ------
1> main.cpp
1>F:\SFML-2.0-x64\include\SFML/Graphics/Shader.hpp(521): error C2248: 'sf::NonCopyable::operator =' : cannot access private member declared in class 'sf::NonCopyable'
1> F:\SFML-2.0-x64\include\SFML/System/NonCopyable.hpp(79) : see declaration of 'sf::NonCopyable::operator ='
1> F:\SFML-2.0-x64\include\SFML/System/NonCopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::Shader &sf::Shader::operator =(const sf::Shader &)'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Am i doing something wrong?
I'm using LTBL 5.1 + SFML 2.0