Too much changes
This commit is contained in:
@@ -6,7 +6,7 @@ IMPLEMENT_RTTI_BASE( Entity );
|
||||
|
||||
Entity::Entity() :
|
||||
m_position(0.0f), m_rotation(0.0f), m_scale(1.0f),
|
||||
m_model(nullptr)
|
||||
m_model(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -46,13 +46,13 @@ void TestRTTI()
|
||||
LogMsg("light classname: %s", light->GetRuntimeClass()->m_pClassName);
|
||||
|
||||
LightEntity* lightCasted = DynamicCast< LightEntity, Entity >( entity );
|
||||
LogMsg("light from entity casted: %s", lightCasted ? "successful" : "failed");
|
||||
LogMsg("light from entity cast: %s", lightCasted ? "successful" : "failed");
|
||||
|
||||
delete entity;
|
||||
entity = light;
|
||||
|
||||
lightCasted = DynamicCast< LightEntity, Entity >( entity );
|
||||
LogMsg("light from entity(LightEntity) casted: %s", lightCasted ? "successful" : "failed");
|
||||
LogMsg("light from entity(LightEntity) cast: %s", lightCasted ? "successful" : "failed");
|
||||
|
||||
entity = NULL;
|
||||
delete light;
|
||||
|
||||
Reference in New Issue
Block a user