// Description: Drawing a triangle
// Documentation: drawing.txt
#ifndef PASTELGFX_DRAW_TRIANGLE_H
#define PASTELGFX_DRAW_TRIANGLE_H
#include "pastel/sys/mytypes.h"
#include "pastel/sys/view/view.h"
#include "pastel/geometry/shape/triangle.h"
namespace Pastel
{
//! Draws a triangle with a solid color.
template <typename Type, typename Image_View, typename ColorMixer>
void drawTriangle(
const Triangle2& triangle,
const NoDeduction<Type>& color,
const View<2, Type, Image_View>& image,
const ColorMixer& colorMixer);
//! Draws a triangle with a solid color.
/*!
This simply calls
drawTriangle(triangle, color,
image, assignColorMixer<Type>());
*/
template <typename Type, typename Image_View>
void drawTriangle(
const Triangle2& triangle,
const NoDeduction<Type>& color,
const View<2, Type, Image_View>& image);
}
#include "pastel/gfx/drawing/draw_triangle.hpp"
#endif