Function


mhcNodeInit

Initializes node.

Syntax

#include <mhc/Node.h>
void mhcNodeInit( MhcNode *node_ptr,
                  const u32 type,
                  MhcNodeEvalFunc evaluate,
                  MhcNodeGetFieldPtrFunc get_field_ptr,
                  MhcNodeBindFunc bind,
                  MhcNodeDestroyFunc destroy )

Description

Initializes node.

mhcNodeBeginEval

Prepares for node evaluation.

Syntax

#include <mhc/Node.h>
void mhcNodeBeginEval( MhcNode *node_ptr )

Description

Prepares for node evaluation.

See Also

MhcNode

mhcNodeIsReadyToEvaluate

Checks whether node can be evaluated.

Syntax

#include <mhc/Node.h>
int mhcNodeIsReadyToEvaluate( MhcNode *node_ptr,
                              MhcScene *scene_ptr )

Description

Checks whether node can be evaluated.

mhcNodeComplete

Completes evaluation of node.

Syntax

#include <mhc/Node.h>
void mhcNodeComplete( MhcNode *node_ptr, MhcScene *scene_ptr )

Description

Completes evaluation of node. Nodes existing in this node can subsequently be evaluated.

mhcNodeAddInput

Input node

Syntax

#include <mhc/Node.h>
void mhcNodeAddInput( MhcNode *node_ptr, MhcReference *input_ptr )

Description

Input node

See Also

MhcReference

mhcNodeRemoveInput

Cancel input of node.

Syntax

#include <mhc/Node.h>
void mhcNodeRemoveInput( MhcNode *node_ptr, MhcReference *input_ptr )

Description

Cancel input of node.

mhcNodeAddOutput

Output node

Syntax

#include <mhc/Node.h>
void mhcNodeAddOutput( MhcNode *node_ptr, MhcReference *output_ptr )

Description

Output node

mhcNodeRemoveOutput

Cancel output of node.

Syntax

#include <mhc/Node.h>
void mhcNodeRemoveOutput( MhcNode *node_ptr, MhcReference *input_ptr )

Description

Cancel output of node.

mhcNodeSetInputMask

Sets bit mask indicating that input has been resolved.

Syntax

#include <mhc/Node.h>
void mhcNodeSetInputMask( MhcNode *node_ptr,
                          const u32 mask,
                          MhcScene *scene_ptr )

Description

Sets bit mask indicating that input has been resolved.

Macros



_mhcNodeActivate

Makes it possible to evaluate node.

Syntax

#include <mhc/Node.h>
_mhcNodeActivate(node_ptr)

Description

Makes it possible to evaluate node.

_mhcNodeInactivate

Makes it so that node cannot be evaluated.

Syntax

#include <mhc/Node.h>
_mhcNodeInactivate(node_ptr)

Description

Makes it so that node cannot be evaluated.

_mhcNodeIsActive

Checks whether node can be evaluated.

Syntax

#include <mhc/Node.h>
_mhcNodeIsActive(node_ptr)

Description

Checks whether node can be evaluated.

_mhcNodeSetName

Sets name

Syntax

#include <mhc/Node.h>
_mhcNodeSetName(node_ptr,name_str)

Description

Sets name

_mhcNodeEvaluate

Evaluates node

Syntax

#include <mhc/Node.h>
_mhcNodeEvaluate(node_ptr,instance_ptr,scene_ptr)

Description

Evaluates node

_mhcNodeGetFieldPtr

Returns pointer to field.

Syntax

#include <mhc/Node.h>
_mhcNodeGetFieldPtr(node_ptr,f_id,idx)

Description

Returns pointer to field.

_mhcNodeBind

Links node to scene.

Syntax

#include <mhc/Node.h>
_mhcNodeBind(node_ptr,module_ptr,scene_ptr)

Description

Links node to scene.

_mhcNodeDestroy

Destroys node

Syntax

#include <mhc/Node.h>
_mhcNodeDestroy(node_ptr)

Description

Destroys node

Structure



MhcNode

#include <mhc/Node.h>
typedef struct _MhcNode
{
    struct _MhcNode             *next_ptr;
    struct _MhcNode             *prev_ptr;
    u32                         type;
    char                        *name;
    u8                          flags;
    u8                          group_index; /* Sets only notes 
                                                 dependent on camera */
    u8                          unresolve_count;
    u8                          input_count;
    struct _MhcReference        *input_head_ptr;
    struct _MhcReference        *output_head_ptr;
    MhcInstanceList             instance_list;
    MhcNodeEvalFunc             evaluate;
    MhcNodeBindFunc             bind;
    MhcNodeGetFieldPtrFunc      get_field_ptr;
    MhcNodeDestroyFunc          destroy;
} MhcNode;

See Also

MhcReference