- implemented dot and cross products (not that I'd ever expect these to become useful in a game like Doom...)

This commit is contained in:
Christoph Oelckers 2016-10-29 10:16:00 +02:00
commit b5222f08e8
3 changed files with 95 additions and 5 deletions

View file

@ -228,6 +228,7 @@ enum EFxType
EFX_AssignSelf,
EFX_Binary, // one token fits all, the operator is enough to distinguish them.
EFX_BinaryLogical,
EFX_DotCross,
EFX_Conditional,
EFX_Abs,
EFX_ATan2,
@ -905,6 +906,26 @@ public:
ExpEmit Emit(VMFunctionBuilder *build);
};
//==========================================================================
//
// FxBinaryLogical
//
//==========================================================================
class FxDotCross : public FxExpression
{
public:
int Operator;
FxExpression *left;
FxExpression *right;
FxDotCross(int, FxExpression*, FxExpression*);
~FxDotCross();
FxExpression *Resolve(FCompileContext&);
ExpEmit Emit(VMFunctionBuilder *build);
};
//==========================================================================
//
// FxConditional