synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
synfig
layers
layer_meshtransform.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
21
/* ========================================================================= */
22
23
/* === S T A R T =========================================================== */
24
25
#ifndef __SYNFIG_LAYER_MESHTRANSFORM_H
26
#define __SYNFIG_LAYER_MESHTRANSFORM_H
27
28
/* === H E A D E R S ======================================================= */
29
30
#include "
layer_composite.h
"
31
#include <
synfig/mesh.h
>
32
#include <
synfig/polygon.h
>
33
34
/* === M A C R O S ========================================================= */
35
36
/* === T Y P E D E F S ===================================================== */
37
38
/* === C L A S S E S & S T R U C T S ======================================= */
39
40
namespace
synfig {
41
class
Mesh_Trans;
42
class
Layer_MeshTransform
:
public
Layer_Composite
43
{
44
protected
:
45
friend
class
Mesh_Trans
;
46
Mesh
mesh
;
47
Polygon
mask
;
48
49
int
max_texture_size
;
50
Real
max_texture_scale
;
51
52
private
:
53
Vector
texture_scale_dependency_from_x;
54
Vector
texture_scale_dependency_from_y;
55
Rect
world_bounds;
56
Rect
texture_bounds;
57
58
protected
:
59
void
update_mesh_and_mask
();
60
61
public
:
63
Layer_MeshTransform
();
65
virtual
~Layer_MeshTransform
();
66
67
synfig::Layer::Handle
hit_check
(
synfig::Context
context,
const
synfig::Point
&point)
const
;
68
virtual
Color
get_color
(
Context
context,
const
Point
&pos)
const
;
69
virtual
Rect
get_full_bounding_rect
(
Context
context)
const
;
70
virtual
etl::handle<synfig::Transform>
get_transform
()
const
;
71
virtual
bool
accelerated_render
(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
72
};
// END of class Layer_MeshTransform
73
74
};
// END of namespace synfig
75
76
/* === E N D =============================================================== */
77
78
#endif
Generated on Mon Nov 16 2015 15:33:42 for synfig-core by
1.8.1.2