summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_canvas3d_material.eo
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-06-17 16:31:14 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-06-17 17:52:17 +0200
commitd409df1caa38ae7eac87f85ff4113484bc5b2099 (patch)
tree2adcbeadf2f4b2e7f4e7ba327a574c6620c23663 /src/lib/evas/canvas/evas_canvas3d_material.eo
parent9bf6f14a8a59195fe9be004aaff446c51474fc5d (diff)
evas: change interface evas_3d to evas_canvas3d
Summary: Regard to https://phab.enlightenment.org/T2479 it is need for right generation Eolian files Reviewers: cedric Subscribers: cedric, tasn Differential Revision: https://phab.enlightenment.org/D2711 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_canvas3d_material.eo')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_material.eo153
1 files changed, 153 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_material.eo b/src/lib/evas/canvas/evas_canvas3d_material.eo
new file mode 100644
index 0000000..f465a1b
--- /dev/null
+++ b/src/lib/evas/canvas/evas_canvas3d_material.eo
@@ -0,0 +1,153 @@
1class Evas_Canvas3D_Material (Evas_Canvas3D_Object, Evas.Common_Interface)
2{
3 legacy_prefix: null;
4 data: Evas_Canvas3D_Material_Data;
5 methods {
6 color_set {
7 /*@
8 Set the material attribute color of the given material.
9
10 Material color is used also when texture map is enabled. The colors will be
11 modulated (multiplied). To controll the color contribution of a material
12 attribute, use gray color. Setting color value for normal attribute has no
13 effect.
14
15 Default color is as follows.
16
17 Ambient : (0.2, 0.2, 0.2, 1.0)
18 Diffuse : (0.8, 0.8, 0.8, 1.0)
19 Specular : (1.0, 1.0, 1.0, 1.0)
20 Emission : (0.0, 0.0, 0.0, 1.0)
21 Normal : Not used
22
23 @ingroup Evas_Canvas3D_Material
24 */
25
26 params {
27 @in attrib: Evas_Canvas3D_Material_Attrib; /*@ Material attribute ID. */
28 @in r: Evas_Real; /*@ Red component of the color. */
29 @in g: Evas_Real; /*@ Green component of the color. */
30 @in b: Evas_Real; /*@ Blue component of the color. */
31 @in a: Evas_Real; /*@ Alpha component of the color. */
32 }
33 }
34
35 color_get @const {
36 /*@
37 Get the material attribute color of the given material.
38
39 @see evas_canvas3d_material_color_set()
40
41 @ingroup Evas_Canvas3D_Material
42 */
43 params {
44 @in attrib: Evas_Canvas3D_Material_Attrib; /*@ Material attribute ID. */
45 @out r: Evas_Real; /*@ Pointer to receive red component of the color. */
46 @out g: Evas_Real; /*@ Pointer to receive green component of the color. */
47 @out b: Evas_Real; /*@ Pointer to receive blue component of the color. */
48 @out a: Evas_Real; /*@ Pointer to receive alpha component of the color. */
49 }
50 }
51
52 @property enable {
53 set {
54 /*@
55 Set the material attribute enable flag of the given material.
56
57 You might want to disable some material reflection contribution. For
58 example,Emission attribute is rarely used. Disabling unused attributes
59 might help the shading less complex so that can get speed up.
60
61 By default, diffuse and specular is enabled.
62
63 @ingroup Evas_Canvas3D_Material
64 */
65 }
66 get {
67 /*@
68 Get the material attribute enable flag of the given material.
69
70 @see evas_canvas3d_material_enable_set()
71
72 @return @c EINA_TRUE if enabled, or @c EINA_FALSE if not.
73 @ingroup Evas_Canvas3D_Material
74 */
75 }
76 keys {
77 attrib: Evas_Canvas3D_Material_Attrib; /*@ Material attribute ID. */
78 }
79 values {
80 enable: bool; /*@ Whether to enable the attribute (@c EINA_TRUE), or not (@c EINA_FALSE). */
81 }
82 }
83
84 @property shininess {
85 set {
86 /*@
87 Set the shininess of the given material.
88
89 Shininess is only used when specular attribute is enabled. Higher shininess
90 value will make the object more shiny.
91
92 Default shininess value is 150.0.
93
94 @see evas_canvas3d_material_enable_set()
95
96 @ingroup Evas_Canvas3D_Material
97 */
98 }
99 get {
100 /*@
101 Get the shininess of the given material.
102
103 @see evas_canvas3d_material_shininess_set()
104
105 @return The shininess value.
106 @ingroup Evas_Canvas3D_Material
107 */
108 }
109 values {
110 shininess: Evas_Real; /*@ Shininess value. */
111 }
112 }
113
114 @property texture {
115 set {
116 /*@
117 Set the texture of the given material.
118
119 You have to enable the desired attribute first.
120
121 @see evas_canvas3d_material_enable_set()
122
123 @ingroup Evas_Canvas3D_Material
124 */
125 }
126 get {
127 /*@
128 Get the texture of the given material.
129
130 @see evas_canvas3d_material_texture_set()
131
132 @return The texture that is set to the given material attribute.
133
134 @ingroup Evas_Canvas3D_Material
135 */
136 }
137
138 keys {
139 attrib: Evas_Canvas3D_Material_Attrib; /*@ Material attribute ID. */
140 }
141 values {
142 texture: Evas_Canvas3D_Texture *;
143 }
144 }
145 }
146 implements {
147 Eo.Base.constructor;
148 Eo.Base.destructor;
149 Evas_Canvas3D_Object.update_notify;
150 Evas_Canvas3D_Object.change_notify;
151 }
152
153}