public Particles(string givenTexture, string givenEffect, ContentManager Content, GraphicsDevice givenDevice)
 {
     rand = new Random();
     device = givenDevice;
     myTexture = Content.Load<Texture2D>(givenTexture);
     expEffect = Content.Load<Effect>(givenEffect);
     myVertexDeclaration = new VertexDeclaration(device, VertexExplosion.VertexElements);
     quatCam = new QuaternionCam(givenDevice.Viewport);
 }
Exemple #2
0
 public Particles(string givenTexture, string givenEffect, ContentManager Content, GraphicsDevice givenDevice)
 {
     rand                = new Random();
     device              = givenDevice;
     myTexture           = Content.Load <Texture2D>(givenTexture);
     expEffect           = Content.Load <Effect>(givenEffect);
     myVertexDeclaration = new VertexDeclaration(device, VertexExplosion.VertexElements);
     quatCam             = new QuaternionCam(givenDevice.Viewport);
 }