microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Home Page:https://walbourn.github.io/directxtk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DDSTextureLoader / WICTextureLoader flag to flip the image vertically on load

walbourn opened this issue · comments

Proposal for DDS_LOADER_FLIPV and WIC_LOADER_FLIPV flags which would let you invert the image on load.

For DirectX Tool Kit for DX11 this would require a minor breaking change to change CreateDDSTextureFromMemoryEx and CreateDDSTextureFromFileEx from using bool forceSRGB to DDS_LOADER_FLAGS loadFlags. Since we use strongly typed flags, existing uses of false and true will have to be updated to DDS_LOADER_DEFAULT or DDS_LOADER_SRGB.