Exemplo n.º 1
0
 public BulletEffect(GameContext context) : base(context)
 {
     game          = context;
     effect        = CGHelper.CreateEffectFx5("Resources\\Shader\\bulletShader.fx", context.RenderContext.DeviceManager.Device);
     bulletTexture = context.LoadTexture("Resources\\Effect\\thunder.png");
     board         = new DividedPlaneBoard(context.RenderContext, bulletTexture, 100, new Vector2(10, 10), new PlaneBoard.PlaneBoardDescription(BlendStateManager.BlendStates.Add, effect, false, SubscribeLazerEffectVariable));
     board.Initialize();
 }
Exemplo n.º 2
0
 public Buffer build()
 {
     return(CGHelper.CreateBuffer(list, _context.DeviceManager.Device, BindFlags.IndexBuffer));
 }