synfig-core  1.0.3
Public Types | Public Member Functions | Static Public Member Functions | List of all members
synfig::RendererSoftware Class Reference

#include <renderersoftware.h>

Inheritance diagram for synfig::RendererSoftware:
synfig::Renderer

Public Types

typedef RendererSoftware RendererType
typedef Renderer::TypesBase
< RendererType
Types
- Public Types inherited from synfig::Renderer
enum  PrimitiveType { PrimitiveTypeSurface, PrimitiveTypePolygon, PrimitiveTypeColoredPolygon, PrimitiveTypeMesh }
enum  { PrimitiveTypeCount = 4 }
enum  Result { ResultSuccess, ResultNotSupported, ResultFail }
typedef int RendererId
typedef PrimitiveDataBase::Handle(* FuncCreate )()
typedef PrimitiveDataBase::Handle(* FuncCopy )(PrimitiveDataBase::Handle primitive)
typedef PrimitiveDataBase::Handle(* FuncConvert )(PrimitiveDataBase::Handle primitive)
typedef KeyCreate KeyCopy
typedef std::map< KeyCreate,
FuncCreate
BookCreate
typedef std::map< KeyCopy,
FuncCopy
BookCopy
typedef std::map< KeyConvert,
FuncConvert
BookConvert
typedef std::map< KeyConvert,
ConvertChainEntry
BookConvertChain
typedef Primitive
< PrimitiveTypeSurface
PrimitiveSurface
typedef Primitive
< PrimitiveTypePolygon
PrimitivePolygon
typedef Primitive
< PrimitiveTypeColoredPolygon
PrimitiveColoredPolygon
typedef Primitive
< PrimitiveTypeMesh
PrimitiveMesh

Public Member Functions

 RendererSoftware ()
virtual Result render_surface (const Params &params, const Primitive< PrimitiveTypeSurface > &primitive)
virtual Result render_polygon (const Params &params, const Primitive< PrimitiveTypePolygon > &primitive)
virtual Result render_colored_polygon (const Params &params, const Primitive< PrimitiveTypeColoredPolygon > &primitive)
virtual Result render_mesh (const Params &params, const Primitive< PrimitiveTypeMesh > &primitive)
- Public Member Functions inherited from synfig::Renderer
bool is_primitive_supported (PrimitiveType primitive_type)
 Renderer ()
virtual ~Renderer ()
virtual Result render (const Params &params, const PrimitiveBase &primitive)

Static Public Member Functions

static RendererId get_id ()
static void initialize ()
static void deinitialize ()
static void render_triangle (synfig::Surface &target_surface, const Vector &p0, const Vector &p1, const Vector &p2, const Color &color, Color::BlendMethod blend_method)
static void render_triangle (synfig::Surface &target_surface, const Vector &p0, const Vector &t0, const Vector &p1, const Vector &t1, const Vector &p2, const Vector &t2, const synfig::Surface &texture, Real alpha, Color::BlendMethod blend_method)
static void render_polygon (synfig::Surface &target_surface, const synfig::Polygon &polygon, const Matrix &transform_matrix, const Color &color, Color::BlendMethod blend_method)
static void render_mesh (synfig::Surface &target_surface, const synfig::Mesh &mesh, const synfig::Surface &texture, const Matrix &transform_matrix, const Matrix &texture_matrix, Real alpha, Color::BlendMethod blend_method)

Additional Inherited Members

- Static Protected Member Functions inherited from synfig::Renderer
static void register_renderer (int &id)
static void register_func_create (const KeyCreate &key, FuncCreate func)
static void register_func_copy (const KeyCopy &key, FuncCopy func)
static void register_func_convert (const KeyConvert &key, FuncConvert func)
static void unregister_renderer (int &id)
template<typename T >
static PrimitiveDataBase::Handle func_default_create ()
static PrimitiveDataBase::Handle func_default_convert (PrimitiveDataBase::Handle primitive)
- Protected Attributes inherited from synfig::Renderer
bool supported_primitives [PrimitiveTypeCount]

Member Typedef Documentation

Constructor & Destructor Documentation

synfig::RendererSoftware::RendererSoftware ( )

Member Function Documentation

static RendererId synfig::RendererSoftware::get_id ( )
static
static void synfig::RendererSoftware::initialize ( )
static
static void synfig::RendererSoftware::deinitialize ( )
static
static void synfig::RendererSoftware::render_triangle ( synfig::Surface target_surface,
const Vector p0,
const Vector p1,
const Vector p2,
const Color color,
Color::BlendMethod  blend_method 
)
static
static void synfig::RendererSoftware::render_triangle ( synfig::Surface target_surface,
const Vector p0,
const Vector t0,
const Vector p1,
const Vector t1,
const Vector p2,
const Vector t2,
const synfig::Surface texture,
Real  alpha,
Color::BlendMethod  blend_method 
)
static
static void synfig::RendererSoftware::render_polygon ( synfig::Surface target_surface,
const synfig::Polygon polygon,
const Matrix transform_matrix,
const Color color,
Color::BlendMethod  blend_method 
)
static
static void synfig::RendererSoftware::render_mesh ( synfig::Surface target_surface,
const synfig::Mesh mesh,
const synfig::Surface texture,
const Matrix transform_matrix,
const Matrix texture_matrix,
Real  alpha,
Color::BlendMethod  blend_method 
)
static
virtual Result synfig::RendererSoftware::render_surface ( const Params params,
const Primitive< PrimitiveTypeSurface > &  primitive 
)
virtual

Reimplemented from synfig::Renderer.

virtual Result synfig::RendererSoftware::render_polygon ( const Params params,
const Primitive< PrimitiveTypePolygon > &  primitive 
)
virtual

Reimplemented from synfig::Renderer.

virtual Result synfig::RendererSoftware::render_colored_polygon ( const Params params,
const Primitive< PrimitiveTypeColoredPolygon > &  primitive 
)
virtual

Reimplemented from synfig::Renderer.

virtual Result synfig::RendererSoftware::render_mesh ( const Params params,
const Primitive< PrimitiveTypeMesh > &  primitive 
)
virtual

Reimplemented from synfig::Renderer.


The documentation for this class was generated from the following file: