mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Remove extraneous function
Remove extraneous function makeScriptCall which is no longer used.
This commit is contained in:
parent
32bc068f7f
commit
df5ffd9e10
2 changed files with 0 additions and 27 deletions
|
|
@ -240,31 +240,6 @@ void GameTSCtrl::renderWorld(const RectI &updateRect)
|
||||||
GameRenderWorld();
|
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)
|
void GameTSCtrl::sendMouseEvent(const char *name, const GuiEvent &event)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,6 @@ class GameTSCtrl : public GuiTSCtrl
|
||||||
private:
|
private:
|
||||||
typedef GuiTSCtrl Parent;
|
typedef GuiTSCtrl Parent;
|
||||||
|
|
||||||
void makeScriptCall(const char *func, const GuiEvent &evt) const;
|
|
||||||
|
|
||||||
void sendMouseEvent(const char *name, const GuiEvent &evt);
|
void sendMouseEvent(const char *name, const GuiEvent &evt);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue