Object TTextureCompressionInfo

Methods
Properties

Unit

Declaration

type TTextureCompressionInfo = object(TObject)

Description

Hierarchy

  • TObject
  • TTextureCompressionInfo

Overview

Fields

Public Name: string;
Public RequiresPowerOf2: boolean;
Public AlphaChannel: TAlphaChannel;
Public DDSFlipped: boolean;
Public FileExtension: String;

Description

Fields

Public Name: string;
 
Public RequiresPowerOf2: boolean;
 
Public AlphaChannel: TAlphaChannel;
 
Public DDSFlipped: boolean;

When generating to DDS (that has reverted row order with respect to OpenGL), most of the compressed textures should be stored as flipped. When reading, we expect them to be already flipped. When loading to OpenGL, they will effectively be flipped again (since OpenGL expects bottom-to-top order, while we load it image in top-to-bottom order), thus making the image correct.

The exceptions are DXT* formats, that we can read correctly (unflipped) from DDS.

This is only a limitation of the DDS format.

For KTX, we can generate KTX images using PowerVR Texture Tools that already have a correct (bottom-to-top) orientation. So we can have textures compressed to PVRTC1_4bpp_RGB with correct orientation.

This field is ignored if FileExtension is not .dds.

Public FileExtension: String;

File extension/format the engine expects when try load GPU compressed version of texture.


Generated by PasDoc 0.16.0.