Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_FontObject.cpp
| Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | CValue* KX_FontObject::GetReplica() | ||||
| KX_FontObject* replica = new KX_FontObject(*this); | KX_FontObject* replica = new KX_FontObject(*this); | ||||
| replica->ProcessReplica(); | replica->ProcessReplica(); | ||||
| return replica; | return replica; | ||||
| } | } | ||||
| void KX_FontObject::ProcessReplica() | void KX_FontObject::ProcessReplica() | ||||
| { | { | ||||
| KX_GameObject::ProcessReplica(); | KX_GameObject::ProcessReplica(); | ||||
| KX_GetActiveScene()->AddFont(this); | KX_GetActiveScene()->GetFontList()->Add(AddRef()); // will be remove with D1130 | ||||
| } | } | ||||
| int GetFontId(VFont *vfont) | int GetFontId(VFont *vfont) | ||||
| { | { | ||||
| PackedFile *packedfile=NULL; | PackedFile *packedfile=NULL; | ||||
| int fontid = -1; | int fontid = -1; | ||||
| if (vfont->packedfile) { | if (vfont->packedfile) { | ||||
| ▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines | |||||