mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-26 01:22:40 +01:00
46 lines
552 B
C++
46 lines
552 B
C++
#ifndef PerPixelMesh_HPP
|
|
#define PerPixelMesh_HPP
|
|
|
|
#include <vector>
|
|
|
|
struct PixelPoint
|
|
{
|
|
float x;
|
|
float y;
|
|
|
|
PixelPoint(float x, float y);
|
|
};
|
|
|
|
struct PerPixelContext
|
|
{
|
|
float x;
|
|
float y;
|
|
float rad;
|
|
float theta;
|
|
|
|
int i;
|
|
int j;
|
|
|
|
PerPixelContext(float x, float y, float rad, float theta, int i, int j);
|
|
};
|
|
|
|
class PerPixelMesh
|
|
{
|
|
public:
|
|
int width;
|
|
int height;
|
|
int size;
|
|
|
|
std::vector<PixelPoint> p;
|
|
std::vector<PixelPoint> p_original;
|
|
std::vector<PerPixelContext> identity;
|
|
|
|
PerPixelMesh(int width, int height);
|
|
|
|
void Reset();
|
|
};
|
|
|
|
|
|
|
|
#endif
|