Exemple #1
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(count);
     writer.Write(dwordsPerVertex);
     writer.Write(resultId);
 }
Exemple #2
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(indexBufferId);
     writer.Write(firstIndex);
     writer.Write(numTriangles);
 }
Exemple #3
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(name);
     writer.Write(span);
     writer.Write(delta);
 }
Exemple #4
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(programId);
     writer.Write(vertexProgram);
     writer.Write(fragmentProgram);
 }
Exemple #5
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(width);
     writer.Write(height);
     writer.Write(antialias);
     writer.Write(depthstencil);
 }
Exemple #6
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(time);
     writer.Write(numticks);
     writer.Write(ticktimes);
     writer.Write(callstack);
 }
Exemple #7
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(xmin);
     writer.Write(xmax);
     writer.Write(ymin);
     writer.Write(ymax);
 }
Exemple #8
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(vertexBufferId);
     writer.Write(source);
     writer.Write(startVertex);
     writer.Write(countVertices);
 }
Exemple #9
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(index);
     writer.Write(vertexBufferId);
     writer.Write(bufferOffset);
     writer.Write(format);
 }
Exemple #10
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(time);
     writer.Write(id);
     writer.Write(size);
     writer.Write(stackid);
 }
Exemple #11
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(programType);
     writer.Write(firstRegister);
     writer.Write(data);
     writer.Write(numRegisters);
 }
Exemple #12
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(x);
     writer.Write(y);
     writer.Write(w);
     writer.Write(h);
 }
Exemple #13
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(indexBufferId);
     writer.Write(source);
     writer.Write(offset);
     writer.Write(count);
 }
Exemple #14
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(textureId);
     writer.Write(srcdata);
     writer.Write(srcbytesperline);
     writer.Write(srcformat);
     writer.Write(srccompressedformat);
     writer.Write(srcw);
     writer.Write(srch);
     writer.Write(inverted);
     writer.Write(miplevel);
 }
Exemple #15
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(xmin);
     writer.Write(xmax);
     writer.Write(ymin);
     writer.Write(ymax);
     writer.Write(name);
     writer.Write(symbolname);
     writer.Write(modified);
 }
Exemple #16
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(red);
     writer.Write(green);
     writer.Write(blue);
     writer.Write(alpha);
     writer.Write(depth);
     writer.Write(stencil);
     writer.Write(mask);
 }
Exemple #17
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(width);
     writer.Write(height);
     writer.Write(format);
     writer.Write(optimizeForRenderToTexture);
     writer.Write(streamingLevels);
     writer.Write(resultId);
 }
Exemple #18
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(sourceFactor);
     writer.Write(destFactor);
 }
Exemple #19
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(triangleFaceToCull);
 }
Exemple #20
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(resultId);
 }
Exemple #21
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(programId);
 }
Exemple #22
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(mode);
     writer.Write(profile);
 }
Exemple #23
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(sampler);
     writer.Write(textureId);
 }
Exemple #24
0
        public object value;                 // multiple types found: string double bool int Rect Memory_objectAllocation Memory_deallocation ByteArray Vector<uint> BitmapDataRegion Stage3D_requestContext3D Sampler_sample Context3D_configureBackBuffer Context3D_clear Context3D_setDepthTest Context3D_setScissorRectangle Context3D_setBlendFactors Memory_reallocation Context3D_createProgram Program3D_upload Context3D_setProgram Context3D_setCulling Context3D_setProgramConstantsDouble Context3D_createTexture Texture3D_upload Context3D_setTextureAt Context3D_createVertexBuffer VertexBuffer3D_uploadDouble Context3D_setVertexBufferAt Context3D_setProgramConstants Context3D_createIndexBuffer IndexBuffer3D_upload32 Context3D_drawTriangles Context3D_present

        #region IAmf3Serializable implementation
        public void Serialize(Amf3Writer writer)
        {
            writer.WriteObjectHeader(ClassDef);
            writer.Write(name);
            writer.Write(value);
        }
Exemple #25
0
        private static void WriteLogEntry(ref LogEntry entry, ref int timeBase, Amf3Writer output)
        {
            if (entry.Span == LogValue)
            {
                // emit Value
                output.WriteObjectHeader(Protocol.Value.ClassDef);
                output.Write(entry.Name);
                output.Write(entry.Value);
            }
            else if (entry.Span == LogTime)
            {
                // emit Time
                int time  = ToMicroSeconds(entry.Time);
                int delta = time - timeBase;
                timeBase = time;

                output.WriteObjectHeader(Protocol.Time.ClassDef);
                output.Write(entry.Name);
                output.Write(delta);
            }
            else
            {
                // emit Span or SpanValue
                // convert times to microseconds for output
                int time      = ToMicroSeconds(entry.Time);
                int beginTime = ToMicroSeconds(entry.Time - entry.Span);

                // compute span and delta in microseconds
                // this must be done this exact way to preserve rounding errors across spans
                // if not, the server may produce an error if a span exceeds its expected length
                int span  = time - beginTime;
                int delta = time - timeBase;
                timeBase = time;

                if (entry.Value == null)
                {
                    output.WriteObjectHeader(Protocol.Span.ClassDef);
                    output.Write(entry.Name);
                    output.Write(span);
                    output.Write(delta);
                }
                else
                {
                    output.WriteObjectHeader(Protocol.SpanValue.ClassDef);
                    output.Write(entry.Name);
                    output.Write(span);
                    output.Write(delta);
                    output.Write(entry.Value);
                }
            }
        }
Exemple #26
0
 public void Serialize(Amf3Writer writer)
 {
     writer.WriteObjectHeader(ClassDef);
     writer.Write(depthMask);
     writer.Write(passCompareMode);
 }