paysages3d/src/render/software/CanvasFragment.cpp
Michaël Lemaire 3c351bbe5c Color, Vector3 and CanvasFragment are now PODs
This can speed up CanvasPortion initialization
2015-09-10 22:06:50 +02:00

12 lines
281 B
C++

#include "CanvasFragment.h"
CanvasFragment::CanvasFragment(double z, const Vector3 &location, int client, bool opaque):
opaque(opaque), z(z), location(location), client(client)
{
color = COLOR_WHITE;
}
void CanvasFragment::setColor(const Color &col)
{
color = col;
}