|
Blender
V2.59
|
#include <KX_FontObject.h>

Public Member Functions | |
| KX_FontObject (void *sgReplicationInfo, SG_Callbacks callbacks, RAS_IRenderTools *rendertools, Object *ob) | |
| virtual | ~KX_FontObject () |
| void | DrawText () |
| virtual CValue * | GetReplica () |
| virtual void | ProcessReplica () |
Public Attributes | |
| Py_Header | |
Protected Attributes | |
| STR_String | m_text |
| Object * | m_object |
| int | m_fontid |
| int | m_dpi |
| float | m_fsize |
| float | m_resolution |
| float | m_color [4] |
| class RAS_IRenderTools * | m_rendertools |
Definition at line 40 of file KX_FontObject.h.
| KX_FontObject::KX_FontObject | ( | void * | sgReplicationInfo, |
| SG_Callbacks | callbacks, | ||
| RAS_IRenderTools * | rendertools, | ||
| Object * | ob | ||
| ) |
Definition at line 46 of file KX_FontObject.cpp.
References BLF_load(), Object::col, copy_v4_v4(), Object::data, FO_BUILTIN_NAME, Curve::fsize, m_color, m_fontid, m_fsize, m_text, VFont::name, KX_GameObject::SetObjectColor(), Curve::str, and Curve::vfont.
Referenced by GetReplica().
| KX_FontObject::~KX_FontObject | ( | ) | [virtual] |
Definition at line 80 of file KX_FontObject.cpp.
| void KX_FontObject::DrawText | ( | ) |
Definition at line 98 of file KX_FontObject.cpp.
References BGE_FONT_RES, KX_GameObject::GetObjectColor(), KX_GameObject::GetOpenGLMatrix(), MT_Tuple4::getValue(), KX_GameObject::GetVisible(), m_color, m_dpi, m_fontid, m_fsize, m_object, m_rendertools, m_resolution, m_text, RAS_IRenderTools::RenderText3D(), RES, size(), and Object::size.
| CValue * KX_FontObject::GetReplica | ( | void | ) | [virtual] |
Inherited from CValue -- return a new copy of this instance allocated on the heap. Ownership of the new object belongs with the caller.
Reimplemented from KX_GameObject.
Definition at line 86 of file KX_FontObject.cpp.
References KX_FontObject(), and ProcessReplica().
| void KX_FontObject::ProcessReplica | ( | ) | [virtual] |
Inherited from CValue -- Makes sure any internal data owned by this class is deep copied. Called internally
Reimplemented from KX_GameObject.
Definition at line 92 of file KX_FontObject.cpp.
References KX_Scene::AddFont(), and KX_GetActiveScene().
Referenced by GetReplica().
float KX_FontObject::m_color[4] [protected] |
Definition at line 68 of file KX_FontObject.h.
Referenced by DrawText(), and KX_FontObject().
int KX_FontObject::m_dpi [protected] |
Definition at line 65 of file KX_FontObject.h.
Referenced by DrawText().
int KX_FontObject::m_fontid [protected] |
Definition at line 64 of file KX_FontObject.h.
Referenced by DrawText(), and KX_FontObject().
float KX_FontObject::m_fsize [protected] |
Definition at line 66 of file KX_FontObject.h.
Referenced by DrawText(), and KX_FontObject().
Object* KX_FontObject::m_object [protected] |
Definition at line 63 of file KX_FontObject.h.
Referenced by DrawText().
class RAS_IRenderTools* KX_FontObject::m_rendertools [protected] |
Definition at line 70 of file KX_FontObject.h.
Referenced by DrawText().
float KX_FontObject::m_resolution [protected] |
Definition at line 67 of file KX_FontObject.h.
Referenced by DrawText().
STR_String KX_FontObject::m_text [protected] |
Reimplemented from KX_GameObject.
Definition at line 62 of file KX_FontObject.h.
Referenced by DrawText(), and KX_FontObject().
Reimplemented from KX_GameObject.
Definition at line 43 of file KX_FontObject.h.