paysages3d/src/render/software/CanvasFragment.h

39 lines
809 B
C
Raw Normal View History

#ifndef CANVASFRAGMENT_H
#define CANVASFRAGMENT_H
#include "software_global.h"
2014-06-10 13:13:16 +00:00
#include "Color.h"
#include "Vector3.h"
namespace paysages {
namespace software {
/**
* @brief Representation of world coordinates projected in a canvas pixel.
*/
class SOFTWARESHARED_EXPORT CanvasFragment
{
public:
CanvasFragment();
2014-06-10 13:13:16 +00:00
CanvasFragment(double z, const Vector3 &location, int client=0, bool opaque=true);
inline bool getOpaque() const {return opaque;}
inline double getZ() const {return z;}
inline const Vector3 &getLocation() const {return location;}
inline int getClient() const {return client;}
inline const Color &getColor() const {return color;}
private:
bool opaque;
double z;
Vector3 location;
int client;
Color color;
};
}
}
#endif // CANVASFRAGMENT_H