* long overdue update to AGG 2.4

* removed the useless parts of AGG (which are only needed for the
  interactive examples)
* make sure to jam -a libagg.a to solve any linking issues


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17838 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-06-14 14:30:17 +00:00
parent a58450492a
commit e39da397f5
229 changed files with 23117 additions and 18461 deletions
+8 -18
View File
@@ -1,6 +1,6 @@
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.2
// Copyright (C) 2002-2004 Maxim Shemanarev (http://www.antigrain.com)
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
@@ -21,36 +21,26 @@
#define AGG_SPAN_SOLID_INCLUDED
#include "agg_basics.h"
#include "agg_span_generator.h"
namespace agg
{
//--------------------------------------------------------------span_solid
template<class ColorT, class Allocator = span_allocator<ColorT> >
class span_solid : public span_generator<ColorT, Allocator>
template<class ColorT> class span_solid
{
public:
typedef Allocator alloc_type;
typedef ColorT color_type;
typedef span_generator<color_type, alloc_type> base_type;
//--------------------------------------------------------------------
span_solid(alloc_type& alloc) : base_type(alloc) {}
//--------------------------------------------------------------------
void color(const color_type& c) { m_color = c; }
const color_type& color() const { return m_color; }
//--------------------------------------------------------------------
color_type* generate(int x, int y, unsigned len)
void prepare() {}
//--------------------------------------------------------------------
void generate(color_type* span, int x, int y, unsigned len)
{
color_type* span = base_type::allocator().span();
do
{
*span++ = m_color;
}
while(--len);
return base_type::allocator().span();
do { *span++ = m_color; } while(--len);
}
private: