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
DPSF
<
(Of
<
(<'Particle, Vertex>)>)>..::..SetGraphicsDevice Method
gradient

Sets the Graphics Device to use to the given graphics device.

NOTE: This only has an effect if the particle system does not inherit from DrawableGameComponent (i.e. InheritsDrawableGameComponent == false. i.e. using the DPSF.dll, not DPSFAsDrawableGameComponent.dll), since the Graphics Device is read-only when inheriting from DrawableGameComponent. The Game object's Graphics Device is always used when inheriting from DrawableGameComponent.

Namespace: DPSF

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

collapse_allSyntax

C#

public void SetGraphicsDevice(

 GraphicsDevice graphicsDevice

)

Visual Basic

Public Sub SetGraphicsDevice (

 graphicsDevice As GraphicsDevice

)

Visual C++

public:

void SetGraphicsDevice(

 GraphicsDevicegraphicsDevice

)

Parameters

graphicsDevice

Type: GraphicsDevice

The graphics device to use.

collapse_allSee Also

DPSF<(Of <(<'Particle, Vertex>)>)> Class

DPSF<(Of <(<'Particle, Vertex>)>)> Members

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com