cp2077_extractor.cr2w.textures
Texture extraction and conversion logic.
Classes:
|
Enum of different formats for DirectDraw Surface |
Functions:
|
Returns the function to decode a DDS texture, for use with |
|
Find the DDS format for the given texture compression type. |
|
Convert a texture to a PIL image. |
-
class
DDSFormat(value)[source] Bases:
EnumEnum of different formats for DirectDraw Surface
.ddsfiles.
-
get_dds_decoder(dds_format)[source] Returns the function to decode a DDS texture, for use with
PIL.Image.frombytes().
-
get_dds_format_from_compression(compression)[source] Find the DDS format for the given texture compression type.
:param compression
- Return type
-
texture_to_image(texture)[source] Convert a texture to a PIL image.
- Parameters
texture (
CBitmapTexture)- Return type