Reactor.PointParticleSystem.LoadContent C# (CSharp) Method

LoadContent() public method

Loads graphics for the particle system.
public LoadContent ( ) : void
return void
        public void LoadContent()
        {
            LoadParticleEffect();
            vertexDeclaration = new VertexDeclaration(PointParticleVertex.VertexElements);

            // Create a dynamic vertex buffer.
            int size = PointParticleVertex.SizeInBytes * particles.Length;

            vertexBuffer = new DynamicVertexBuffer(REngine.Instance._game.GraphicsDevice, vertexDeclaration, size,
                                                   BufferUsage.WriteOnly);
        }