AnimBrush


Description:
Implements support for B3d Brush animations exported from 3dsMax.
Animated brushes are exported as a textured node: B3DEXT_ANIMBRUSH that has child nodes that control Color, Alpha, and Shininess animation.


Summary
EXT_AnimBrush
EXT_Surface
EXT_InitAnimBrush(ext.EXT_Entity,node)
EXT_FindAllBrushSurfaces(node,animBrush.EXT_AnimBrush)
EXT_UpdateAnimBrushes(ext.EXT_Entity)
EXT_NumAnimBrushes(ext.EXT_Entity)
EXT_DeleteAnimBrushes(ext.EXT_Entity)
EXT_DeleteAllAnimBrushes()


EXT_AnimBrush
Field description:
brush = brush to animate
linkColor = color controller node (x,y,z) = (r,g,b)
linkAlpha = alpha controller node (x) = alpha
linkShiny = shininess controller node (x) = shininess
surface.EXT_Surface = linked list of surfaces that use this brush
nextAnimBrush.EXT_AnimBrush = next in linked list


EXT_Surface
Description:
A simple type used to collect surfaces
Field description:
surface = surface handle
nextSurface.EXT_Surface = next in linked list


EXT_InitAnimBrush(ext.EXT_Entity,node)
Description:
Makes a new EXT_AnimBrush controller, and inserts it into the list of animated brush controllers owned by the EXT_Entity
Parameters:
ext.EXT_Entity = owner
node = root node of animated brush controllers
Return value:
None


EXT_FindAllBrushSurfaces(node,animBrush.EXT_AnimBrush)
Description:
This is a recursive function, that scans a hierarchy and records all surfaces that use the specified brush.
Parameters:
node = current node to examine
animBrush.EXT_AnimBrush = the EXT_AnimBrush used to record the surfaces
Return value:
None


EXT_UpdateAnimBrushes(ext.EXT_Entity)
Description:
Updates all EXT_AnimBrush controllers owned by an EXT_Entity
Parameters:
ext.EXT_Entity = owner
Return value:
None


EXT_NumAnimBrushes(ext.EXT_Entity)
Description:
Counts the number of EXT_AnimBrush controllers owned by an EXT_Entity
Parameters:
ext.EXT_Entity = owner
Return value:
number of EXT_AnimBrush controllers


EXT_DeleteAnimBrushes(ext.EXT_Entity)
Description:
Deletes all EXT_AnimBrush controllers owned by an EXT_Entity
Parameters:
ext.EXT_Entity = owner
Return value:
None


EXT_DeleteAllAnimBrushes()
Description:
Deletes all EXT_AnimBrush controllers
Return value:
None



Documentation generated by Cod2Doc on 17 Feb 2004.