Clementine-audio-player-Mac.../3rdparty/libprojectm/Renderer/PerPixelMesh.hpp

46 lines
552 B
C++
Raw Normal View History

2010-06-06 23:43:45 +02:00
#ifndef PerPixelMesh_HPP
#define PerPixelMesh_HPP
#include <vector>
2010-06-07 12:18:35 +02:00
struct PixelPoint
2010-06-06 23:43:45 +02:00
{
float x;
float y;
2010-06-07 12:18:35 +02:00
PixelPoint(float x, float y);
2010-06-06 23:43:45 +02:00
};
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;
2010-06-07 12:18:35 +02:00
std::vector<PixelPoint> p;
std::vector<PixelPoint> p_original;
2010-06-06 23:43:45 +02:00
std::vector<PerPixelContext> identity;
PerPixelMesh(int width, int height);
void Reset();
};
#endif