Quelcode des Partikelsystems Boden
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Emitter.hpp 526B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Emitter.hpp
  3. // emptyExample
  4. //
  5. // Created by Sebastian Holzki on 17.04.19.
  6. //
  7. #pragma once
  8. #include <stdio.h>
  9. #include "ofMain.h"
  10. class Emitter {
  11. public:
  12. Emitter();
  13. ~Emitter();
  14. void setEmitterPosition(ofVec2f _position);
  15. ofVec2f getEmitterPosition();
  16. int getEmitterX();
  17. int getEmitterY();
  18. private:
  19. bool emitting;
  20. void emitParticles(ofVec2f _positionOfEmission, bool _emitting);
  21. ofVec2f direction;
  22. ofVec2f position;
  23. };