Dds

DDS file parsing

Constructors

this
this(ubyte[] data)

Members

Functions

getPixel
T getPixel(size_t x, size_t y, uint mipmap)

Get a specifix pixel casted into a struct T. Size of T must match bytes per pixel.

getPixelGrid
auto getPixelGrid(uint mipmap)
toBitmap
Bitmap!Pixel toBitmap(uint mipmap)

Behavior: 1-byte color => grayscale

Structs

Header
struct Header

Variables

header
Header header;
mipmaps
ubyte[][] mipmaps;

Meta