mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Remove extraneous function
Remove extraneous function makeScriptCall which is no longer used.
This commit is contained in:
parent
32bc068f7f
commit
df5ffd9e10
|
|
@ -240,31 +240,6 @@ void GameTSCtrl::renderWorld(const RectI &updateRect)
|
|||
GameRenderWorld();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void GameTSCtrl::makeScriptCall(const char *func, const GuiEvent &evt) const
|
||||
{
|
||||
// write screen position
|
||||
char *sp = Con::getArgBuffer(32);
|
||||
dSprintf(sp, 32, "%d %d", evt.mousePoint.x, evt.mousePoint.y);
|
||||
|
||||
// write world position
|
||||
char *wp = Con::getArgBuffer(32);
|
||||
Point3F camPos;
|
||||
mLastCameraQuery.cameraMatrix.getColumn(3, &camPos);
|
||||
dSprintf(wp, 32, "%g %g %g", camPos.x, camPos.y, camPos.z);
|
||||
|
||||
// write click vector
|
||||
char *vec = Con::getArgBuffer(32);
|
||||
Point3F fp(evt.mousePoint.x, evt.mousePoint.y, 1.0);
|
||||
Point3F ray;
|
||||
unproject(fp, &ray);
|
||||
ray -= camPos;
|
||||
ray.normalizeSafe();
|
||||
dSprintf(vec, 32, "%g %g %g", ray.x, ray.y, ray.z);
|
||||
|
||||
Con::executef( (SimObject*)this, func, sp, wp, vec );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void GameTSCtrl::sendMouseEvent(const char *name, const GuiEvent &event)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ class GameTSCtrl : public GuiTSCtrl
|
|||
private:
|
||||
typedef GuiTSCtrl Parent;
|
||||
|
||||
void makeScriptCall(const char *func, const GuiEvent &evt) const;
|
||||
|
||||
void sendMouseEvent(const char *name, const GuiEvent &evt);
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Reference in a new issue