2015-06-19 02:34:48 -07:00
|
|
|
class Evas.Canvas3D.Texture (Evas.Canvas3D.Object, Evas.Common_Interface)
|
2014-04-14 03:03:47 -07:00
|
|
|
{
|
2014-04-26 00:10:06 -07:00
|
|
|
legacy_prefix: null;
|
2015-06-17 07:31:14 -07:00
|
|
|
data : Evas_Canvas3D_Texture_Data;
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
|
|
|
@property source_visible {
|
2014-04-14 03:03:47 -07:00
|
|
|
set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Set the visibility flag of the source evas object of the given texture.
|
|
|
|
|
|
|
|
Recommend to call evas_object_show() on the source object and controll the
|
|
|
|
visibility using this function.
|
|
|
|
|
|
|
|
By default, source object is visible.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_source_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
}
|
|
|
|
get {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Get the visibility flag of the source evas object of the given texture.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_source_visible_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:13:08 -07:00
|
|
|
visible: bool; /*@ @c EINA_TRUE for visible, @c EINA_FALSE for invisible.*/
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property atlas_enable {
|
2015-04-22 06:19:02 -07:00
|
|
|
set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2015-04-22 06:19:02 -07:00
|
|
|
Set enable flag to generation texture unit with support atlas.
|
|
|
|
|
|
|
|
Use this flag only in case not normalize texture coordinates.
|
|
|
|
|
|
|
|
By default, is enabled.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2015-04-22 06:19:02 -07:00
|
|
|
*/
|
|
|
|
}
|
|
|
|
get {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2015-04-22 06:19:02 -07:00
|
|
|
Get enable flag of generation texture unit with support atlas.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2015-04-22 06:19:02 -07:00
|
|
|
*/
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:13:08 -07:00
|
|
|
use_atlas: bool; /*@ @c EINA_TRUE for enable, @c EINA_FALSE for disable.*/
|
2015-04-22 06:19:02 -07:00
|
|
|
}
|
|
|
|
}
|
2014-04-14 03:03:47 -07:00
|
|
|
data_set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Set the data of the given texture.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_file_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
@in color_format: Evas_Colorspace; /*@ Color format of the texture. */
|
|
|
|
@in w: int; /*@ Width of the data. */
|
|
|
|
@in h: int; /*@ Height of the data. */
|
|
|
|
@in data: const(void)*; /*@ Pointer to the data. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
file_set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Set the data of the given texture from file.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
@in file: const(char)*; /*@ Path to the image file. */
|
|
|
|
@in key: const(char)*; /*@ Key in the image file. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
source_set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Set the data of the given texture from an evas object.
|
|
|
|
|
|
|
|
Evas 3D support using existing evas object as a texture source. This feature
|
|
|
|
make it possible using any exisiting evas object inside 3D scene.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_source_visible_set
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
params {
|
2015-06-04 02:15:41 -07:00
|
|
|
@in source: Evas.Object *; /*@ Source evas object to be used as the texture data. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-22 09:13:24 -07:00
|
|
|
color_format_get @const {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Get the color format of the given texture.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
EVAS_CANVAS3D_COLOR_FORMAT_RGBA will be returned if the texture has source object.
|
2014-04-14 03:03:47 -07:00
|
|
|
Otherwise, the color format of the data will be returned.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_data_set()
|
|
|
|
@see evas_canvas3d_texture_file_set()
|
|
|
|
@see evas_canvas3d_texture_source_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
2015-04-22 06:19:02 -07:00
|
|
|
return: Evas_Colorspace;
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
|
2014-07-22 09:13:24 -07:00
|
|
|
size_get @const {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Get the size of the given texture.
|
|
|
|
|
|
|
|
If the texture has source object, the size of the source object will be
|
|
|
|
returned. Otherwise, the size of the data (or image file) will be returned.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_data_set()
|
|
|
|
@see evas_canvas3d_texture_file_set()
|
|
|
|
@see evas_canvas3d_texture_source_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
@out w: int; /*@ Pointer to receive the width of the texture size. */
|
|
|
|
@out h: int; /*@ Pointer to receive the height of the texture size. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wrap_set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Set the wrap mode of the given texture.
|
|
|
|
If the texture coordinate exceed range [0.0, 1.0] the values are modified
|
|
|
|
according to the wrap mode.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
Default wrap modes are both EVAS_CANVAS3D_WRAP_MODE_CLAMP for s and t.
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
params {
|
2015-06-19 02:34:48 -07:00
|
|
|
@in s: Evas.Canvas3D.Wrap_Mode; /*@ Wrap mode for S-axis. */
|
|
|
|
@in t: Evas.Canvas3D.Wrap_Mode; /*@ Wrap mode for T-axis. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wrap_get {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Get the wrap mode of the given texture.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_wrap_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
params {
|
2015-06-19 02:34:48 -07:00
|
|
|
@out s: Evas.Canvas3D.Wrap_Mode; /*@ Pointer to receive S-axis wrap mode. */
|
|
|
|
@out t: Evas.Canvas3D.Wrap_Mode; /*@ Pointer to receive T-axis wrap mode. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
filter_set {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Set the filter of the given texture.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
Default filters are both EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST for s and t.
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
params {
|
2015-06-19 02:34:48 -07:00
|
|
|
@in min: Evas.Canvas3D.Texture_Filter; /*@ Minification filter used when down-scaling. */
|
|
|
|
@in mag: Evas.Canvas3D.Texture_Filter; /*@ Magnification filter used when up-scaling. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-22 09:13:24 -07:00
|
|
|
filter_get @const {
|
2015-05-11 07:37:19 -07:00
|
|
|
/*@
|
2014-04-14 03:03:47 -07:00
|
|
|
Get the filter of the given texture.
|
|
|
|
|
|
|
|
@param texture The given texture.
|
|
|
|
@param min Pointer to receive the minification filter.
|
|
|
|
@param mag Pointer to receive the magnification filter.
|
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@see evas_canvas3d_texture_filter_set()
|
2014-04-14 03:03:47 -07:00
|
|
|
|
2015-06-17 07:31:14 -07:00
|
|
|
@ingroup Evas_Canvas3D_Texture
|
2014-04-14 03:03:47 -07:00
|
|
|
*/
|
|
|
|
params {
|
2015-06-19 02:34:48 -07:00
|
|
|
@out min: Evas.Canvas3D.Texture_Filter; /*@ Pointer to receive the minification filter. */
|
|
|
|
@out mag: Evas.Canvas3D.Texture_Filter; /*@ Pointer to receive the magnification filter. */
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
implements {
|
2014-06-20 03:14:59 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Eo.Base.destructor;
|
2015-06-19 02:34:48 -07:00
|
|
|
Evas.Canvas3D.Object.update_notify;
|
|
|
|
Evas.Canvas3D.Object.change_notify;
|
2014-04-14 03:03:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|