Beispiel #1
0
        public virtual void Initialize(AetherEngine engine)
        {
            var   device = AetherContextMG.GetDevice(engine);
            float width  = (float)device.Viewport.Width;
            float height = (float)device.Viewport.Height;

            _aspectRatio = width / height;
            UpdateView();
            UpdateProjection();
        }
Beispiel #2
0
        public override void Initialize(AetherEngine engine)
        {
            base.Initialize(engine);
            Root = new PhotonPlasma();
            //Root = engine.RegisterParticle(new PhotonPlasma(), "Root");

            DefaultWalker = new PhotonsWalker();
            ((IInitializable)DefaultWalker).Initialize(engine);

            return;
        }
 public void Initialize(AetherEngine engine)
 {
     var device = AetherContextMG.GetDevice(engine);
     GenerateGeometry();
     Vector3 v = vertices[0].Position; 
     _bb = new BoundingBox(v,v);
     for(int i=1; i<vertices.Count; i++)//
     {
         v = vertices[i].Position;
         BoundingBox bb2 = new BoundingBox(v,v);
         BoundingBox.CreateMerged(ref _bb, ref bb2, out _bb);
     }
     InitializePrimitive(device);
 }
Beispiel #4
0
        public void Initialize(AetherEngine engine)
        {
            var device = AetherContextMG.GetDevice(engine);

            GenerateGeometry();
            Vector3 v = vertices[0].Position;

            _bb = new BoundingBox(v, v);
            for (int i = 1; i < vertices.Count; i++)//
            {
                v = vertices[i].Position;
                BoundingBox bb2 = new BoundingBox(v, v);
                BoundingBox.CreateMerged(ref _bb, ref bb2, out _bb);
            }
            InitializePrimitive(device);
        }
Beispiel #5
0
 public AetherXMLWriter(AetherEngine engine, Stream stream)
 {
     this.Engine = engine;
     this.stream = stream;
     writer      = XmlWriter.Create(stream, GetXmlWriterSettings());
 }
Beispiel #6
0
 public AetherBinaryWriter(AetherEngine engine, Stream stream)
 {
     this.Engine = engine;
     this.stream = stream;
     writer      = new BinaryWriter(stream, Encoding.UTF8);
 }
Beispiel #7
0
 public override void Initialize(AetherEngine engine)
 {
     base.Initialize(engine);
     this.Root = new CameraPlasma();
 }
Beispiel #8
0
 public static ContentManager GetContent(AetherEngine engine)
 {
     return(((AetherContextMG)engine.Context).Content);
 }
Beispiel #9
0
 public static GraphicsDevice GetDevice(AetherEngine engine)
 {
     return(((AetherContextMG)engine.Context).Device);
 }
Beispiel #10
0
 public AetherXMLReader(AetherEngine engine, Stream stream)
 {
     this.Engine = engine;
     this.stream = stream;
     reader      = XmlReader.Create(stream);
 }
Beispiel #11
0
 public override void Initialize(AetherEngine engine)
 {
     base.Initialize(engine);
     Root = new ChrononPlasma();
 }
Beispiel #12
0
 public virtual void Initialize(AetherEngine engine)
 {
     this.GraphicsDevice = AetherContextMG.GetDevice(engine);
     this.DeviceContext  = engine.Context.DeviceContext;
     CreateEffect();
 }
Beispiel #13
0
 void IInitializable.Initialize(AetherEngine engine)
 {
     this.engine          = engine;
     this.Manager         = engine.PhotonsMgr;
     this.startingElement = (IPhotonNode)engine.PhotonsMgr.Root;
 }
Beispiel #14
0
 public override void Initialize(AetherEngine engine)
 {
     base.Initialize(engine);
     this.Root = new BasePlasma <IMaterial>();
 }
Beispiel #15
0
 public ManagerCollection(AetherEngine engine)
 {
     this._engine = engine;
 }