Function


mgiControlInit

Initializes MgiControl.

Syntax

#include <mgi/Control.h>
void mgiControlInit( MgiControl *control_ptr )

Description

Initializes MgiControl.

See Also

MgiControl

mgiControlBind

Links MgiControl to a node.

Syntax

#include <mgi/Control.h>
void mgiControlBind( MgiControl *control_ptr,
                     MgiCharacter *char_ptr )

Description

Links MgiControl to a node.

See Also

MgiControl MgiCharacter

mgiControlGetULong

Gets unsigned integer value from field of node.

Syntax

#include <mgi/Control.h>
u32 mgiControlGetULong( const MgiControl *control_ptr )

Description

Gets unsigned integer value from field of node.

mgiControlGetSLong

Gets signed integer value from field of node.

Syntax

#include <mgi/Control.h>
s32 mgiControlGetSLong( const MgiControl *control_ptr )

Description

Gets signed integer value from field of node.

mgiControlGetFloat

Gets floating point value from field of node.

Syntax

#include <mgi/Control.h>
float mgiControlGetFloat( const MgiControl *control_ptr )

Description

Gets floating point value from field of node.

mgiControlGetULongs

Gets array of unsigned integer values from field of node and puts it into array.

Syntax

#include <mgi/Control.h>
void mgiControlGetULongs( const MgiControl *control_ptr, u32 *array )

Description

Gets array of unsigned integer values from field of node and puts it into array.

mgiControlGetSLongs

Gets array of signed integer values from field of node and puts it into array.

Syntax

#include <mgi/Control.h>
void mgiControlGetSLongs( const MgiControl *control_ptr, s32 *array )

Description

Gets array of signed integer values from field of node and puts it into array.

mgiControlGetFloats

Gets array of floating point values from field of node and puts it into array.

Syntax

#include <mgi/Control.h>
void mgiControlGetFloats( const MgiControl *control_ptr, float *array )

Description

Gets array of floating point values from field of node and puts it into array.

mgiControlSetULong

Sets unsigned integer value to field of node.

Syntax

#include <mgi/Control.h>
void mgiControlSetULong( MgiControl *control_ptr, const u32 value )

Description

Sets unsigned integer value to field of node.

mgiControlSetSLong

Sets signed integer value to field of node.

Syntax

#include <mgi/Control.h>
void mgiControlSetSLong( MgiControl *control_ptr, const s32 value )

Description

Sets signed integer value to field of node.

mgiControlSetFloat

Sets floating point value to field of node.

Syntax

#include <mgi/Control.h>
void mgiControlSetFloat( MgiControl *control_ptr, const float value )

Description

Sets floating point value to field of node.

mgiControlSetULongs

Sets array of unsigned integer values to field of node.

Syntax

#include <mgi/Control.h>
void mgiControlSetULongs( MgiControl *control_ptr, const u32 *array )

Description

Sets array of unsigned integer values to field of node.

mgiControlSetSLongs

Sets array of signed integer values to field of node.

Syntax

#include <mgi/Control.h>
void mgiControlSetSLongs( MgiControl *control_ptr, const s32 *array )

Description

Sets array of signed integer values to field of node.

mgiControlSetFloats

Sets array of floating point values to field of node.

Syntax

#include <mgi/Control.h>
void mgiControlSetFloats( MgiControl *control_ptr, const float *array )

Description

Sets array of floating point values to field of node.

Macros



_mgiControlUnbind

Separates MgiControl from node.

Syntax

#include <mgi/Control.h>
_mgiControlUnbind(control_ptr)

Description

Separates MgiControl from node.

Structure



MgiControl


#include <mgi/Control.h>

typedef struct _MgiControl
{
    char                *node_name;
    struct _MhcNode     *node_ptr;
    u32                 field;
    u32                 size;
    union
    {
        void	*ptr;
        u32	*u32_ptr;
        s32	*s32_ptr;
        float	*float_ptr;
    }                   access;
} MgiControl;