Exemple #1
0
 public ScreenQuad(Game1 game)
 {
     Game = game;
     corners = new VertexPositionTexture[4];
     corners[0].Position = new Vector3(0, 0, 0);
     corners[0].TextureCoordinate = Vector2.Zero;
 }
Exemple #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Exemple #3
0
 public CrepuscularRays(Game1 game, Vector2 lightScreenSourcePos, string lightSourceImage, float lightSourceSize, float density, float decay, float weight, float exposure)
     : base(game)
 {
     lsMask = new LightSourceMask(game, lightScreenSourcePos, lightSourceImage, lightSourceSize);
     rays = new LightRay(game, lightScreenSourcePos, density, decay, weight, exposure);
     AddPostProcess(lsMask);
     AddPostProcess(rays);
 }
Exemple #4
0
 public LightSourceMask(Game1 game, Vector2 sourcePos, string lightSourceasset, float lightSize)
     : base(game)
 {
     UsesVertexShader = true;
     lighScreenSourcePos = sourcePos;
     this.lightSourceasset = lightSourceasset;
     this.lightSize = lightSize;
 }
Exemple #5
0
        public LightRay(Game1 game, Vector2 sourcePos, float density, float decay, float weight, float exposure)
            : base(game)
        {
            lighScreenSourcePos = sourcePos;

            Density = density;
            Decay = decay;
            Weight = weight;
            Exposure = exposure;
            UsesVertexShader = true;
        }
 public FrameRateCounter(Game1 game)
     : base(game)
 {
     content = new ContentManager(game.Services);
     content.RootDirectory = "Content";
 }
Exemple #7
0
 public BasePostProcess(Game1 game)
 {
     Game = game;
 }
Exemple #8
0
 public BloomComponent(Game1 game)
     : base(game)
 {
     if (game == null)
         throw new ArgumentNullException("game");
 }
 public BasePostProcessingEffect(Game1 game)
 {
     Game = game;
 }
 public PostProcessingManager(Game1 game)
 {
     Game = game;
 }