mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Linux implementation. Include changes for gcc x64.
This commit is contained in:
parent
4e52824a42
commit
4e9034854d
56 changed files with 1108 additions and 3075 deletions
|
|
@ -82,6 +82,7 @@
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#include "Opcode.h"
|
||||
#include <stdint.h>
|
||||
|
||||
using namespace Opcode;
|
||||
|
||||
|
|
@ -208,7 +209,7 @@ bool HybridModel::Build(const OPCODECREATE& create)
|
|||
Data->mLeaves[Data->mNbLeaves] = *current->GetAABB();
|
||||
|
||||
// Setup leaf data
|
||||
udword Index = (udword(current->GetPrimitives()) - udword(Data->mBase))/sizeof(udword);
|
||||
udword Index = (uintptr_t(current->GetPrimitives()) - uintptr_t(Data->mBase))/sizeof(uintptr_t);
|
||||
Data->mTriangles[Data->mNbLeaves].SetData(current->GetNbPrimitives(), Index);
|
||||
|
||||
Data->mNbLeaves++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue