Irbis
Irbis

Reputation: 1491

DirectDraw Surface - data layout

Opengl texture coordinate [0,0] is located in a lower left corner. Does DDS file contain informations about a data layout (if data begin in top left or bottom left corner) or there is one fixed layout ? For example ktx file contains such information.

Upvotes: 2

Views: 274

Answers (1)

BDL
BDL

Reputation: 22167

The DDS file format does not contain information about where the origin is. Since DDS is a DirectX format, it will usually be stored with a top-left origin, but there is no guarantee for that.

You can check out which information is stored in a dds file by checking the Microsoft Docs: Programming Guide for DDS, especially the DDS_HEADER struct

Upvotes: 2

Related Questions