Macros | Functions
Generic 3D Object Descriptions

Evas 3D object is a generic type of all evas 3D objects like scene, node, camera, light, mesh, texture and material. More...

Macros

#define EVAS_CANVAS3D_OBJECT_EVENT_CLICKED   (&(_EVAS_CANVAS3D_OBJECT_EVENT_CLICKED))
 Clicked Event.
 
#define EVAS_CANVAS3D_OBJECT_EVENT_COLLISION   (&(_EVAS_CANVAS3D_OBJECT_EVENT_COLLISION))
 Collision Event.
 

Functions

EOAPI void evas_canvas3d_object_change (Eo *obj, Evas_Canvas3D_State state, Evas_Canvas3D_Object *ref)
 Notify the object regarding its state change. More...
 
EOAPI Evas_Canvas3D_Object_Type evas_canvas3d_object_type_get (const Eo *obj)
 Returns the type of the object.
 
EOAPI void evas_canvas3d_object_type_set (Eo *obj, Evas_Canvas3D_Object_Type type)
 Returns the type of the object. More...
 
EOAPI Eina_Bool evas_canvas3d_object_dirty_get (const Eo *obj, Evas_Canvas3D_State state)
 Returns the status of a particular state of the object. More...
 
EOAPI void evas_canvas3d_object_update (Eo *obj)
 Update request for the object.
 
EOAPI void evas_canvas3d_object_update_notify (Eo *obj)
 Pure virtual update_notify function. More...
 
EOAPI void evas_canvas3d_object_change_notify (Eo *obj, Evas_Canvas3D_State state, Evas_Canvas3D_Object *ref)
 Pure virtual change_notify function. More...
 
EOAPI void evas_canvas3d_object_callback_register (Eo *obj, const char *event, const void *data)
 Pure virtual register samrt callback function. More...
 
EOAPI void evas_canvas3d_object_callback_unregister (Eo *obj, const char *event)
 Pure virtual unregister smart callback function. More...
 

Detailed Description

Evas 3D object is a generic type of all evas 3D objects like scene, node, camera, light, mesh, texture and material.

Evas 3D object is basically reference counted. Any successful function call on an object which make a reference to an another object will increase the reference count. When the reference count gets to 0, the object will be actually deleted.

Any modifications are automatically propagated to other objects referencing the modified objects. As a result, if the scene object is set to modified state, all image objects having the scene as a rendering source are marked as dirty, so that rendering will be updated at next frame. But all these things are done internally, so feel free to forget about calling some kind of update functions.

Function Documentation

◆ evas_canvas3d_object_change()

EOAPI void evas_canvas3d_object_change ( Eo obj,
Evas_Canvas3D_State  state,
Evas_Canvas3D_Object *  ref 
)

Notify the object regarding its state change.

Parameters
[in]stateState that is changed.
[in]refThe Object that caused the change.

◆ evas_canvas3d_object_type_set()

EOAPI void evas_canvas3d_object_type_set ( Eo obj,
Evas_Canvas3D_Object_Type  type 
)

Returns the type of the object.

Parameters
[in]type

◆ evas_canvas3d_object_dirty_get()

EOAPI Eina_Bool evas_canvas3d_object_dirty_get ( const Eo obj,
Evas_Canvas3D_State  state 
)

Returns the status of a particular state of the object.

Parameters
[in]stateState whose status is being asked.

◆ evas_canvas3d_object_update_notify()

EOAPI void evas_canvas3d_object_update_notify ( Eo obj)

Pure virtual update_notify function.

Update request for the object.

◆ evas_canvas3d_object_change_notify()

EOAPI void evas_canvas3d_object_change_notify ( Eo obj,
Evas_Canvas3D_State  state,
Evas_Canvas3D_Object *  ref 
)

Pure virtual change_notify function.

Update request for the object.

Parameters
[in]stateState that is changed.
[in]refThe Object that caused the change.

◆ evas_canvas3d_object_callback_register()

EOAPI void evas_canvas3d_object_callback_register ( Eo obj,
const char *  event,
const void *  data 
)

Pure virtual register samrt callback function.

Parameters
[in]eventEvent type.
[in]dataUser data.

◆ evas_canvas3d_object_callback_unregister()

EOAPI void evas_canvas3d_object_callback_unregister ( Eo obj,
const char *  event 
)

Pure virtual unregister smart callback function.

Parameters
[in]eventEvent type.