mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
32 lines
501 B
C++
32 lines
501 B
C++
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
|
#include "stdafx.h"
|
|
|
|
#include "V8World/Edge.h"
|
|
|
|
|
|
namespace RBX {
|
|
|
|
Edge::Edge(Primitive* prim0, Primitive* prim1) :
|
|
edgeState(Sim::UNDEFINED),
|
|
throttleType(Sim::UNDEFINED_THROTTLE),
|
|
prim0(prim0),
|
|
prim1(prim1),
|
|
index0(-1),
|
|
index1(-1)
|
|
{}
|
|
|
|
|
|
void Edge::setPrimitive(int i, Primitive* p)
|
|
{
|
|
// RBXASSERT(!this->inPipeline());
|
|
RBXASSERT((i == 0) || (i == 1));
|
|
if (i == 0) {
|
|
prim0 = p;
|
|
}
|
|
else {
|
|
prim1 = p;
|
|
}
|
|
}
|
|
|
|
|
|
} // namespace
|