not even sure if this is the part of the code thats doing this but i read somewhere that it might be
i am porting over the quake 3 bsp loader from windows code to linux
which i know works on windows because i have tested it in DEVC++
and my new linux version of this code works as well because i can load a simple map of verticees from a text file texture it and move around in it
but when i try to use the bsp loader code
all i see is a bunch of messed up textured and messed up positioned pointy triangles
that i can move around in
so can some one pls help me then? plz
i think this is the part where it is and i have no idea how this part would be difrent on windows7 than on my new ubuntu10
// This resizes our bitset to a size so each face has a bit associated with it
void Resize(int count)
{
// Get the size of integers we need
m_size = count/32 + 1;
// Make sure we haven't already allocated memory for the bits
if(m_bits)
{
delete m_bits;
m_bits = 0;
}
// Allocate the bits and initialize them
m_bits = new unsigned int[m_size];
ClearAll();
}
// This does the binary math to set the desired bit
void Set(int i)
{
m_bits[i >> 5] |= (1 << (i & 31));
}
// This returns if the desired bit slot is a 1 or a 0
int On(int i)
{
return m_bits[i >> 5] & (1 << (i & 31 ));
}
// This clears a bit to 0
void Clear(int i)
{
m_bits[i >> 5] &= ~(1 << (i & 31));
}
// This initializes the bits to 0
void ClearAll()
{
memset(m_bits, 0, sizeof(unsigned int) * m_size);
}
:eek: