Beispiel #1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            Content.RootDirectory = "Content";

            Pax4Camera camera = new Pax4Camera("camera", null);

            Pax4Sound sound = new Pax4Sound("sound", null);

            Pax4Touch touch = new Pax4Touch("touch", null);

            Pax4Effect effect = new Pax4Effect("effect", null);

            Pax4Model model = new Pax4Model("model", null);

            Pax4Texture2D texture2D = new Pax4Texture2D("texture2D", null);

            Pax4SpriteFont spriteFont = new Pax4SpriteFont("spriteFont", null);

            //Pax4ParticleEffect particleEffect = new Pax4ParticleEffect();
            //_particleEffect = Pax4ParticleEffect._current._particleEffectIceStarTrail;

            base.Initialize();

            //_graphicsDeviceManager.IsFullScreen = true;
            _graphicsDeviceManager.ApplyChanges();

#if WINDOWS
            this.IsMouseVisible = true;
#endif
        }
Beispiel #2
0
        public override void Dx()
        {
            _texture2D.Clear();
            _texture2D = null;
            //_dx = false;

            if (this == _current)
            {
                _current = null;
            }

            base.Dx();
        }
Beispiel #3
0
        //private bool _dx = true;

        public Pax4Texture2D(String p_name, PaxState p_parent0)
            : base(p_name, p_parent0)
        {
            _current = this;
        }