Particle editor for SFML/Thor based applications
Particle editor based on the Thor library extension to SFML.
The editor covers most of the features provided by the particle module from Thor. There is also
support for:
json
filejson
file with particle dataSetting up:
sln
) as x86 (Debug)dll
folder to your Debug
folderParticleLoader.hpp
and ParticleLoader.cpp
to your project
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/System/Clock.hpp>
#include "ParticleLoader.hpp"
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Particles");
px::ParticleLoader system("src/res/data/example.json", sf::Vector2f(400.f, 400.f));
sf::Clock clock;
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
system.update(clock.restart());
window.clear();
window.draw(system);
window.display();
}
return 0;
}
This library is licensed under the MIT License, see LICENSE for more information.