synfig-core
1.0.3
|
#include <renderer.h>
Classes | |
struct | ConvertChainEntry |
struct | KeyConvert |
struct | KeyCreate |
class | Params |
class | Primitive |
class | PrimitiveBase |
class | PrimitiveData |
class | PrimitiveDataBase |
Base class of PrimitiveData (PrimitiveData base), NOT database. More... | |
class | TypesBase |
class | TypesTemplate |
class | TypesTemplate< RendererSoftware, Renderer::PrimitiveTypeMesh > |
class | TypesTemplate< RendererSoftware, Renderer::PrimitiveTypeSurface > |
class | TypesTemplateBase |
Public Types | |
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 | |
bool | is_primitive_supported (PrimitiveType primitive_type) |
Renderer () | |
virtual | ~Renderer () |
virtual Result | render (const Params ¶ms, const PrimitiveBase &primitive) |
virtual Result | render_surface (const Params ¶ms, const Primitive< PrimitiveTypeSurface > &primitive) |
virtual Result | render_polygon (const Params ¶ms, const Primitive< PrimitiveTypePolygon > &primitive) |
virtual Result | render_colored_polygon (const Params ¶ms, const Primitive< PrimitiveTypeColoredPolygon > &primitive) |
virtual Result | render_mesh (const Params ¶ms, const Primitive< PrimitiveTypeMesh > &primitive) |
Static Protected Member Functions | |
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 | |
bool | supported_primitives [PrimitiveTypeCount] |
typedef int synfig::Renderer::RendererId |
typedef PrimitiveDataBase::Handle(* synfig::Renderer::FuncCreate)() |
typedef PrimitiveDataBase::Handle(* synfig::Renderer::FuncCopy)(PrimitiveDataBase::Handle primitive) |
typedef PrimitiveDataBase::Handle(* synfig::Renderer::FuncConvert)(PrimitiveDataBase::Handle primitive) |
typedef KeyCreate synfig::Renderer::KeyCopy |
typedef std::map<KeyCreate, FuncCreate> synfig::Renderer::BookCreate |
typedef std::map<KeyCopy, FuncCopy> synfig::Renderer::BookCopy |
typedef std::map<KeyConvert, FuncConvert> synfig::Renderer::BookConvert |
typedef std::map<KeyConvert, ConvertChainEntry> synfig::Renderer::BookConvertChain |
Renderer::Renderer | ( | ) |
|
virtual |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
References supported_primitives.
|
virtual |
References synfig::Renderer::PrimitiveBase::type.
|
virtual |
Reimplemented in synfig::RendererSoftware.
|
virtual |
Reimplemented in synfig::RendererSoftware.
|
virtual |
Reimplemented in synfig::RendererSoftware.
|
virtual |
Reimplemented in synfig::RendererSoftware.
|
protected |
Referenced by is_primitive_supported().