Exemple #1
0
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Texture
            builder.SetTexture(input.ReadString());

            // Diffuse color
            builder.SetDiffuseColor(vector3Reader.Read(input));

            // Emissive color
            builder.SetEmissiveColor(vector3Reader.Read(input));

            // Specular color
            builder.SetSpecularColor(vector3Reader.Read(input));

            // Specular power
            builder.SetSpecularPower(input.ReadSingle());

            // Alpha
            builder.SetAlpha(input.ReadSingle());

            // Vertex color enabled
            builder.SetVertexColorEnabled(input.ReadBoolean());

            return builder.End();
        }
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Center
            builder.SetCenter(vector3Reader.Read(input));

            // Radius
            builder.SetRadius(input.ReadSingle());

            return builder.End();
        }
Exemple #3
0
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Center
            builder.SetCenter(vector3Reader.Read(input));

            // Radius
            builder.SetRadius(input.ReadSingle());

            return(builder.End());
        }
Exemple #4
0
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Texture
            builder.SetTexture(input.ReadObject());

            // Glyphs
            builder.SetGlyphs(input.ReadObject());

            // Cropping
            builder.SetCropping(input.ReadObject());

            // Character map
            builder.SetCharacterMap(input.ReadObject());

            // Vertical line spacing
            builder.SetVerticalLineSpacing(input.ReadInt32());

            // Horizontal spacing
            builder.SetHorizontalSpacing(input.ReadSingle());

            // Kerning
            builder.SetKering(input.ReadObject());

            // Default character
            if (input.ReadBoolean())
            {
                builder.SetDefaultCharacter(input.ReadChar());
            }
            else
            {
                builder.SetDefaultCharacter(null);
            }

            return builder.End();
        }
Exemple #5
0
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Texture
            builder.SetTexture(input.ReadObject());

            // Glyphs
            builder.SetGlyphs(input.ReadObject());

            // Cropping
            builder.SetCropping(input.ReadObject());

            // Character map
            builder.SetCharacterMap(input.ReadObject());

            // Vertical line spacing
            builder.SetVerticalLineSpacing(input.ReadInt32());

            // Horizontal spacing
            builder.SetHorizontalSpacing(input.ReadSingle());

            // Kerning
            builder.SetKering(input.ReadObject());

            // Default character
            if (input.ReadBoolean())
            {
                builder.SetDefaultCharacter(input.ReadChar());
            }
            else
            {
                builder.SetDefaultCharacter(null);
            }

            return(builder.End());
        }
Exemple #6
0
 protected internal override object Read(ContentReader input)
 {
     builder.Begin();
     builder.SetValues(input.ReadSingle(), input.ReadSingle(), input.ReadSingle());
     return(builder.End());
 }
Exemple #7
0
 protected internal override object Read(ContentReader input)
 {
     builder.Begin();
     builder.SetValues(input.ReadSingle(), input.ReadSingle(), input.ReadSingle());
     return builder.End();
 }