public override void WriteXml(StringBuilder sb, int indent, string ddsfolder) { base.WriteXml(sb, indent, ddsfolder); YtdXml.ValueTag(sb, indent, "Width", Width.ToString()); YtdXml.ValueTag(sb, indent, "Height", Height.ToString()); YtdXml.ValueTag(sb, indent, "MipLevels", Levels.ToString()); YtdXml.StringTag(sb, indent, "Format", Format.ToString()); YtdXml.StringTag(sb, indent, "Usage", Usage.ToString()); YtdXml.StringTag(sb, indent, "UsageFlags", UsageFlags.ToString()); YtdXml.ValueTag(sb, indent, "ExtraFlags", ExtraFlags.ToString()); YtdXml.StringTag(sb, indent, "FileName", YtdXml.XmlEscape((Name ?? "null") + ".dds")); try { if (!string.IsNullOrEmpty(ddsfolder)) { if (!Directory.Exists(ddsfolder)) { Directory.CreateDirectory(ddsfolder); } var filepath = Path.Combine(ddsfolder, (Name ?? "null") + ".dds"); var dds = DDSIO.GetDDSFile(this); File.WriteAllBytes(filepath, dds); } } catch { } }
private static void sendGeneralCaps(RdpPacket data) { data.WriteLittleEndian16((short)1); data.WriteLittleEndian16((short)0x18); data.WriteLittleEndian16((short)1); data.WriteLittleEndian16((short)3); data.WriteLittleEndian16((short)0x200); data.WriteLittleEndian16((short)0); data.WriteLittleEndian16((short)0); ExtraFlags flags = ExtraFlags.NO_BITMAP_COMPRESSION_HDR | ExtraFlags.ENC_SALTED_CHECKSUM | ExtraFlags.AUTORECONNECT_SUPPORTED | ExtraFlags.LONG_CREDENTIALS_SUPPORTED; if (Options.enableFastPathOutput) { flags |= ExtraFlags.FASTPATH_OUTPUT_SUPPORTED; } data.WriteLittleEndian16((short)flags); data.WriteLittleEndian16((short)0); data.WriteLittleEndian16((short)0); data.WriteLittleEndian16((short)0); data.WriteLittleEndian16((short)0); }
public virtual void WriteXml(StringBuilder sb, int indent, string ddsfolder) { YtdXml.StringTag(sb, indent, "Name", YtdXml.XmlEscape(Name)); YtdXml.ValueTag(sb, indent, "Unk32", Unknown_32h.ToString()); YtdXml.StringTag(sb, indent, "Usage", Usage.ToString()); YtdXml.StringTag(sb, indent, "UsageFlags", UsageFlags.ToString()); YtdXml.ValueTag(sb, indent, "ExtraFlags", ExtraFlags.ToString()); }
public BufferDescription( int sizeInBytes, Usage usage, BindFlags bindFlags, MiscFlags miscFlags, ExtraFlags extraFlags, int structureByteStide) { SizeInBytes = sizeInBytes; Usage = usage; BindFlags = bindFlags; MiscFlags = miscFlags; ExtraFlags = extraFlags; StructureByteStride = structureByteStide; }
public Texture3DDescription( int width, int height, int depth, int mipLevels, int formatIndex, Usage usage, BindFlags bindFlags, MiscFlags miscFlags, ExtraFlags extraFlags) { Width = width; Height = height; Depth = depth; MipLevels = mipLevels; FormatID = formatIndex; Usage = usage; BindFlags = bindFlags; MiscFlags = miscFlags; ExtraFlags = extraFlags; }
public Texture2DDescription( int width, int height, int mipLevels, int arraySize, int formatID, Sampling sampling, Usage usage, BindFlags bindFlags, MiscFlags miscFlags, ExtraFlags extraFlags) { Width = width; Height = height; MipLevels = mipLevels; ArraySize = arraySize; FormatID = formatID; Sampling = sampling; Usage = usage; BindFlags = bindFlags; MiscFlags = miscFlags; ExtraFlags = extraFlags; }
public Texture1DDescription( int width, int mipLevels, int arraySize, int formatID, Usage usage, BindFlags bindFlags, MiscFlags miscFlags, ExtraFlags extraFlags) { Width = width; MipLevels = mipLevels; ArraySize = arraySize; FormatID = formatID; Usage = usage; BindFlags = bindFlags; MiscFlags = miscFlags; ExtraFlags = extraFlags; }