bethesda_structs.contrib

This module contains various resources that required by some of Bethesda’s file formats.

DDS

This module provides structures, and resources for Microsoft’s Direct Draw Surface formats. Required by BTDXArchive as DDS headers have to be rebuilt for extraction.

bethesda_structs.contrib.dds.MAKEFOURCC(ch0, ch1, ch2, ch3)[source]

Implementation of Window’s MAKEFOURCC.

This is simply just returning the bytes of the joined characters. MAKEFOURCC(*”DX10”) can also be implemented by Bytes(b”DX10”).

Parameters:
  • ch0 (str) – First char
  • ch1 (str) – Second char
  • ch2 (str) – Third char
  • ch3 (str) – Fourth char
Returns:

The integer representation of given characters.

Return type:

int

Reference:
Microsoft
class bethesda_structs.contrib.dds.DXGIFormats[source]

The format enum for DXGI files.

class bethesda_structs.contrib.dds.D3D10ResourceDimension[source]

The dimension enum for D3D10 resources.

class bethesda_structs.contrib.dds.D3D10ResourceMiscFlag[source]

The miscellaneous flags for D3D10 resources.

bethesda_structs.contrib.dds.DXGI_FORMAT = <Enum <FormatField>>

The DXGI_FORMAT structure.

Reference:
Microsoft
bethesda_structs.contrib.dds.D3D10_RESOURCE_DIMENSION = <Enum <FormatField>>

The D3D10_RESOURCE_DIMENSION structure.

Reference:
Microsoft
bethesda_structs.contrib.dds.D3D10_RESOURCE_MISC_FLAG = <FlagsEnum <FormatField>>

The D3D10_RESOURCE_MISC_FLAG structure.

Reference:
Microsoft
bethesda_structs.contrib.dds.DDS_PIXELFORMAT = <Struct +nonbuild>

The DDS_PIXELFORMAT structure.

Reference:
Microsoft
bethesda_structs.contrib.dds.DDS_HEADER = <Struct>

The DDS_HEADER structure.

Reference:
Microsoft
bethesda_structs.contrib.dds.DDS_HEADER_DX10 = <Struct +nonbuild>

The DDS_HEADER_DX10 structure.

Reference:
Microsoft