- 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:
parent
594a0c2008
commit
b5222f08e8
3 changed files with 95 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue