ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

DDS texture. More...

#include <dds.h>

Collaboration diagram for Stark::Formats::DDS:

List of all members.


struct  DDSPixelFormat
 The specific pixel format of the included image data. More...

Public Types

typedef Common::Array
< Graphics::Surface

Public Member Functions

 ~DDS ()
bool load (Common::SeekableReadStream &dds, const Common::String &name)
 Load a DDS texture from a stream.
const MipMapsgetMipMaps () const
 Retrieve the mip map levels for a loaded texture.

Private Member Functions

bool readHeader (Common::SeekableReadStream &dds)
bool readData (Common::SeekableReadStream &dds)
bool detectFormat (const DDSPixelFormat &format)

Private Attributes

MipMaps _mipmaps
Graphics::PixelFormat _format
Common::String _name

Detailed Description

DDS texture.

Only a very small subset of DDS features are supported. Especially, compressed formats are not supported. This class is meant to load a single DDS file per instance.

Definition at line 42 of file dds.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Stark::Formats::DDS::~DDS (  ) 

Definition at line 41 of file dds.cpp.

Member Function Documentation

bool Stark::Formats::DDS::detectFormat ( const DDSPixelFormat format  )  [private]

Definition at line 148 of file dds.cpp.

const DDS::MipMaps & Stark::Formats::DDS::getMipMaps (  )  const

Retrieve the mip map levels for a loaded texture.

The first mipmap is the full size image. Each further mipmap divides by two the with and the height of the previous one.

Definition at line 59 of file dds.cpp.

bool Stark::Formats::DDS::load ( Common::SeekableReadStream dds,
const Common::String name 

Load a DDS texture from a stream.

Definition at line 47 of file dds.cpp.

bool Stark::Formats::DDS::readData ( Common::SeekableReadStream dds  )  [private]

Definition at line 131 of file dds.cpp.

bool Stark::Formats::DDS::readHeader ( Common::SeekableReadStream dds  )  [private]

Definition at line 63 of file dds.cpp.

Member Data Documentation

Definition at line 94 of file dds.h.

Definition at line 93 of file dds.h.

Definition at line 95 of file dds.h.

The documentation for this class was generated from the following files:

Generated on Sat Sep 19 2020 05:06:07 for ResidualVM by doxygen 1.7.1
curved edge   curved edge