Aegisub/assdraw/src/agghelper.hpp
Rodrigo Braz Monteiro 08274f0a0c Committed a (broken) copy of ASSDraw3 source code by ai-chan
Originally committed to SVN as r1815.
2008-01-23 02:22:15 +00:00

20 lines
357 B
C++

#pragma once
#include "agg_path_storage.h"
class agghelper
{
public:
static agg::path_storage RectanglePath(double left, double right, double top, double bottom)
{
agg::path_storage path;
path.move_to(left,top);
path.line_to(right,top);
path.line_to(right,bottom);
path.line_to(left,bottom);
path.line_to(left,top);
return path;
}
};