class ffw::DdsLoader

Class List > ffw :: DdsLoader

Inherits the following classes: ffw::ImageReader

Public Functions

Type Name
DdsLoader (const std::string & path)
DdsLoader (const DdsLoader & other) = delete
DdsLoader (DdsLoader && other)
void swap (DdsLoader & other)
DdsLoader & operator= (const DdsLoader & other) = delete
DdsLoader & operator= (DdsLoader && other)
virtual ~DdsLoader ()
virtual size_t readRow (void * dest) override
Reads a row of pixels.
virtual bool getMipMap (int level) override
bool getCubemap (int side)
virtual void close () override
Closes the file and frees the resources.
bool isCubemap () const
int getCubemapOffset () const

Public Functions Documentation

function DdsLoader (1/3)

ffw::DdsLoader::DdsLoader (
    const std::string & path
)

function DdsLoader (2/3)

ffw::DdsLoader::DdsLoader (
    const DdsLoader & other
) = delete

function DdsLoader (3/3)

ffw::DdsLoader::DdsLoader (
    DdsLoader && other
)

function swap

void ffw::DdsLoader::swap (
    DdsLoader & other
)

function operator= (1/2)

DdsLoader & ffw::DdsLoader::operator= (
    const DdsLoader & other
) = delete

function operator= (2/2)

DdsLoader & ffw::DdsLoader::operator= (
    DdsLoader && other
)

function ~DdsLoader

virtual ffw::DdsLoader::~DdsLoader ()

function readRow

virtual size_t ffw::DdsLoader::readRow (
    void * dest
)

Reads a row of pixels.

Parameters:

  • dest The destination where to write the pixels

Note:

The dest parameter must be large enough to contain all pixels of a single row. Use reader->getStrideSize() to determine the size of the row in number of bytes.

See also:

Implements ImageReader::readRow

function getMipMap

virtual bool ffw::DdsLoader::getMipMap (
    int level
)

Implements ImageReader::getMipMap

function getCubemap

bool ffw::DdsLoader::getCubemap (
    int side
)

function close

virtual void ffw::DdsLoader::close ()

Closes the file and frees the resources.

Implements ImageReader::close

function isCubemap

bool ffw::DdsLoader::isCubemap () const

function getCubemapOffset

int ffw::DdsLoader::getCubemapOffset () const

The documentation for this class was generated from the following file: include/ffw/media/ddsloader.h