type @beta @extern Evas_Colorspace: int; [[Evas colorspace type]] /* FIXME: Need to get emile migrated. */ class @beta Evas.Canvas3D.Texture extends Evas.Canvas3D.Object implements Efl.File { [[Evas 3d canvas texture class]] data : Evas_Canvas3D_Texture_Data; methods { @property source_visible { [[The visibility flag of the source evas object of the given texture. Call \@ref evas_object_show on the source object and control the visibility using this function. By default the source object is visible. See also @.source_set. ]] set { } get { } values { visible: bool; [[$true for visible, $false for invisible.]] } } @property atlas_enable { [[Enable flag to generation texture unit with support atlas. Use this flag only when you cannot normalize texture coordinates. By default it is enabled. ]] set { } get { } values { use_atlas: bool; [[$true for enable, $false for disable.]] } } data_set { [[Set the data of the given texture. See also @Efl.File.file.set. ]] params { @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_ptr); [[Pointer to the data.]] } } source_set { [[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 existing evas object inside 3D scene. See also @.source_visible.set. ]] params { @in source: Efl.Canvas.Object; [[Source evas object to be used as the texture data.]] } } color_format_get @const { [[Get the color format of the given texture. EVAS_CANVAS3D_COLOR_FORMAT_RGBA will be returned if the texture has source object. Otherwise, the color format of the data will be returned. See also @.data_set, @Efl.File.file.set, @.source_set. ]] return: Evas_Colorspace; [[Color format of the given texture]] } size_get @const { [[Get the size of the given texture. If the texture has a source object, the size of the source object will be returned. Otherwise the size of the data (or image file) will be returned. See also @.data_set, @Efl.File.file.set, @.source_set. ]] params { @out w: int; [[Pointer to receive the width of the texture size.]] @out h: int; [[Pointer to receive the height of the texture size.]] } } wrap_set { [[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. Default wrap modes are both EVAS_CANVAS3D_WRAP_MODE_CLAMP for s and t. ]] params { @in s: Evas.Canvas3D.Wrap_Mode; [[Wrap mode for S-axis.]] @in t: Evas.Canvas3D.Wrap_Mode; [[Wrap mode for T-axis.]] } } wrap_get { [[Get the wrap mode of the given texture. See also @.wrap_set. ]] params { @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.]] } } filter_set { [[Set the filter of the given texture. Default filters are both EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST for s and t. ]] params { @in min: Evas.Canvas3D.Texture_Filter; [[Minification filter used when down-scaling.]] @in mag: Evas.Canvas3D.Texture_Filter; [[Magnification filter used when up-scaling.]] } } filter_get @const { [[Get the filter of the given texture. See also @.filter_set. ]] params { @out min: Evas.Canvas3D.Texture_Filter; [[Pointer to receive the minification filter.]] @out mag: Evas.Canvas3D.Texture_Filter; [[Pointer to receive the magnification filter.]] } } } implements { Efl.Object.constructor; Efl.Object.destructor; Evas.Canvas3D.Object.update_notify; Evas.Canvas3D.Object.change_notify; Efl.File.load; Efl.File.unload; @empty Evas.Canvas3D.Object.callback_register; @empty Evas.Canvas3D.Object.callback_unregister; } }