Sync to AGG tree to support stippi's Painter classes

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10693 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2005-01-12 11:05:58 +00:00
parent 75d0f2ba9b
commit abd0030237
52 changed files with 2979 additions and 287 deletions
+9 -1
View File
@@ -36,6 +36,8 @@ namespace agg
{
public:
typedef rgba8 color_type;
typedef bool order_type;
typedef rendering_buffer::row_data row_data;
//--------------------------------------------------------------------
pixfmt_rgb565(rendering_buffer& rb)
@@ -48,7 +50,7 @@ namespace agg
unsigned height() const { return m_rbuf->height(); }
//--------------------------------------------------------------------
color_type pixel(int x, int y)
color_type pixel(int x, int y) const
{
unsigned rgb = ((int16u*)(m_rbuf->row(y)))[x];
return color_type((rgb >> 8) & 0xF8,
@@ -56,6 +58,12 @@ namespace agg
(rgb << 3) & 0xF8);
}
//--------------------------------------------------------------------
row_data span(int x, int y) const
{
return row_data(x, width() - 1, m_rbuf->row(y) + x * 2);
}
//--------------------------------------------------------------------
void copy_pixel(int x, int y, const color_type& c)
{