Work on using a bitfield to set up chunk key.
This commit is contained in:
@ -30,6 +30,14 @@ freely, subject to the following restrictions:
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
// Cast any type to any other type with no safety checks.
|
||||
// Should only be used if you really know what you are doing!
|
||||
template<typename to, typename from>
|
||||
inline to force_cast(from input)
|
||||
{
|
||||
return *(reinterpret_cast<to*>(&input));
|
||||
}
|
||||
|
||||
inline bool isPowerOf2(uint32_t uInput)
|
||||
{
|
||||
if (uInput == 0)
|
||||
|
Reference in New Issue
Block a user