Objects Reference

class param_desc

Definition

class param_desc
{
public:
    char name[64];
    int type;
    void *data;
   
    char *get_string();
    void set_string(char *str);
};

Data Members

Member Type Description
name char [] the parameter name
type int the parameter type
data void * pointer to the parameter data

Methods

get_string, set_string

Remarks

This class holds information on Fly3D plug-in object parameters. Each class defined in a Fly3D plug-in (derived from bsp_object) can have any number of parameters. Each parameter must have an associated param_desc class describing its data.

The types of parameters available are:

>255 - parameter is a pointer to a class in the stock obejcts list that has this type id
<255 - parameter is a pointer to a class in the active objects list that has this type id

Type

Description

Data type

Data size (sizeof)

‘a’

angle

float

4

‘i’

integer

int

4

‘f ‘

floating point

float

4

‘v’

float vector (x,y,z)

vector

12

‘c’

float color (r,g,b)

vector

12

‘b’

Bezier curve

bezier_curve *

4

'h'

Bezier patch

bezier_patch *

4

‘3’

3ds mesh model

mesh *

4

‘m’

fao animate mesh

anim_mesh *

4

‘w’

wav sound object

sound *

4

‘p’

picture file

int

4

‘o’

stock object

bsp_object *

4

‘d’

active object

bsp_object *

4

See Also

class_desc, flydll, flydllgroup