Pixel.h 449 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <Welt2D.h>
  3. using namespace Framework;
  4. class Pixel : public Object2D
  5. {
  6. private:
  7. float ep;
  8. int pixelId;
  9. public:
  10. Pixel( Vertex pos, Vertex speed, float ep, int id );
  11. bool tick( const WeltInfo &info, double zeit ) override;
  12. void render( Mat3< float > &kamMat, Bild &zRObj, const char *kamName ) override;
  13. Rect2< float > getBoundingBox() const override;
  14. float getEp() const;
  15. int getId() const;
  16. };