some changes related to BspDemo

This commit is contained in:
ejcoumans
2006-08-11 23:01:25 +00:00
parent 22c416dc0c
commit e2b6d4ee65
12 changed files with 2304 additions and 15 deletions

View File

@@ -458,7 +458,7 @@ int BspLoader::getMachineEndianness()
short BspLoader::LittleShort (short l)
{
if (machineEndianness() == BIG_ENDIAN)
if (machineEndianness() == BSP_BIG_ENDIAN)
{
unsigned char b1,b2;
@@ -473,7 +473,7 @@ short BspLoader::LittleShort (short l)
short BspLoader::BigShort (short l)
{
if (machineEndianness() == BIG_ENDIAN)
if (machineEndianness() == BSP_BIG_ENDIAN)
{
return l;
}
@@ -492,7 +492,7 @@ short BspLoader::BigShort (short l)
int BspLoader::LittleLong (int l)
{
if (machineEndianness() == BIG_ENDIAN)
if (machineEndianness() == BSP_BIG_ENDIAN)
{
unsigned char b1,b2,b3,b4;
@@ -511,7 +511,7 @@ int BspLoader::LittleLong (int l)
int BspLoader::BigLong (int l)
{
if (machineEndianness() == BIG_ENDIAN)
if (machineEndianness() == BSP_BIG_ENDIAN)
{
return l;
}
@@ -531,7 +531,7 @@ int BspLoader::BigLong (int l)
float BspLoader::LittleFloat (float l)
{
if (machineEndianness() == BIG_ENDIAN)
if (machineEndianness() == BSP_BIG_ENDIAN)
{
union {unsigned char b[4]; float f;} in, out;
@@ -550,7 +550,7 @@ float BspLoader::LittleFloat (float l)
float BspLoader::BigFloat (float l)
{
if (machineEndianness() == BIG_ENDIAN)
if (machineEndianness() == BSP_BIG_ENDIAN)
{
return l;
}