Skip to content

Commit

Permalink
IMAGES: Document which games use the different image formats
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Dec 27, 2017
1 parent b71024e commit 03015bf
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/images/dds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

/** @file
* DDS (DirectDraw Surface) loading.
* DDS texture (DirectDraw Surface or BioWare's own format) loading).
*/

#include "src/common/scopedptr.h"
Expand Down
10 changes: 7 additions & 3 deletions src/images/dds.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

/** @file
* DDS (DirectDraw Surface) loading.
* DDS texture (DirectDraw Surface or BioWare's own format) loading).
*/

#ifndef IMAGES_DDS_H
Expand All @@ -33,9 +33,13 @@ namespace Common {

namespace Images {

/** DirectDraw Surface.
/** DDS texture.
*
* Both standard DDS files and BioWare's own version are supported.
* There are two different DDS file formats:
* - One is the standard DirectDraw Surface format, introduced by Microsoft
* with DirectX 7.0. This format is used by Neverwinter Nights 2,
* The Witcher and the two Dragon Age games.
* - The other is BioWare's own texture format, used by Neverwinter Nights.
*/
class DDS : public Decoder {
public:
Expand Down
5 changes: 4 additions & 1 deletion src/images/sbm.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ namespace Common {

namespace Images {

/** SBM font bitmap data. */
/** SBM font bitmap data.
*
* This format is used for fonts in Jade Empire.
*/
class SBM : public Decoder {
public:
SBM(Common::SeekableReadStream &sbm);
Expand Down
6 changes: 5 additions & 1 deletion src/images/tga.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ namespace Common {

namespace Images {

/** TarGa image. */
/** TarGa image.
*
* This format is used in the two Neverwinter Nights games, the two
* Knights of the Old Republic games, Jade Empire and Sonic.
*/
class TGA : public Decoder {
public:
TGA(Common::SeekableReadStream &tga);
Expand Down
7 changes: 6 additions & 1 deletion src/images/tpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ namespace Common {

namespace Images {

/** BioWare's own texture format, TPC. */
/** BioWare's own texture format, TPC.
*
* This format is used by the two Knights of the Old Republic games.
* In the Xbox versions, these files have a .txb extension, but
* are still this format (not the TXB format used in Jade Empire).
*/
class TPC : public Decoder {
public:
TPC(Common::SeekableReadStream &tpc);
Expand Down
9 changes: 8 additions & 1 deletion src/images/txb.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ namespace Common {

namespace Images {

/** Another one of BioWare's own texture formats, TXB. */
/** Another one of BioWare's own texture formats, TXB.
*
* This format is used by Jade Empire.
*
* Even though the Xbox versions of the Knights of the Old Republic games
* features textures with a .txb extension, these are actually in the TPC
* format, not this TXB format.
*/
class TXB : public Decoder {
public:
TXB(Common::SeekableReadStream &txb);
Expand Down

0 comments on commit 03015bf

Please sign in to comment.