.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/PortableCompressedTexture2D.xml. .. _class_PortableCompressedTexture2D: PortableCompressedTexture2D =========================== **Inherits:** :ref:`Texture2D` **<** :ref:`Texture` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------------------------------+--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`PackedByteArray` | :ref:`_data` | ``PackedByteArray()`` | +-----------------------------------------------+--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`keep_compressed_buffer` | ``false`` | +-----------------------------------------------+--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`bool` | resource_local_to_scene | ``false`` (overrides :ref:`Resource`) | +-----------------------------------------------+--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`size_override` | ``Vector2(0, 0)`` | +-----------------------------------------------+--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +--------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`create_from_image` **(** :ref:`Image` image, :ref:`CompressionMode` compression_mode, :ref:`bool` normal_map=false, :ref:`float` lossy_quality=0.8 **)** | +--------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`CompressionMode` | :ref:`get_compression_mode` **(** **)** |const| | +--------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Format` | :ref:`get_format` **(** **)** |const| | +--------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_keeping_all_compressed_buffers` **(** **)** |static| | +--------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_keep_all_compressed_buffers` **(** :ref:`bool` keep **)** |static| | +--------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_PortableCompressedTexture2D_CompressionMode: .. rst-class:: classref-enumeration enum **CompressionMode**: .. _class_PortableCompressedTexture2D_constant_COMPRESSION_MODE_LOSSLESS: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESSION_MODE_LOSSLESS** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_PortableCompressedTexture2D_constant_COMPRESSION_MODE_LOSSY: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESSION_MODE_LOSSY** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_PortableCompressedTexture2D_constant_COMPRESSION_MODE_BASIS_UNIVERSAL: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESSION_MODE_BASIS_UNIVERSAL** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_PortableCompressedTexture2D_constant_COMPRESSION_MODE_S3TC: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESSION_MODE_S3TC** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_PortableCompressedTexture2D_constant_COMPRESSION_MODE_ETC2: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESSION_MODE_ETC2** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_PortableCompressedTexture2D_constant_COMPRESSION_MODE_BPTC: .. rst-class:: classref-enumeration-constant :ref:`CompressionMode` **COMPRESSION_MODE_BPTC** = ``5`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_PortableCompressedTexture2D_property__data: .. rst-class:: classref-property :ref:`PackedByteArray` **_data** = ``PackedByteArray()`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PortableCompressedTexture2D_property_keep_compressed_buffer: .. rst-class:: classref-property :ref:`bool` **keep_compressed_buffer** = ``false`` .. rst-class:: classref-property-setget - void **set_keep_compressed_buffer** **(** :ref:`bool` value **)** - :ref:`bool` **is_keeping_compressed_buffer** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PortableCompressedTexture2D_property_size_override: .. rst-class:: classref-property :ref:`Vector2` **size_override** = ``Vector2(0, 0)`` .. rst-class:: classref-property-setget - void **set_size_override** **(** :ref:`Vector2` value **)** - :ref:`Vector2` **get_size_override** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_PortableCompressedTexture2D_method_create_from_image: .. rst-class:: classref-method void **create_from_image** **(** :ref:`Image` image, :ref:`CompressionMode` compression_mode, :ref:`bool` normal_map=false, :ref:`float` lossy_quality=0.8 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PortableCompressedTexture2D_method_get_compression_mode: .. rst-class:: classref-method :ref:`CompressionMode` **get_compression_mode** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PortableCompressedTexture2D_method_get_format: .. rst-class:: classref-method :ref:`Format` **get_format** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PortableCompressedTexture2D_method_is_keeping_all_compressed_buffers: .. rst-class:: classref-method :ref:`bool` **is_keeping_all_compressed_buffers** **(** **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PortableCompressedTexture2D_method_set_keep_all_compressed_buffers: .. rst-class:: classref-method void **set_keep_all_compressed_buffers** **(** :ref:`bool` keep **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`