Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "Stdafx.h"
Go to the source code of this file.
Classes | |
class | Opcode::SAP_Element |
class | Opcode::SAP_Box |
class | Opcode::SAP_EndPoint |
Functions | |
inline_ void | Sort (udword &id0, udword &id1) |
inline_ void | Remap (SAP_Element *&element, udword delta) |
inline_ bool | Intersect (const AABB &a, const SAP_Box &b) |
Contains an implementation of the sweep-and-prune algorithm (moved from Z-Collide)
Definition in file OPC_SweepAndPrune.cpp.
Definition at line 525 of file OPC_SweepAndPrune.cpp.
References FALSE, Opcode::AABB::GetMax(), Opcode::AABB::GetMin(), Opcode::SAP_Box::Max, Opcode::SAP_Box::Min, TRUE, and Opcode::SAP_EndPoint::Value.
Referenced by Opcode::SweepAndPrune::Init(), and Opcode::SweepAndPrune::UpdateObject().
inline_ void Remap | ( | SAP_Element *& | element, |
udword | delta | ||
) |
Remaps a pointer when pool gets resized.
element | [in/out] remapped element |
delta | [in] offset in bytes |
Definition at line 166 of file OPC_SweepAndPrune.cpp.
Referenced by Opcode::SAP_PairData::AddPair().
Definition at line 25 of file OPC_SweepAndPrune.cpp.
References Swap().
Referenced by Opcode::SAP_PairData::AddPair(), and Opcode::SAP_PairData::RemovePair().