123
This commit is contained in:
54
Editor/Objects/Gizmo.cpp
Normal file
54
Editor/Objects/Gizmo.cpp
Normal file
@@ -0,0 +1,54 @@
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Crytek Engine Source File.
|
||||
// Copyright (C), Crytek Studios, 2002.
|
||||
// -------------------------------------------------------------------------
|
||||
// File name: gizmo.cpp
|
||||
// Version: v1.00
|
||||
// Created: 2/7/2002 by Timur.
|
||||
// Compilers: Visual Studio.NET
|
||||
// Description:
|
||||
// -------------------------------------------------------------------------
|
||||
// History:
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "Gizmo.h"
|
||||
|
||||
#include "ObjectManager.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// CGizmo implementation.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
CGizmo::CGizmo()
|
||||
{
|
||||
m_bDelete = false;
|
||||
m_matrix.SetIdentity();
|
||||
m_flags = 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
CGizmo::~CGizmo()
|
||||
{
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CGizmo::SetMatrix( const Matrix44 &tm )
|
||||
{
|
||||
m_matrix = tm;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
IGizmoManager* CGizmo::GetGizmoManager() const
|
||||
{
|
||||
return GetIEditor()->GetObjectManager()->GetGizmoManager();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CGizmo::DeleteThis()
|
||||
{
|
||||
m_bDelete = true;
|
||||
};
|
||||
Reference in New Issue
Block a user