|
Kanzi Graphics Engine
|
Mesh node representing a 3D mesh. More...
#include <user/scene_graph/kzu_object_common.h>#include <core/util/math/kzc_matrix4x4.h>#include <core/util/math/kzc_vector3.h>#include <system/kzs_types.h>#include <system/debug/kzs_error.h>#include <system/kzs_header.h>Functions | |
| kzsError | kzuMeshNodeCreate (const struct KzcMemoryManager *memoryManager, kzString name, struct KzuUIDomain *uiDomain, struct KzuMesh *mesh, struct KzuMeshNode **out_meshNode) |
| Creates a new mesh node. More... | |
| kzsError | kzuMeshNodeRegisterToFactory (const struct KzuFactory *factory) |
| Registers mesh node type to factory. More... | |
| kzsError | kzuMeshNodeSetMesh (struct KzuMeshNode *meshNode, struct KzuMesh *mesh) |
| Sets mesh for mesh node. More... | |
| struct KzuMesh * | kzuMeshNodeGetMesh (const struct KzuMeshNode *meshNode) |
| Gets a mesh from mesh node. More... | |
| struct KzuMeshNode * | kzuMeshNodeFromObjectNode (const struct KzuObjectNode *objectNode) |
| Returns mesh node from object node. More... | |
| struct KzuObjectNode * | kzuMeshNodeToObjectNode (const struct KzuMeshNode *meshNode) |
| Returns an object node from mesh node. More... | |
Variables | |
| const KzuObjectType | KZU_OBJECT_TYPE_MESH |
| Object type identifier for mesh objects. More... | |
Mesh node representing a 3D mesh.
Inherited from KzuObjectNode.
KzuMeshNode does not send or receive any messages.
KZU_PROPERTY_TYPE_MESH resource ID property specifies the KzuMesh belonging to this node. This mesh is only used if KZ_NULL was passed to kzuMeshNodeCreate as the mesh and the mesh was not set with kzuMeshNodeSetMesh.
KZU_PROPERTY_TYPE_DRAWN_AS_BOUNDING_BOX Boolean property specifies whether or not the mesh should be drawn as a bounding box. The default value is KZ_FALSE.
The following code creates a simple 3D box KzuMeshNode.
Copyright 2008-2019 by Rightware. All rights reserved.
| kzsError kzuMeshNodeCreate | ( | const struct KzcMemoryManager * | memoryManager, |
| kzString | name, | ||
| struct KzuUIDomain * | uiDomain, | ||
| struct KzuMesh * | mesh, | ||
| struct KzuMeshNode ** | out_meshNode | ||
| ) |
Creates a new mesh node.
| kzsError kzuMeshNodeRegisterToFactory | ( | const struct KzuFactory * | factory) |
Registers mesh node type to factory.
| kzsError kzuMeshNodeSetMesh | ( | struct KzuMeshNode * | meshNode, |
| struct KzuMesh * | mesh | ||
| ) |
Sets mesh for mesh node.
| struct KzuMesh* kzuMeshNodeGetMesh | ( | const struct KzuMeshNode * | meshNode) |
Gets a mesh from mesh node.
| struct KzuMeshNode* kzuMeshNodeFromObjectNode | ( | const struct KzuObjectNode * | objectNode) |
Returns mesh node from object node.
| struct KzuObjectNode* kzuMeshNodeToObjectNode | ( | const struct KzuMeshNode * | meshNode) |
Returns an object node from mesh node.
| const KzuObjectType KZU_OBJECT_TYPE_MESH |
Object type identifier for mesh objects.