PortableCompressedTexture2D

Inherits: Texture2D < Texture < Resource < RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Properties

PackedByteArray

_data

PackedByteArray()

bool

keep_compressed_buffer

false

bool

resource_local_to_scene

false (overrides Resource)

Vector2

size_override

Vector2(0, 0)

Methods

void

create_from_image ( Image image, CompressionMode compression_mode, bool normal_map=false, float lossy_quality=0.8 )

CompressionMode

get_compression_mode ( ) const

Format

get_format ( ) const

bool

is_keeping_all_compressed_buffers ( ) static

void

set_keep_all_compressed_buffers ( bool keep ) static


Enumerations

enum CompressionMode:

CompressionMode COMPRESSION_MODE_LOSSLESS = 0

There is currently no description for this enum. Please help us by contributing one!

CompressionMode COMPRESSION_MODE_LOSSY = 1

There is currently no description for this enum. Please help us by contributing one!

CompressionMode COMPRESSION_MODE_BASIS_UNIVERSAL = 2

There is currently no description for this enum. Please help us by contributing one!

CompressionMode COMPRESSION_MODE_S3TC = 3

There is currently no description for this enum. Please help us by contributing one!

CompressionMode COMPRESSION_MODE_ETC2 = 4

There is currently no description for this enum. Please help us by contributing one!

CompressionMode COMPRESSION_MODE_BPTC = 5

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

PackedByteArray _data = PackedByteArray()

There is currently no description for this property. Please help us by contributing one!


bool keep_compressed_buffer = false

  • void set_keep_compressed_buffer ( bool value )

  • bool is_keeping_compressed_buffer ( )

There is currently no description for this property. Please help us by contributing one!


Vector2 size_override = Vector2(0, 0)

  • void set_size_override ( Vector2 value )

  • Vector2 get_size_override ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void create_from_image ( Image image, CompressionMode compression_mode, bool normal_map=false, float lossy_quality=0.8 )

There is currently no description for this method. Please help us by contributing one!


CompressionMode get_compression_mode ( ) const

There is currently no description for this method. Please help us by contributing one!


Format get_format ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_keeping_all_compressed_buffers ( ) static

There is currently no description for this method. Please help us by contributing one!


void set_keep_all_compressed_buffers ( bool keep ) static

There is currently no description for this method. Please help us by contributing one!