public override void FlushEvents(ICollection <JournalEvent> events)
 {
     foreach (var e in events)
     {
         Flushed.Add(e);
     }
 }
Ejemplo n.º 2
0
        private void Flush()
        {
            modelBuffer.Bind();
            modelBuffer.SetData(itemPool, itemCount);

            foreach (var attribute in descriptor.AttributeFormats)
            {
                var value = attribute.Value;

                material.Program.Attribute(attribute.Key).VertexAttributePointer(
                    value.ComponentCount,
                    value.ComponentType,
                    value.IsNormalized,
                    value.Stride,
                    value.Offset
                    );

                material.Program.Attribute(attribute.Key).EnableVertexAttributeArray();
            }

            material.Program.Use();

            if (material.Matrix4Uniforms != null)
            {
                foreach (var matrix in material.Matrix4Uniforms)
                {
                    var m = matrix.Value;
                    material.Program.Uniform(matrix.Key).Set(ref m);
                }
            }

            if (material.Int32Uniforms != null)
            {
                foreach (var pair in material.Int32Uniforms)
                {
                    material.Program.Uniform(pair.Key).Set(pair.Value);
                }
            }

            indicesBuffer.Bind();

            for (int i = 0; i < textureCount; i++)
            {
                material.Program.Uniform("uSampler" + i).Set(i);
                context.Textures[i] = textures[i];
            }

            int offset      = 0;
            int vertexCount = indicesCount;

            context.DrawElements(WebGLDrawMode.TRIANGLES, offset, WebGLType.UNSIGNED_SHORT, vertexCount);

            itemCount    = 0;
            indicesCount = 0;
            textureCount = 0;

            Flushed?.Invoke(this, EventArgs.Empty);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Flushes any design changes to the underlying loader.
        /// </summary>
        public void Flush()
        {
            if (_host != null)
            {
                _host.Flush();
            }

            Flushed?.Invoke(this, EventArgs.Empty);
        }
Ejemplo n.º 4
0
        private async Task OnFlushed(object source, StreamFlushedEventArgs args)
        {
            if (Flushed == null)
            {
                return;
            }

            await Flushed.Invoke(source, args);
        }
Ejemplo n.º 5
0
        private async Task OnFlushed(object source, BasicEventArgs e)
        {
            if (Flushed == null)
            {
                return;
            }

            await Flushed.Invoke(source, e);
        }
Ejemplo n.º 6
0
 private void UseRestroom(string objectName)
 {
     if (objectName == this.gameObject.name && !hasFlushed && canFlush)
     {
         GetComponent <AudioSource>().Play();
         if (Flushed != null)
         {
             Flushed.Invoke();
         }
         hasFlushed = true;
     }
 }
Ejemplo n.º 7
0
 /// <summary>
 /// s
 /// </summary>
 /// <param name="dependencyName"></param>
 public static void Flush(string dependencyName = null)
 {
     Flushed?.Invoke(null, new CacheChangedEventArgs(dependencyName));
 }
Ejemplo n.º 8
0
 public void Flush() =>
 Flushed?.Invoke(this, EventArgs.Empty);
 public void Flush()
 {
     publisher.Flush();
     Flushed?.Invoke();
 }
Ejemplo n.º 10
0
 void IStreamInspector.Flushed()
 {
     Flushed?.Invoke();
 }
Ejemplo n.º 11
0
 public static void Fluch()
 {
     Flushed?.Invoke(null, new FlushChangeEventArgs());
 }
Ejemplo n.º 12
0
 public override void Flush()
 {
     base.Flush();
     Flushed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 13
0
 protected void OnFlushed()
 {
     Flushed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 14
0
 protected void OnFlushed(PPError result)
 => Flushed?.Invoke(this, result);