collapse_all
expand_all
collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++
DPSF API Documentation
ParticleSystemManager
.
.
::
..DrawAllParticleSystemsAnimationToFiles Method
gradient

Draws the Particle Systems' Animation over the given timespan to a sequence of Image files.

NOTE: This function is not available on the Xbox 360.

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public void DrawAllParticleSystemsAnimationToFiles(

 GraphicsDevice cGraphicsDevice,

 int iImageWidth,

 int iImageHeight,

 string sDirectoryName,

 float fTotalAnimationTime,

 float fTimeStep,

 bool bCreateAnimatedGIF,

 bool bCreateTileSetImage

)

Visual Basic

Public Sub DrawAllParticleSystemsAnimationToFiles (

 cGraphicsDevice As GraphicsDevice,

 iImageWidth As Integer,

 iImageHeight As Integer,

 sDirectoryName As String,

 fTotalAnimationTime As Single,

 fTimeStep As Single,

 bCreateAnimatedGIF As Boolean,

 bCreateTileSetImage As Boolean

)

Visual C++

public:

void DrawAllParticleSystemsAnimationToFiles(

 GraphicsDevicecGraphicsDevice,

 int iImageWidth,

 int iImageHeight,

 StringsDirectoryName,

 float fTotalAnimationTime,

 float fTimeStep,

 bool bCreateAnimatedGIF,

 bool bCreateTileSetImage

)

Parameters

cGraphicsDevice

Type: GraphicsDevice

A Graphics Device to use for drawing; The Graphics Device contents will not be overwritten.

NOTE: The size of the Texture before scaling will be the size of the Graphics Device's Viewport.

iImageWidth

Type: System..::..Int32

The desired Width of the Image files generated

iImageHeight

Type: System..::..Int32

The desired Height of the Image files generated

sDirectoryName

Type: System..::..String

The Directory to store the generated Image files in.

NOTE: This Directory will be created in the same directory as the application's executable.

fTotalAnimationTime

Type: System..::..Single

The amount of Time in seconds that the Animation should run for

fTimeStep

Type: System..::..Single

The amount of Time that should elapse between frames (i.e. 1.0 / 30.0 = 30fps)

bCreateAnimatedGIF

Type: System..::..Boolean

Set this to true to also produce an animated GIF from the Image files generated

bCreateTileSetImage

Type: System..::..Boolean

Set this to true to also produce a Tile Set from the Image files generated. Be careful when setting this to true as the system may run out of memory and throw an exception if the Tile Set image to generate is too large. Exactly how large it is allowed to be differs from system to system.

collapse_allSee Also

ParticleSystemManager Class

ParticleSystemManager Members

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com