28 lines
733 B
C++
28 lines
733 B
C++
#pragma once
|
|
|
|
#include "Animation.hpp"
|
|
#include "LayerData.hpp"
|
|
#include "Texture.hpp"
|
|
|
|
namespace fmri
|
|
{
|
|
class PoolingLayerAnimation : public Animation
|
|
{
|
|
public:
|
|
PoolingLayerAnimation(const LayerData &prevData, const LayerData &curData,
|
|
const std::vector<float> &prevPositions,
|
|
const std::vector<float> &curPositions);
|
|
|
|
void draw(float timeStep) override;
|
|
|
|
private:
|
|
Texture original;
|
|
Texture downSampled;
|
|
std::vector<float> startingPositions;
|
|
std::vector<float> deltas;
|
|
std::vector<float> textureCoordinates;
|
|
|
|
static Texture loadTextureForData(const LayerData& data);
|
|
};
|
|
}
|