A mesh object is a set of information on a visible geometrical object like character model, terrain or other structures and entities. More...
Typedefs | |
| typedef Eo | Evas_3D_Mesh |
| Mesh object handle. More... | |
Functions | |
| EOAPI void | evas_3d_mesh_frame_vertex_data_set (int frame, Evas_3D_Vertex_Attrib attrib, int stride, const void *data) |
| Set the vertex data of the key frame of the given mesh. More... | |
| EOAPI void | evas_3d_mesh_frame_vertex_data_copy_set (int frame, Evas_3D_Vertex_Attrib attrib, int stride, const void *data) |
| Set the vertex data of the key frame of the given mesh by copying from a buffer. More... | |
| EOAPI void * | evas_3d_mesh_frame_vertex_data_map (int frame, Evas_3D_Vertex_Attrib attrib) |
| Map the vertex buffer of the key frame of the given mesh. More... | |
| EOAPI void | evas_3d_mesh_vertex_count_set (unsigned int count) |
| Set the vertex count of the given mesh. More... | |
| EOAPI int | evas_3d_mesh_vertex_count_get (void) |
| Get the vertex count of the given mesh. More... | |
| void | eo_cxx::evas_3d_mesh::frame_vertex_data_set (int frame_, Evas_3D_Vertex_Attrib attrib_, int stride_, const void *data_) const |
| Set the vertex data of the key frame of the given mesh. More... | |
| void | eo_cxx::evas_3d_mesh::frame_vertex_data_copy_set (int frame_, Evas_3D_Vertex_Attrib attrib_, int stride_, const void *data_) const |
| Set the vertex data of the key frame of the given mesh by copying from a buffer. More... | |
| void * | eo_cxx::evas_3d_mesh::frame_vertex_data_map (int frame_, Evas_3D_Vertex_Attrib attrib_) const |
| Map the vertex buffer of the key frame of the given mesh. More... | |
| void | eo_cxx::evas_3d_mesh::vertex_count_set (unsigned int count_) const |
| Set the vertex count of the given mesh. More... | |
| int | eo_cxx::evas_3d_mesh::vertex_count_get () const |
| Get the vertex count of the given mesh. More... | |
| void | evas_3d_mesh::frame_vertex_data_set (int frame_, Evas_3D_Vertex_Attrib attrib_, int stride_, const void *data_) const |
| Set the vertex data of the key frame of the given mesh. More... | |
| void | evas_3d_mesh::frame_vertex_data_copy_set (int frame_, Evas_3D_Vertex_Attrib attrib_, int stride_, const void *data_) const |
| Set the vertex data of the key frame of the given mesh by copying from a buffer. More... | |
| void * | evas_3d_mesh::frame_vertex_data_map (int frame_, Evas_3D_Vertex_Attrib attrib_) const |
| Map the vertex buffer of the key frame of the given mesh. More... | |
| void | evas_3d_mesh::vertex_count_set (unsigned int count_) const |
| Set the vertex count of the given mesh. More... | |
| int | evas_3d_mesh::vertex_count_get () const |
| Get the vertex count of the given mesh. More... | |
A mesh object is a set of information on a visible geometrical object like character model, terrain or other structures and entities.
Evas 3D support key-frame-based mesh animation, so a mesh can have multiple frames and each frame has its own material and geometric data. Like other data objects, a mesh can be located on a scene by being contained in a node. The mesh is transformed from its modeling coordinate space into the node's coordinate space. Also, the frame number is saved in the containing node. So, one can locate multiple nodes having same mesh object with different animation frame and transform. Unlike camera and light object, multiple meshes can be contained in a single node.
Mesh object handle.
| EOAPI void evas_3d_mesh_frame_vertex_data_set | ( | int | frame, |
| Evas_3D_Vertex_Attrib | attrib, | ||
| int | stride, | ||
| const void * | data | ||
| ) |
Set the vertex data of the key frame of the given mesh.
This function make evas read from the given buffer whenever it requires. If you want to release the buffer after calling this functions, use evas_3d_mesh_frame_vertex_data_copy_set() instead.
After setting the vertex data, further modifications should be protected by map/unmap pair.
| [in] | frame | The number of the key frame. |
| [in] | attrib | Vertex attribute ID. |
| [in] | stride | Stride to go to the next vertex (in bytes). |
| [in] | data | Pointer to the vertex data buffer. |
Referenced by eo_cxx::evas_3d_mesh::frame_vertex_data_set(), and evas_3d_mesh::frame_vertex_data_set().
| EOAPI void evas_3d_mesh_frame_vertex_data_copy_set | ( | int | frame, |
| Evas_3D_Vertex_Attrib | attrib, | ||
| int | stride, | ||
| const void * | data | ||
| ) |
Set the vertex data of the key frame of the given mesh by copying from a buffer.
This function allocates internal vertex buffer and copy from the given buffer. So you can release the buffer. If you want to modify the vertex data use evas_3d_mesh_frame_vertex_data_map(). After finishing the modifications, you should call evas_3d_mesh_frame_vertex_data_unmap().
| [in] | frame | The number of the key frame. |
| [in] | attrib | Vertex attribute ID. |
| [in] | stride | Stride to go to the next vertex (in bytes). |
| [in] | data | Pointer to the vertex data buffer. |
Referenced by eo_cxx::evas_3d_mesh::frame_vertex_data_copy_set(), and evas_3d_mesh::frame_vertex_data_copy_set().
| EOAPI void* evas_3d_mesh_frame_vertex_data_map | ( | int | frame, |
| Evas_3D_Vertex_Attrib | attrib | ||
| ) |
Map the vertex buffer of the key frame of the given mesh.
After manipulating the mapped buffer, evas_3d_mesh_frame_vertex_data_unmap() should be called to properly download the data to the engine. If the data was set using evas_3d_mesh_frame_vertex_data_set(), pointer to the original buffer will be returned. Otherwise, the returned pointer can differ every time calling this function.
| [in] | frame | The number of the key frame. |
| [in] | attrib | Vertex attribute ID. |
Referenced by eo_cxx::evas_3d_mesh::frame_vertex_data_map(), and evas_3d_mesh::frame_vertex_data_map().
| EOAPI void evas_3d_mesh_vertex_count_set | ( | unsigned int | count | ) |
Set the vertex count of the given mesh.
Each key frame should have same vertex count to be properly interpolated. Key frames have their own vertex data and the data should have more vertices than the mesh's vertex count.
Default vertex count is 0.
| [in] | count | Vertex count. |
Referenced by eo_cxx::evas_3d_mesh::vertex_count_set(), and evas_3d_mesh::vertex_count_set().
| EOAPI int evas_3d_mesh_vertex_count_get | ( | void | ) |
Get the vertex count of the given mesh.
Referenced by eo_cxx::evas_3d_mesh::vertex_count_get(), and evas_3d_mesh::vertex_count_get().
|
inline |
Set the vertex data of the key frame of the given mesh.
This function make evas read from the given buffer whenever it requires. If you want to release the buffer after calling this functions, use evas_3d_mesh_frame_vertex_data_copy_set() instead.
After setting the vertex data, further modifications should be protected by map/unmap pair.
| frame | The number of the key frame. |
| attrib | Vertex attribute ID. |
| stride | Stride to go to the next vertex (in bytes). |
| data | Pointer to the vertex data buffer. |
References evas_3d_mesh_frame_vertex_data_set().
|
inline |
Set the vertex data of the key frame of the given mesh by copying from a buffer.
This function allocates internal vertex buffer and copy from the given buffer. So you can release the buffer. If you want to modify the vertex data use evas_3d_mesh_frame_vertex_data_map(). After finishing the modifications, you should call evas_3d_mesh_frame_vertex_data_unmap().
| frame | The number of the key frame. |
| attrib | Vertex attribute ID. |
| stride | Stride to go to the next vertex (in bytes). |
| data | Pointer to the vertex data buffer. |
References evas_3d_mesh_frame_vertex_data_copy_set().
|
inline |
Map the vertex buffer of the key frame of the given mesh.
After manipulating the mapped buffer, evas_3d_mesh_frame_vertex_data_unmap() should be called to properly download the data to the engine. If the data was set using evas_3d_mesh_frame_vertex_data_set(), pointer to the original buffer will be returned. Otherwise, the returned pointer can differ every time calling this function.
| frame | The number of the key frame. |
| attrib | Vertex attribute ID. |
References evas_3d_mesh_frame_vertex_data_map().
|
inline |
Set the vertex count of the given mesh.
Each key frame should have same vertex count to be properly interpolated. Key frames have their own vertex data and the data should have more vertices than the mesh's vertex count.
Default vertex count is 0.
| count | Vertex count. |
References evas_3d_mesh_vertex_count_set().
|
inline |
Get the vertex count of the given mesh.
References evas_3d_mesh_vertex_count_get().
|
inline |
Set the vertex data of the key frame of the given mesh.
This function make evas read from the given buffer whenever it requires. If you want to release the buffer after calling this functions, use evas_3d_mesh_frame_vertex_data_copy_set() instead.
After setting the vertex data, further modifications should be protected by map/unmap pair.
| frame | The number of the key frame. |
| attrib | Vertex attribute ID. |
| stride | Stride to go to the next vertex (in bytes). |
| data | Pointer to the vertex data buffer. |
References evas_3d_mesh_frame_vertex_data_set().
|
inline |
Set the vertex data of the key frame of the given mesh by copying from a buffer.
This function allocates internal vertex buffer and copy from the given buffer. So you can release the buffer. If you want to modify the vertex data use evas_3d_mesh_frame_vertex_data_map(). After finishing the modifications, you should call evas_3d_mesh_frame_vertex_data_unmap().
| frame | The number of the key frame. |
| attrib | Vertex attribute ID. |
| stride | Stride to go to the next vertex (in bytes). |
| data | Pointer to the vertex data buffer. |
References evas_3d_mesh_frame_vertex_data_copy_set().
|
inline |
Map the vertex buffer of the key frame of the given mesh.
After manipulating the mapped buffer, evas_3d_mesh_frame_vertex_data_unmap() should be called to properly download the data to the engine. If the data was set using evas_3d_mesh_frame_vertex_data_set(), pointer to the original buffer will be returned. Otherwise, the returned pointer can differ every time calling this function.
| frame | The number of the key frame. |
| attrib | Vertex attribute ID. |
References evas_3d_mesh_frame_vertex_data_map().
|
inline |
Set the vertex count of the given mesh.
Each key frame should have same vertex count to be properly interpolated. Key frames have their own vertex data and the data should have more vertices than the mesh's vertex count.
Default vertex count is 0.
| count | Vertex count. |
References evas_3d_mesh_vertex_count_set().
|
inline |
Get the vertex count of the given mesh.
References evas_3d_mesh_vertex_count_get().