Pentagram Namespace Reference


Classes

class  AudioChannel
class  AudioMixer
class  AudioSample
class  RawAudioSample
class  SonarcAudioSample
class  Archive
struct  GameMD5Entry
class  Font
struct  Palette
class  Scaler
 Base Scaler class. More...
class  _2xSaIScalerInternal
class  _2xSaIScaler
class  Super2xSaIScaler
class  SuperEagleScaler
class  GC_2xSaIScaler
class  GC_Super2xSaIScaler
class  GC_SuperEagleScaler
class  BilinearScalerInternal
class  BilinearScaler
class  GC_BilinearScaler
class  hq2xScalerInternal
class  hq2xScaler
class  PointScalerInternal
class  PointScaler
class  Scale2xScalerInternal
class  Scale2xScaler
struct  Box
struct  ichar_traits
 STL char_traits for case insensitive comparisons. More...
class  pent_string
struct  md5_context
struct  Rect

Typedefs

typedef pent_string< char > istring
typedef std::string istring

Enumerations

enum  PalTransforms {
  Transform_None = 0, Transform_Greyscale = 1, Transform_NoRed = 2, Transform_RainStorm = 3,
  Transform_FireStorm = 4, Transform_Saturate = 5, Transform_GBR = 6, Transform_BRG = 7
}

Functions

 DEFINE_RUNTIME_CLASSTYPE_CODE_BASE_CLASS (Archive)
 DEFINE_RUNTIME_CLASSTYPE_CODE_BASE_CLASS (Font) Font
template<class uintX, class Manip, class uintS>
bool BilinearScalerInternal_2x (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src)
template<class uintX, class Manip, class uintS>
bool BilinearScalerInternal_X2Y24 (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src)
template<class uintX, class Manip, class uintS>
bool BilinearScalerInternal_X1Y12 (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src)
template<class uintX, class Manip, class uintS>
bool BilinearScalerInternal_Arb (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src)
 InstantiateBilinearScalerFunc (BilinearScalerInternal_2x)
 InstantiateBilinearScalerFunc (BilinearScalerInternal_Arb)
 InstantiateBilinearScalerFunc (BilinearScalerInternal_X1Y12)
 InstantiateBilinearScalerFunc (BilinearScalerInternal_X2Y24)
static void scale2x_16_mmx_border (uint16 *dst, const uint16 *src0, const uint16 *src1, const uint16 *src2, unsigned count)
static void scale2x_32_mmx_border (uint32 *dst, const uint32 *src0, const uint32 *src1, const uint32 *src2, unsigned count)
static void scale2x_mmx_emms (void)
static void scale2x_16_mmx (uint16 *dst0, uint16 *dst1, const uint16 *src0, const uint16 *src1, const uint16 *src2, unsigned count)
static void scale2x_32_mmx (uint32 *dst0, uint32 *dst1, const uint32 *src0, const uint32 *src1, const uint32 *src2, unsigned count)
static bool Scale2x_16MMX (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src)
static bool Scale2x_32MMX (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src)
static bool shiftjis_to_JISX (uint16 sjis, uint8 &jr, uint8 &jc)
uint16 shiftjis_to_ultima8 (uint16 sjis)
uint32 shiftjis_to_unicode (uint16 sjis)
int strncasecmp (const char *s1, const char *s2, uint32 length)
int strcasecmp (const char *s1, const char *s2)
pent_string< char > operator+ (const pent_string< char > &_Left, const pent_string< char > &_Right)
pent_string< char > operator+ (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
pent_string< char > operator+ (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
pent_string< char > operator+ (const char *_Left, const pent_string< char > &_Right)
pent_string< char > operator+ (const char _Left, const pent_string< char > &_Right)
pent_string< char > operator+ (const pent_string< char > &_Left, const char *_Right)
pent_string< char > operator+ (const pent_string< char > &_Left, const char _Right)
bool operator== (const pent_string< char > &_Left, const pent_string< char > &_Right)
bool operator== (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
bool operator== (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
bool operator== (const char *_Left, const pent_string< char > &_Right)
bool operator== (const pent_string< char > &_Left, const char *_Right)
bool operator!= (const pent_string< char > &_Left, const pent_string< char > &_Right)
bool operator!= (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
bool operator!= (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
bool operator!= (const char *_Left, const pent_string< char > &_Right)
bool operator!= (const pent_string< char > &_Left, const char *_Right)
bool operator< (const pent_string< char > &_Left, const pent_string< char > &_Right)
bool operator< (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
bool operator< (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
bool operator< (const char *_Left, const pent_string< char > &_Right)
bool operator< (const pent_string< char > &_Left, const char *_Right)
bool operator> (const pent_string< char > &_Left, const pent_string< char > &_Right)
bool operator> (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
bool operator> (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
bool operator> (const char *_Left, const pent_string< char > &_Right)
bool operator> (const pent_string< char > &_Left, const char *_Right)
bool operator<= (const pent_string< char > &_Left, const pent_string< char > &_Right)
bool operator<= (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
bool operator<= (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
bool operator<= (const char *_Left, const pent_string< char > &_Right)
bool operator<= (const pent_string< char > &_Left, const char *_Right)
bool operator>= (const pent_string< char > &_Left, const pent_string< char > &_Right)
bool operator>= (const pent_string< char > &_Left, const std::basic_string< char > &_Right)
bool operator>= (const std::basic_string< char > &_Left, const pent_string< char > &_Right)
bool operator>= (const char *_Left, const pent_string< char > &_Right)
bool operator>= (const pent_string< char > &_Left, const char *_Right)
static void md5_starts (md5_context *ctx)
static void md5_update (md5_context *ctx, const uint8 *input, uint32 length)
static void md5_finish (md5_context *ctx, uint8 digest[16])
static void md5_process (md5_context *ctx, const uint8 data[64])
bool md5_file (IDataSource *input, uint8 digest[16], uint32 length)
void memset_32_aligned (void *buf, uint32 val, uint32 dwords)
void memset_32 (void *buf, uint32 val, uint32 dwords)
void memset_16 (void *buf, sint32 val, uint32 words)
void setAllocationFunctions (allocFunc a, deallocFunc d)
template<class T>
to_uppercase (const T s)
template std::string to_uppercase< std::string > (const std::string s)
template Pentagram::istring to_uppercase< Pentagram::istring > (const Pentagram::istring s)
template<class T>
void StringToArgv (const T &args, std::vector< T > &argv)
template void StringToArgv< std::string > (const std::string &args, std::vector< std::string > &argv)
template void StringToArgv< Pentagram::istring > (const Pentagram::istring &args, std::vector< Pentagram::istring > &argv)
template<class T>
void ArgvToString (const std::vector< T > &argv, T &args)
template void ArgvToString< std::string > (const std::vector< std::string > &argv, std::string &args)
template void ArgvToString< Pentagram::istring > (const std::vector< Pentagram::istring > &argv, Pentagram::istring &args)
template<class T>
void TrimSpaces (T &str)
template void TrimSpaces< std::string > (std::string &str)
template void TrimSpaces< Pentagram::istring > (Pentagram::istring &str)
template<class T>
void TabsToSpaces (T &str, unsigned int n)
template void TabsToSpaces< std::string > (std::string &str, unsigned int n)
template void TabsToSpaces< Pentagram::istring > (Pentagram::istring &str, unsigned int n)
template<class T>
void SplitString (const T &args, char sep, std::vector< T > &argv)
template void SplitString< std::string > (const std::string &args, char sep, std::vector< std::string > &argv)
template void SplitString< Pentagram::istring > (const Pentagram::istring &args, char sep, std::vector< Pentagram::istring > &argv)
template<class T>
void SplitStringKV (const T &args, char sep, std::vector< std::pair< T, T > > &argv)
template void SplitStringKV< std::string > (const std::string &args, char sep, std::vector< std::pair< std::string, std::string > > &argv)
template void SplitStringKV< Pentagram::istring > (const Pentagram::istring &args, char sep, std::vector< std::pair< Pentagram::istring, Pentagram::istring > > &argv)

Variables

static GameMD5Entry md5table []
const _2xSaIScaler _2xSaI_scaler
const Super2xSaIScaler Super2xSaI_scaler
const SuperEagleScaler SuperEagle_scaler
const GC_2xSaIScaler GC_2xSaI_scaler
const GC_Super2xSaIScaler GC_Super2xSaI_scaler
const GC_SuperEagleScaler GC_SuperEagle_scaler
const _2xSaIScaler _2xSaI_scaler
const Super2xSaIScaler Super2xSaI_scaler
const SuperEagleScaler SuperEagle_scaler
const GC_2xSaIScaler GC_2xSaI_scaler
const GC_Super2xSaIScaler GC_Super2xSaI_scaler
const GC_SuperEagleScaler GC_SuperEagle_scaler
const BilinearScaler bilinear_scaler
const GC_BilinearScaler GC_bilinear_scaler
const BilinearScaler bilinear_scaler
const GC_BilinearScaler GC_bilinear_scaler
static bool InitedLUT = false
static uint32 RGBtoYUV [65536]
static uint32 YUV1
static uint32 YUV2
static const uint32 Ymask = 0x00FF0000
static const uint32 Umask = 0x0000FF00
static const uint32 Vmask = 0x000000FF
static const uint32 trY = 0x00300000
static const uint32 trU = 0x00000700
static const uint32 trV = 0x00000006
static const uint32 tableMaskR = 0
static const uint32 tableMaskG = 0
static const uint32 tableMaskB = 0
const hq2xScaler hq2x_scaler
const hq2xScaler hq2x_scaler
const PointScaler point_scaler
const PointScaler point_scaler
const Scale2xScaler scale2x_scaler
const Scale2xScaler scale2x_scaler
const unsigned int savegame_version = 4
uint16 encoding [256]
uint8 reverse_encoding [256]
static const uint16 jisx0213_to_ucs_main [94 *94]
static const uint32 jisx0213_to_ucs_pagestart []
uint8 reverse_encoding [256]
uint16 encoding [256]
static const uint8 md5_padding [64]
allocFunc palloc = malloc
deallocFunc pfree = free
allocFunc palloc
deallocFunc pfree


Typedef Documentation

typedef pent_string<char> Pentagram::istring

STL case insensitve string.

Definition at line 231 of file istring.h.

typedef std::string Pentagram::istring

Definition at line 500 of file istring.h.


Enumeration Type Documentation

enum Pentagram::PalTransforms

Enumerator:
Transform_None 
Transform_Greyscale 
Transform_NoRed 
Transform_RainStorm 
Transform_FireStorm 
Transform_Saturate 
Transform_GBR 
Transform_BRG 

Definition at line 27 of file Palette.h.


Function Documentation

Pentagram::DEFINE_RUNTIME_CLASSTYPE_CODE_BASE_CLASS ( Archive   ) 

Pentagram::DEFINE_RUNTIME_CLASSTYPE_CODE_BASE_CLASS ( Font   ) 

Definition at line 25 of file Font.cpp.

template<class uintX, class Manip, class uintS>
bool Pentagram::BilinearScalerInternal_2x ( Texture tex,
sint32  sx,
sint32  sy,
sint32  sw,
sint32  sh,
uint8 pixel,
sint32  dw,
sint32  dh,
sint32  pitch,
bool  clamp_src 
)

Definition at line 27 of file BilinearScalerInternal_2x.cpp.

References Texture::buffer, height, width, and Texture::width.

template<class uintX, class Manip, class uintS>
bool Pentagram::BilinearScalerInternal_X2Y24 ( Texture tex,
sint32  sx,
sint32  sy,
sint32  sw,
sint32  sh,
uint8 pixel,
sint32  dw,
sint32  dh,
sint32  pitch,
bool  clamp_src 
)

Definition at line 27 of file BilinearScalerInternal_X2Y24.cpp.

References Texture::buffer, height, width, and Texture::width.

template<class uintX, class Manip, class uintS>
bool Pentagram::BilinearScalerInternal_X1Y12 ( Texture tex,
sint32  sx,
sint32  sy,
sint32  sw,
sint32  sh,
uint8 pixel,
sint32  dw,
sint32  dh,
sint32  pitch,
bool  clamp_src 
)

Definition at line 27 of file BilinearScalerInternal_X1Y12.cpp.

References Texture::buffer, height, and Texture::width.

template<class uintX, class Manip, class uintS>
bool Pentagram::BilinearScalerInternal_Arb ( Texture tex,
sint32  sx,
sint32  sy,
sint32  sw,
sint32  sh,
uint8 pixel,
sint32  dw,
sint32  dh,
sint32  pitch,
bool  clamp_src 
)

Definition at line 26 of file BilinearScalerInternal_Arb.cpp.

References Texture::buffer, height, width, and Texture::width.

Pentagram::InstantiateBilinearScalerFunc ( BilinearScalerInternal_2x   ) 

Pentagram::InstantiateBilinearScalerFunc ( BilinearScalerInternal_Arb   ) 

Pentagram::InstantiateBilinearScalerFunc ( BilinearScalerInternal_X1Y12   ) 

Pentagram::InstantiateBilinearScalerFunc ( BilinearScalerInternal_X2Y24   ) 

static void Pentagram::scale2x_16_mmx_border ( uint16 dst,
const uint16 src0,
const uint16 src1,
const uint16 src2,
unsigned  count 
) [inline, static]

Definition at line 217 of file Scale2xScaler.cpp.

Referenced by scale2x_16_mmx().

static void Pentagram::scale2x_32_mmx_border ( uint32 dst,
const uint32 src0,
const uint32 src1,
const uint32 src2,
unsigned  count 
) [inline, static]

Definition at line 591 of file Scale2xScaler.cpp.

Referenced by scale2x_32_mmx().

static void Pentagram::scale2x_mmx_emms ( void   )  [inline, static]

End the use of the MMX instructions. This function must be called before using any floating-point operations.

Definition at line 970 of file Scale2xScaler.cpp.

Referenced by Scale2x_16MMX(), and Scale2x_32MMX().

static void Pentagram::scale2x_16_mmx ( uint16 dst0,
uint16 dst1,
const uint16 src0,
const uint16 src1,
const uint16 src2,
unsigned  count 
) [static]

Scale by a factor of 2 a row of pixels of 16 bits. This function operates like scale2x_8_mmx() but for 16 bits pixels.

Parameters:
src0 Pointer at the first pixel of the previous row.
src1 Pointer at the first pixel of the current row.
src2 Pointer at the first pixel of the next row.
count Length in pixels of the src0, src1 and src2 rows. It must be at least 8 and a multiple of 4.
dst0 First destination row, double length in pixels.
dst1 Second destination row, double length in pixels.

Definition at line 992 of file Scale2xScaler.cpp.

References scale2x_16_mmx_border().

Referenced by Scale2x_16MMX().

static void Pentagram::scale2x_32_mmx ( uint32 dst0,
uint32 dst1,
const uint32 src0,
const uint32 src1,
const uint32 src2,
unsigned  count 
) [static]

Scale by a factor of 2 a row of pixels of 32 bits. This function operates like scale2x_8_mmx() but for 32 bits pixels.

Parameters:
src0 Pointer at the first pixel of the previous row.
src1 Pointer at the first pixel of the current row.
src2 Pointer at the first pixel of the next row.
count Length in pixels of the src0, src1 and src2 rows. It must be at least 4 and a multiple of 2.
dst0 First destination row, double length in pixels.
dst1 Second destination row, double length in pixels.

Definition at line 1013 of file Scale2xScaler.cpp.

References scale2x_32_mmx_border().

Referenced by Scale2x_32MMX().

static bool Pentagram::Scale2x_16MMX ( Texture tex,
sint32  sx,
sint32  sy,
sint32  sw,
sint32  sh,
uint8 pixel,
sint32  dw,
sint32  dh,
sint32  pitch,
bool  clamp_src 
) [static]

Definition at line 1027 of file Scale2xScaler.cpp.

References Texture::buffer, height, Texture::height, if(), scale2x_16_mmx(), scale2x_mmx_emms(), and Texture::width.

Referenced by Pentagram::Scale2xScaler::Scale2xScaler().

static bool Pentagram::Scale2x_32MMX ( Texture tex,
sint32  sx,
sint32  sy,
sint32  sw,
sint32  sh,
uint8 pixel,
sint32  dw,
sint32  dh,
sint32  pitch,
bool  clamp_src 
) [static]

Definition at line 1075 of file Scale2xScaler.cpp.

References Texture::buffer, height, Texture::height, if(), scale2x_32_mmx(), scale2x_mmx_emms(), and Texture::width.

Referenced by Pentagram::Scale2xScaler::Scale2xScaler().

static bool Pentagram::shiftjis_to_JISX ( uint16  sjis,
uint8 jr,
uint8 jc 
) [inline, static]

Definition at line 1379 of file encoding.cpp.

Referenced by shiftjis_to_ultima8(), and shiftjis_to_unicode().

uint16 Pentagram::shiftjis_to_ultima8 ( uint16  sjis  ) 

Definition at line 1405 of file encoding.cpp.

References shiftjis_to_JISX().

Referenced by JPRenderedText::draw(), JPRenderedText::drawBlended(), and JPFont::getStringSize().

uint32 Pentagram::shiftjis_to_unicode ( uint16  sjis  ) 

Definition at line 1429 of file encoding.cpp.

References jisx0213_to_ucs_main, jisx0213_to_ucs_pagestart, and shiftjis_to_JISX().

Referenced by Pentagram::Font::SJISTraits::unicode().

int Pentagram::strncasecmp ( const char *  s1,
const char *  s2,
uint32  length 
)

Definition at line 29 of file istring.cpp.

Referenced by Pentagram::ichar_traits::compare(), WindowsMidiDriver::open(), and strcasecmp().

int Pentagram::strcasecmp ( const char *  s1,
const char *  s2 
)

Definition at line 55 of file istring.cpp.

References strncasecmp().

Referenced by MidiDriver::createInstance(), GetShapeFormat(), main(), and WindowsMidiDriver::open().

pent_string<char> Pentagram::operator+ ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 233 of file istring.h.

pent_string<char> Pentagram::operator+ ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 240 of file istring.h.

pent_string<char> Pentagram::operator+ ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 247 of file istring.h.

pent_string<char> Pentagram::operator+ ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 254 of file istring.h.

pent_string<char> Pentagram::operator+ ( const char  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 261 of file istring.h.

pent_string<char> Pentagram::operator+ ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 268 of file istring.h.

pent_string<char> Pentagram::operator+ ( const pent_string< char > &  _Left,
const char  _Right 
) [inline]

Definition at line 275 of file istring.h.

bool Pentagram::operator== ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 283 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator== ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 290 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator== ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 297 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator== ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 304 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator== ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 311 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator!= ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 318 of file istring.h.

bool Pentagram::operator!= ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 325 of file istring.h.

bool Pentagram::operator!= ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 332 of file istring.h.

bool Pentagram::operator!= ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 339 of file istring.h.

bool Pentagram::operator!= ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 346 of file istring.h.

bool Pentagram::operator< ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 355 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator< ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 362 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator< ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 369 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator< ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 376 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator< ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 383 of file istring.h.

References Pentagram::pent_string< _Elem, _Traits, _Ax >::compare().

bool Pentagram::operator> ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 392 of file istring.h.

bool Pentagram::operator> ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 399 of file istring.h.

bool Pentagram::operator> ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 406 of file istring.h.

bool Pentagram::operator> ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 413 of file istring.h.

bool Pentagram::operator> ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 420 of file istring.h.

bool Pentagram::operator<= ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 428 of file istring.h.

bool Pentagram::operator<= ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 435 of file istring.h.

bool Pentagram::operator<= ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 442 of file istring.h.

bool Pentagram::operator<= ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 449 of file istring.h.

bool Pentagram::operator<= ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 456 of file istring.h.

bool Pentagram::operator>= ( const pent_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 464 of file istring.h.

bool Pentagram::operator>= ( const pent_string< char > &  _Left,
const std::basic_string< char > &  _Right 
) [inline]

Definition at line 471 of file istring.h.

bool Pentagram::operator>= ( const std::basic_string< char > &  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 478 of file istring.h.

bool Pentagram::operator>= ( const char *  _Left,
const pent_string< char > &  _Right 
) [inline]

Definition at line 485 of file istring.h.

bool Pentagram::operator>= ( const pent_string< char > &  _Left,
const char *  _Right 
) [inline]

Definition at line 492 of file istring.h.

static void Pentagram::md5_starts ( md5_context *  ctx  )  [static]

Definition at line 48 of file md5.cpp.

References Pentagram::md5_context::state, and Pentagram::md5_context::total.

Referenced by md5_file().

static void Pentagram::md5_update ( md5_context *  ctx,
const uint8 input,
uint32  length 
) [static]

Definition at line 180 of file md5.cpp.

References Pentagram::md5_context::buffer, md5_process(), and Pentagram::md5_context::total.

Referenced by md5_file(), and md5_finish().

static void Pentagram::md5_finish ( md5_context *  ctx,
uint8  digest[16] 
) [static]

Definition at line 221 of file md5.cpp.

References md5_padding, md5_update(), and Pentagram::md5_context::total.

Referenced by md5_file().

static void Pentagram::md5_process ( md5_context *  ctx,
const uint8  data[64] 
) [static]

Definition at line 58 of file md5.cpp.

References Pentagram::md5_context::state.

Referenced by md5_update().

bool Pentagram::md5_file ( IDataSource input,
uint8  digest[16],
uint32  length = 0 
)

Definition at line 244 of file md5.cpp.

References md5_finish(), md5_starts(), md5_update(), and IDataSource::read().

Referenced by GameDetector::detect().

void Pentagram::memset_32_aligned ( void *  buf,
uint32  val,
uint32  dwords 
) [inline]

Definition at line 40 of file memset_n.h.

Referenced by memset_32().

void Pentagram::memset_32 ( void *  buf,
uint32  val,
uint32  dwords 
) [inline]

Definition at line 143 of file memset_n.h.

References memset_32_aligned().

Referenced by SoftRenderSurface< uintX >::Fill32(), and memset_16().

void Pentagram::memset_16 ( void *  buf,
sint32  val,
uint32  words 
) [inline]

Definition at line 198 of file memset_n.h.

References memset_32().

Referenced by SoftRenderSurface< uintX >::Fill32().

void Pentagram::setAllocationFunctions ( allocFunc  a,
deallocFunc  d 
)

Definition at line 33 of file pent_include.cpp.

References palloc, and pfree.

Referenced by MemoryManager::MemoryManager(), and MemoryManager::~MemoryManager().

template<class T>
T Pentagram::to_uppercase ( const T  s  ) 

Definition at line 25 of file util.cpp.

template std::string Pentagram::to_uppercase< std::string > ( const std::string  s  ) 

template Pentagram::istring Pentagram::to_uppercase< Pentagram::istring > ( const Pentagram::istring  s  ) 

template<class T>
void Pentagram::StringToArgv ( const T &  args,
std::vector< T > &  argv 
)

Definition at line 42 of file util.cpp.

Referenced by Console::AddCharacterToCommandBuffer(), HIDManager::bind(), Console::ExecuteConsoleCommand(), and HIDManager::loadBindings().

template void Pentagram::StringToArgv< std::string > ( const std::string &  args,
std::vector< std::string > &  argv 
)

template void Pentagram::StringToArgv< Pentagram::istring > ( const Pentagram::istring args,
std::vector< Pentagram::istring > &  argv 
)

template<class T>
void Pentagram::ArgvToString ( const std::vector< T > &  argv,
T &  args 
)

Definition at line 122 of file util.cpp.

Referenced by HIDManager::listBindings(), and HIDManager::saveBindings().

template void Pentagram::ArgvToString< std::string > ( const std::vector< std::string > &  argv,
std::string &  args 
)

template void Pentagram::ArgvToString< Pentagram::istring > ( const std::vector< Pentagram::istring > &  argv,
Pentagram::istring args 
)

template<class T>
void Pentagram::TrimSpaces ( T &  str  ) 

Definition at line 169 of file util.cpp.

Referenced by SpeechFlex::SpeechFlex(), and SplitStringKV().

template void Pentagram::TrimSpaces< std::string > ( std::string &  str  ) 

template void Pentagram::TrimSpaces< Pentagram::istring > ( Pentagram::istring str  ) 

template<class T>
void Pentagram::TabsToSpaces ( T &  str,
unsigned int  n 
)

Definition at line 187 of file util.cpp.

Referenced by SpeechFlex::getIndexForPhrase(), and SpeechFlex::SpeechFlex().

template void Pentagram::TabsToSpaces< std::string > ( std::string &  str,
unsigned int  n 
)

template void Pentagram::TabsToSpaces< Pentagram::istring > ( Pentagram::istring str,
unsigned int  n 
)

template<class T>
void Pentagram::SplitString ( const T &  args,
char  sep,
std::vector< T > &  argv 
)

Definition at line 200 of file util.cpp.

Referenced by GameInfo::load(), TreasureLoader::parse(), FontShapeArchive::setHVLeads(), GameData::setupJPOverrides(), GameData::setupTTFOverrides(), SpeechFlex::SpeechFlex(), and SplitStringKV().

template void Pentagram::SplitString< std::string > ( const std::string &  args,
char  sep,
std::vector< std::string > &  argv 
)

template void Pentagram::SplitString< Pentagram::istring > ( const Pentagram::istring args,
char  sep,
std::vector< Pentagram::istring > &  argv 
)

template<class T>
void Pentagram::SplitStringKV ( const T &  args,
char  sep,
std::vector< std::pair< T, T > > &  argv 
)

Definition at line 229 of file util.cpp.

References SplitString(), and TrimSpaces().

Referenced by TreasureLoader::internalParse().

template void Pentagram::SplitStringKV< std::string > ( const std::string &  args,
char  sep,
std::vector< std::pair< std::string, std::string > > &  argv 
)

template void Pentagram::SplitStringKV< Pentagram::istring > ( const Pentagram::istring args,
char  sep,
std::vector< std::pair< Pentagram::istring, Pentagram::istring > > &  argv 
)


Variable Documentation

GameMD5Entry Pentagram::md5table[] [static]

Definition at line 37 of file gamemd5.h.

Referenced by GameDetector::detect().

const _2xSaIScaler Pentagram::_2xSaI_scaler

Definition at line 868 of file 2xSaIScalers.cpp.

const Super2xSaIScaler Pentagram::Super2xSaI_scaler

Definition at line 891 of file 2xSaIScalers.cpp.

const SuperEagleScaler Pentagram::SuperEagle_scaler

Definition at line 914 of file 2xSaIScalers.cpp.

const GC_2xSaIScaler Pentagram::GC_2xSaI_scaler

Definition at line 942 of file 2xSaIScalers.cpp.

const GC_Super2xSaIScaler Pentagram::GC_Super2xSaI_scaler

Definition at line 968 of file 2xSaIScalers.cpp.

const GC_SuperEagleScaler Pentagram::GC_SuperEagle_scaler

Definition at line 992 of file 2xSaIScalers.cpp.

const _2xSaIScaler Pentagram::_2xSaI_scaler

Definition at line 868 of file 2xSaIScalers.cpp.

const Super2xSaIScaler Pentagram::Super2xSaI_scaler

Definition at line 891 of file 2xSaIScalers.cpp.

const SuperEagleScaler Pentagram::SuperEagle_scaler

Definition at line 914 of file 2xSaIScalers.cpp.

const GC_2xSaIScaler Pentagram::GC_2xSaI_scaler

Definition at line 942 of file 2xSaIScalers.cpp.

const GC_Super2xSaIScaler Pentagram::GC_Super2xSaI_scaler

Definition at line 968 of file 2xSaIScalers.cpp.

const GC_SuperEagleScaler Pentagram::GC_SuperEagle_scaler

Definition at line 992 of file 2xSaIScalers.cpp.

const BilinearScaler Pentagram::bilinear_scaler

Definition at line 79 of file BilinearScaler.cpp.

Referenced by SoftRenderSurface< uintX >::StretchBlit().

const GC_BilinearScaler Pentagram::GC_bilinear_scaler

Definition at line 110 of file BilinearScaler.cpp.

const BilinearScaler Pentagram::bilinear_scaler

Definition at line 79 of file BilinearScaler.cpp.

Referenced by SoftRenderSurface< uintX >::StretchBlit().

const GC_BilinearScaler Pentagram::GC_bilinear_scaler

Definition at line 110 of file BilinearScaler.cpp.

bool Pentagram::InitedLUT = false [static]

Definition at line 30 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::InitLUTs().

uint32 Pentagram::RGBtoYUV[65536] [static]

Definition at line 31 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::InitLUTs().

uint32 Pentagram::YUV1 [static]

Definition at line 32 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

uint32 Pentagram::YUV2 [static]

Definition at line 33 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::Ymask = 0x00FF0000 [static]

Definition at line 34 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::Umask = 0x0000FF00 [static]

Definition at line 35 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::Vmask = 0x000000FF [static]

Definition at line 36 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::trY = 0x00300000 [static]

Definition at line 37 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::trU = 0x00000700 [static]

Definition at line 38 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::trV = 0x00000006 [static]

Definition at line 39 of file hq2xScaler.cpp.

Referenced by Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::Diff(), and Pentagram::hq2xScalerInternal< uintX, Manip, uintS >::hq2x_32().

const uint32 Pentagram::tableMaskR = 0 [static]

Definition at line 40 of file hq2xScaler.cpp.

const uint32 Pentagram::tableMaskG = 0 [static]

Definition at line 41 of file hq2xScaler.cpp.

const uint32 Pentagram::tableMaskB = 0 [static]

Definition at line 42 of file hq2xScaler.cpp.

const hq2xScaler Pentagram::hq2x_scaler

Definition at line 3030 of file hq2xScaler.cpp.

const hq2xScaler Pentagram::hq2x_scaler

Definition at line 3030 of file hq2xScaler.cpp.

const PointScaler Pentagram::point_scaler

Definition at line 317 of file PointScaler.cpp.

Referenced by ScalerManager::GetPointScaler(), and SoftRenderSurface< uintX >::StretchBlit().

const PointScaler Pentagram::point_scaler

Definition at line 317 of file PointScaler.cpp.

Referenced by ScalerManager::GetPointScaler(), and SoftRenderSurface< uintX >::StretchBlit().

const Scale2xScaler Pentagram::scale2x_scaler

Definition at line 1152 of file Scale2xScaler.cpp.

const Scale2xScaler Pentagram::scale2x_scaler

Definition at line 1152 of file Scale2xScaler.cpp.

const unsigned int Pentagram::savegame_version = 4

Definition at line 56 of file GUIApp.h.

Referenced by U8SaveGump::loadDescriptions(), GUIApp::loadGame(), and GUIApp::saveGame().

uint16 Pentagram::encoding[256]

Definition at line 34 of file encoding.cpp.

Referenced by TimidityMidiDriver::open(), and Pentagram::Font::Traits::unicode().

uint8 Pentagram::reverse_encoding[256]

Definition at line 72 of file encoding.cpp.

Referenced by EditWidget::OnTextInput().

const uint16 Pentagram::jisx0213_to_ucs_main[94 *94] [static]

Definition at line 110 of file encoding.cpp.

Referenced by shiftjis_to_unicode().

const uint32 Pentagram::jisx0213_to_ucs_pagestart[] [static]

Definition at line 1337 of file encoding.cpp.

Referenced by shiftjis_to_unicode().

uint8 Pentagram::reverse_encoding[256]

Definition at line 72 of file encoding.cpp.

Referenced by EditWidget::OnTextInput().

uint16 Pentagram::encoding[256]

Definition at line 34 of file encoding.cpp.

Referenced by TimidityMidiDriver::open(), and Pentagram::Font::Traits::unicode().

const uint8 Pentagram::md5_padding[64] [static]

Initial value:

 {
        0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 214 of file md5.cpp.

Referenced by md5_finish().

allocFunc Pentagram::palloc = malloc

Definition at line 30 of file pent_include.cpp.

Referenced by setAllocationFunctions().

deallocFunc Pentagram::pfree = free

Definition at line 31 of file pent_include.cpp.

Referenced by setAllocationFunctions().

allocFunc Pentagram::palloc

Definition at line 30 of file pent_include.cpp.

Referenced by setAllocationFunctions().

deallocFunc Pentagram::pfree

Definition at line 31 of file pent_include.cpp.

Referenced by setAllocationFunctions().


Generated on Fri Jul 27 22:30:27 2007 for pentagram by  doxygen 1.4.7