Lugre::cLuaBind< _T > Class Template Reference

#include <lugre_luabind.h>

Inherited by cBufferedMesh_L, Lugre::cBeamFilterComplex_L, Lugre::cBitMask_L, Lugre::cCamera_L, Lugre::cConnection_L, Lugre::cDialog_L, Lugre::cFIFO_L, Lugre::cGfx2D_L, Lugre::cGfx3D_L, Lugre::cImage_L, Lugre::cNetListener_L, Lugre::cRandom_L, Lugre::cRenderGroup2D_L, Lugre::cRenderManager2D_L, Lugre::cRenderTexture_L, Lugre::cRobRenderable2D_L, Lugre::cSoundSource_L, Lugre::cSoundSystem_L, Lugre::cSpriteList_L, Lugre::cTexAtlas_L, Lugre::cThread_LoadFile_L, Lugre::cThread_NetRequest_L, Lugre::cUDP_ReceiveSocket_L, Lugre::cUDP_SendSocket_L, Lugre::cViewport_L, and Lugre::cWidget_L.

List of all members.

Public Types

enum  {
  kVarType_int, kVarType_size_t, kVarType_bool, kVarType_Float,
  kVarType_Real, kVarType_Vector2, kVarType_Vector3, kVarType_Colour,
  kVarType_Quaternion, kVarType_String, kVarType_Gfx3D, kVarType_Gfx2D,
  kVarType_ObjSmartPtr
}
enum  { kVarFlag_Readonly = (1<<0), kVarFlag_NotifyChange = (1<<1) }

Public Member Functions

virtual const char * GetLuaTypeName ()=0
void LuaRegister (lua_State *L)
 registration
virtual ~cLuaBind ()
virtual void NotifyGC (lua_State *L, _T *target)
 callback for when a handle of this binding is garbagecollected by lua
virtual void RegisterMethods (lua_State *L)
 called by Register(), registers object-methods (see cLuaBind constructor for examples)
virtual void RegisterMembers ()
virtual void NotifyChange (_T *pObj, const char *sMemberVarName)
 called, when the Set method of a membervar with the kVarFlag_NotifyChange is called
int Set (_T *pObj, const char *sMemberVarName, lua_State *L, size_t index=3)
 methods for access to member vars
int Get (_T *pObj, const char *sMemberVarName, lua_State *L)

Static Public Member Functions

static cLuaBind< _T > * GetSingletonPtr (cLuaBind< _T > *prototype=0)
static int CreateUData (lua_State *L, _T *target)
 methods for use
static int CreateUDataOrNil (lua_State *L, _T *target)
 to return nil in lua if target is not set
static _T * checkudata (lua_State *L, int index=1)
 verifies if the udata at index is really of the correct type, returns the target of the smartptr, might be 0
static _T * checkudata_alive (lua_State *L, int index=1)
 verifies if the udata at index is really of the correct type, and the smartptr is not 0 (throws lua error otherwise)
static int LuaGC (lua_State *L)
 methods automatically registered for lua
static int l_Get (lua_State *L)
 value Get (udata,fieldname)
static int l_Set (lua_State *L)
 void Set (udata,fieldname,value)
static int IsAlive (lua_State *L)
 bool IsAlive (udata)

Public Attributes

std::map< std::string,
cMemberVar * > 
mlMemberVar
std::vector< struct luaL_reg > mlMethod
std::string msError_X_expected
std::string msError_dead_X_ptr
const char * mszError_X_expected
const char * mszError_dead_X_ptr

Classes

class  cMemberVar
struct  udata
 this will be allocated by lua as the userdata More...


Detailed Description

template<class _T>
class Lugre::cLuaBind< _T >

Definition at line 56 of file lugre_luabind.h.


Member Enumeration Documentation

template<class _T>
anonymous enum

Enumerator:
kVarType_int 
kVarType_size_t 
kVarType_bool 
kVarType_Float 
kVarType_Real 
kVarType_Vector2 
kVarType_Vector3 
kVarType_Colour 
kVarType_Quaternion 
kVarType_String 
kVarType_Gfx3D 
kVarType_Gfx2D 
kVarType_ObjSmartPtr 

Definition at line 61 of file lugre_luabind.h.

template<class _T>
anonymous enum

Enumerator:
kVarFlag_Readonly 
kVarFlag_NotifyChange 

Definition at line 77 of file lugre_luabind.h.


Constructor & Destructor Documentation

template<class _T>
virtual Lugre::cLuaBind< _T >::~cLuaBind (  )  [inline, virtual]

methods that can be overridden for usage

Definition at line 201 of file lugre_luabind.h.


Member Function Documentation

template<class _T>
static cLuaBind<_T>* Lugre::cLuaBind< _T >::GetSingletonPtr ( cLuaBind< _T > *  prototype = 0  )  [inline, static]

template<class _T>
virtual const char* Lugre::cLuaBind< _T >::GetLuaTypeName (  )  [pure virtual]

template<class _T>
void Lugre::cLuaBind< _T >::LuaRegister ( lua_State *  L  )  [inline]

registration

Definition at line 114 of file lugre_luabind.h.

template<class _T>
virtual void Lugre::cLuaBind< _T >::NotifyGC ( lua_State *  L,
_T *  target 
) [inline, virtual]

callback for when a handle of this binding is garbagecollected by lua

Definition at line 204 of file lugre_luabind.h.

template<class _T>
virtual void Lugre::cLuaBind< _T >::RegisterMethods ( lua_State *  L  )  [inline, virtual]

template<class _T>
virtual void Lugre::cLuaBind< _T >::RegisterMembers (  )  [inline, virtual]

called by Register(), registers object-member-vars call this to initialize our list

Reimplemented in cObject_L, cObjectController_L, Lugre::cGfx2D_L, Lugre::cDialog_L, and Lugre::cWidget_L.

Definition at line 213 of file lugre_luabind.h.

Referenced by Lugre::cLuaBind< Lugre::cBufferedMesh >::LuaRegister().

template<class _T>
virtual void Lugre::cLuaBind< _T >::NotifyChange ( _T *  pObj,
const char *  sMemberVarName 
) [inline, virtual]

called, when the Set method of a membervar with the kVarFlag_NotifyChange is called

Definition at line 224 of file lugre_luabind.h.

Referenced by Lugre::cLuaBind< Lugre::cBufferedMesh >::Set().

template<class _T>
static int Lugre::cLuaBind< _T >::CreateUData ( lua_State *  L,
_T *  target 
) [inline, static]

template<class _T>
static int Lugre::cLuaBind< _T >::CreateUDataOrNil ( lua_State *  L,
_T *  target 
) [inline, static]

to return nil in lua if target is not set

Definition at line 260 of file lugre_luabind.h.

template<class _T>
static _T* Lugre::cLuaBind< _T >::checkudata ( lua_State *  L,
int  index = 1 
) [inline, static]

template<class _T>
static _T* Lugre::cLuaBind< _T >::checkudata_alive ( lua_State *  L,
int  index = 1 
) [inline, static]

verifies if the udata at index is really of the correct type, and the smartptr is not 0 (throws lua error otherwise)

Definition at line 294 of file lugre_luabind.h.

Referenced by Lugre::cTexAtlas_L::AddImage(), Lugre::cGfx3D_L::AnimAddTime(), Lugre::cFIFO_L::AppendToFile(), Lugre::cGfx3D_L::BeamAddLine(), Lugre::cGfx3D_L::BeamAddPoint(), Lugre::cGfx3D_L::BeamClearLine(), Lugre::cGfx3D_L::BeamClearLines(), Lugre::cGfx3D_L::BeamCountLines(), Lugre::cGfx3D_L::BeamDeleteLine(), Lugre::cGfx3D_L::BeamPopBack(), Lugre::cGfx3D_L::BeamPopFront(), Lugre::cGfx3D_L::BeamSetPoint(), Lugre::cGfx3D_L::BeamUpdateBounds(), Lugre::cDialog_L::BringToFront(), Lugre::cRenderGroup2D_L::BringToFront(), Lugre::cRenderGroup2D_L::CalcAbsBounds(), Lugre::cRobRenderable2D_L::CastToRenderGroup2D(), Lugre::cSpriteList_L::CastToRenderGroup2D(), Lugre::cRenderManager2D_L::CastToRenderGroup2D(), Lugre::cFIFO_L::Clear(), Lugre::cRenderGroup2D_L::ClearClip(), Lugre::cRobRenderable2D_L::ClearTexTransform(), Lugre::cSpriteList_L::ClearTexTransform(), Lugre::cFIFO_L::CRC(), Lugre::cWidget_L::CreateChild(), Lugre::cGfx3D_L::CreateChild(), Lugre::cGfx3D_L::CreateMergedMesh(), Lugre::cRenderGroup2D_L::CreateRenderGroup2D(), Lugre::cSoundSystem_L::CreateSoundSource(), Lugre::cSoundSystem_L::CreateSoundSource3D(), Lugre::cGfx3D_L::CreateTagPoint(), Lugre::cDialog_L::CreateWidget(), Lugre::cWidget_L::Destroy(), Lugre::cDialog_L::Destroy(), Lugre::cThread_LoadFile_L::Destroy(), Lugre::cThread_NetRequest_L::Destroy(), Lugre::cTexAtlas_L::Destroy(), Lugre::cRobRenderable2D_L::Destroy(), Lugre::cSpriteList_L::Destroy(), Lugre::cRenderManager2D_L::Destroy(), Lugre::cRenderGroup2D_L::Destroy(), Lugre::cSoundSystem_L::Destroy(), Lugre::cSoundSource_L::Destroy(), Lugre::cRandom_L::Destroy(), Lugre::cUDP_SendSocket_L::Destroy(), Lugre::cUDP_ReceiveSocket_L::Destroy(), Lugre::cNetListener_L::Destroy(), Lugre::cConnection_L::Destroy(), Lugre::cGfx3D_L::Destroy(), Lugre::cGfx2D_L::Destroy(), Lugre::cFIFO_L::Destroy(), Lugre::cBitMask_L::Destroy(), Lugre::cBeamFilterComplex_L::Destroy(), Lugre::cGfx3D_L::FastBatch_AddMeshBuffer(), Lugre::cGfx3D_L::FastBatch_Build(), Lugre::cGfx3D_L::FastBatch_SetDisplayRange(), Lugre::cGfx3D_L::GetAnimLength(), Lugre::cGfx3D_L::GetAnimTimePos(), Lugre::cRenderGroup2D_L::GetChildListHandles(), Lugre::cRenderGroup2D_L::GetChildListRevision(), Lugre::cGfx3D_L::GetCustomBoundRad(), Lugre::cGfx2D_L::GetDerivedLeft(), Lugre::cGfx3D_L::GetDerivedOrientation(), Lugre::cRenderGroup2D_L::GetDerivedPos(), Lugre::cGfx3D_L::GetDerivedPosition(), Lugre::cGfx2D_L::GetDerivedTop(), Lugre::cGfx2D_L::GetDimensions(), Lugre::cSoundSystem_L::GetDistanceFactor(), Lugre::cRenderGroup2D_L::GetEffectiveClipAbs(), Lugre::cRenderGroup2D_L::GetEffectiveClipRel(), Lugre::cGfx3D_L::GetEntityBoundRad(), Lugre::cGfx3D_L::GetEntityBounds(), Lugre::cGfx3D_L::GetEntityIndexCount(), Lugre::cGfx3D_L::GetEntityVertex(), Lugre::cRandom_L::GetFloat(), Lugre::cGfx2D_L::GetGlyphAtPos(), Lugre::cGfx2D_L::GetGlyphBounds(), Lugre::cRenderGroup2D_L::GetHandle(), Lugre::cGfx2D_L::GetHeight(), Lugre::cRandom_L::GetInt(), Lugre::cGfx2D_L::GetLeft(), Lugre::cSoundSystem_L::GetListenerPosition(), Lugre::cSoundSystem_L::GetListenerVelocity(), Lugre::cGfx3D_L::GetMeshSubEntityCount(), Lugre::cGfx3D_L::GetMeshSubEntityMaterial(), Lugre::cSoundSource_L::GetMinMaxDistance(), Lugre::cGfx3D_L::GetOrientation(), Lugre::cGfx3D_L::GetPathAnimTimePos(), Lugre::cRenderGroup2D_L::GetPos(), Lugre::cGfx2D_L::GetPos(), Lugre::cSoundSource_L::GetPosition(), Lugre::cGfx3D_L::GetPosition(), Lugre::cFIFO_L::GetQuickHandle(), Lugre::cRenderGroup2D_L::GetRelBounds(), Lugre::cConnection_L::GetRemoteAddress(), Lugre::cGfx3D_L::GetScale(), Lugre::cBitMask_L::GetSize(), Lugre::cGfx3D_L::GetSkeletonName(), cBufferedMesh_L::GetSubMeshCount(), cBufferedMesh_L::GetSubMeshMatName(), Lugre::cGfx2D_L::GetTextBounds(), Lugre::cGfx2D_L::GetTop(), Lugre::cFIFO_L::GetTotalPopped(), Lugre::cSoundSource_L::GetVelocity(), Lugre::cDialog_L::GetVisible(), Lugre::cRenderGroup2D_L::GetVisible(), Lugre::cGfx2D_L::GetVisible(), Lugre::cSoundSystem_L::GetVolume(), Lugre::cSoundSource_L::GetVolume(), Lugre::cGfx2D_L::GetWidth(), Lugre::cGfx3D_L::GetWorldAABB(), Lugre::cBitMask_L::GetWrap(), Lugre::cFIFO_L::HackRestore(), Lugre::cGfx3D_L::HasBone(), Lugre::cThread_LoadFile_L::HasError(), Lugre::cThread_NetRequest_L::HasError(), Lugre::cGfx3D_L::HasSkeleton(), Lugre::cGfx2D_L::InitBCCPO(), Lugre::cGfx2D_L::InitCCPO(), Lugre::cGfx2D_L::InitCCTO(), Lugre::cGfx2D_L::InitCompass(), Lugre::cGfx2D_L::InitPanel(), Lugre::cGfx2D_L::InitRROC(), Lugre::cGfx2D_L::InitSOC(), Lugre::cGfx2D_L::InitText(), Lugre::cRenderGroup2D_L::InsertAfter(), Lugre::cRenderGroup2D_L::InsertBefore(), Lugre::cSoundSource_L::Is3D(), Lugre::cGfx3D_L::IsAnimLooped(), Lugre::cConnection_L::IsConnected(), Lugre::cThread_LoadFile_L::IsFinished(), Lugre::cThread_NetRequest_L::IsFinished(), Lugre::cGfx3D_L::IsPathAnimLooped(), Lugre::cSoundSource_L::IsPaused(), Lugre::cSoundSource_L::IsPlaying(), Lugre::cWidget_L::IsUnderPos(), Lugre::cTexAtlas_L::LoadToTexture(), Lugre::cTexAtlas_L::MakeImage(), Lugre::cTexAtlas_L::MakeTexture(), Lugre::cConnection_L::NetLocalSlave(), Lugre::cGfx3D_L::ParticleSystem_FastForward(), Lugre::cGfx3D_L::ParticleSystem_GetNumParticles(), Lugre::cGfx3D_L::ParticleSystem_RemoveAllEmitters(), Lugre::cGfx3D_L::ParticleSystem_SetDefaultParticleSize(), Lugre::cGfx3D_L::ParticleSystem_SetEmitterRate(), Lugre::cGfx3D_L::ParticleSystem_SetEmitterVelocityMinMax(), Lugre::cGfx3D_L::ParticleSystem_SetNonVisibleUpdateTimeout(), Lugre::cGfx3D_L::ParticleSystem_SetSpeedFactor(), Lugre::cGfx3D_L::PathAnimAddTime(), Lugre::cSoundSource_L::Pause(), Lugre::cFIFO_L::PeekDecompressIntoFifo(), Lugre::cFIFO_L::PeekFloat(), Lugre::cFIFO_L::PeekNetUint16(), Lugre::cFIFO_L::PeekNetUint32(), Lugre::cFIFO_L::PeekNetUint8(), Lugre::cSoundSource_L::Play(), Lugre::cFIFO_L::PokeNetUint8(), Lugre::cConnection_L::Pop(), Lugre::cNetListener_L::PopAccepted(), Lugre::cFIFO_L::PopC(), Lugre::cFIFO_L::PopF(), Lugre::cFIFO_L::PopFIFO(), Lugre::cFIFO_L::PopFilledString(), Lugre::cFIFO_L::PopI(), Lugre::cFIFO_L::PopInt16(), Lugre::cFIFO_L::PopInt32(), Lugre::cFIFO_L::PopInt8(), Lugre::cFIFO_L::PopNetF(), Lugre::cFIFO_L::PopNetInt16(), Lugre::cFIFO_L::PopNetInt32(), Lugre::cFIFO_L::PopNetInt8(), Lugre::cFIFO_L::PopNetUint16(), Lugre::cFIFO_L::PopNetUint32(), Lugre::cFIFO_L::PopNetUint8(), Lugre::cFIFO_L::PopRaw(), Lugre::cFIFO_L::PopS(), Lugre::cFIFO_L::PopTerminatedString(), Lugre::cFIFO_L::PopU(), Lugre::cFIFO_L::PopUint16(), Lugre::cFIFO_L::PopUint32(), Lugre::cFIFO_L::PopUint8(), Lugre::cFIFO_L::PopUnicodeLEString(), Lugre::cFIFO_L::PopUnicodeString(), Lugre::cConnection_L::Push(), Lugre::cFIFO_L::PushC(), Lugre::cFIFO_L::PushCompressFromFifo(), Lugre::cFIFO_L::PushF(), Lugre::cFIFO_L::PushFIFO(), Lugre::cFIFO_L::PushFIFOPartRaw(), Lugre::cFIFO_L::PushFilledString(), Lugre::cFIFO_L::PushFilledUnicodeString(), Lugre::cFIFO_L::PushI(), Lugre::cFIFO_L::PushInt16(), Lugre::cFIFO_L::PushInt32(), Lugre::cFIFO_L::PushInt8(), Lugre::cFIFO_L::PushNetF(), Lugre::cFIFO_L::PushNetInt16(), Lugre::cFIFO_L::PushNetInt32(), Lugre::cFIFO_L::PushNetInt8(), Lugre::cFIFO_L::PushNetUint16(), Lugre::cFIFO_L::PushNetUint32(), Lugre::cFIFO_L::PushNetUint8(), Lugre::cFIFO_L::PushPlainText(), Lugre::cFIFO_L::PushS(), Lugre::cFIFO_L::PushU(), Lugre::cFIFO_L::PushUint16(), Lugre::cFIFO_L::PushUint32(), Lugre::cFIFO_L::PushUint8(), cBufferedMesh_L::RayPick(), Lugre::cGfx3D_L::RayPick(), Lugre::cGfx3D_L::RayPickList(), Lugre::cFIFO_L::ReadFromFile(), Lugre::cUDP_ReceiveSocket_L::Receive(), Lugre::cGfx3D_L::RegisterMethods(), Lugre::cFIFO_L::RegisterMethods(), Lugre::cGfx3D_L::RenderableAddToMesh(), Lugre::cGfx3D_L::RenderableBegin(), Lugre::cGfx2D_L::RenderableBegin(), Lugre::cGfx3D_L::RenderableConvertToMesh(), Lugre::cGfx3D_L::RenderableEnd(), Lugre::cGfx2D_L::RenderableEnd(), Lugre::cGfx3D_L::RenderableIndex(), Lugre::cGfx2D_L::RenderableIndex(), Lugre::cGfx3D_L::RenderableIndex2(), Lugre::cGfx3D_L::RenderableIndex3(), Lugre::cGfx2D_L::RenderableIndex3(), Lugre::cGfx3D_L::RenderableSkipIndices(), Lugre::cGfx2D_L::RenderableSkipIndices(), Lugre::cGfx3D_L::RenderableSkipVertices(), Lugre::cGfx2D_L::RenderableSkipVertices(), Lugre::cGfx3D_L::RenderableVertex(), Lugre::cGfx2D_L::RenderableVertex(), Lugre::cSpriteList_L::ResizeList(), Lugre::cRobRenderable2D_L::RobRenderable2D_Open(), Lugre::cUDP_SendSocket_L::Send(), Lugre::cDialog_L::SendToBack(), Lugre::cRenderGroup2D_L::SendToBack(), Lugre::cGfx2D_L::SetAlignment(), Lugre::cGfx2D_L::SetAngBias(), Lugre::cGfx3D_L::SetAnim(), Lugre::cGfx3D_L::SetAnimTimePos(), Lugre::cGfx2D_L::SetAutoWrap(), Lugre::cGfx3D_L::SetBeam(), Lugre::cGfx3D_L::SetBillboard(), Lugre::cWidget_L::SetBitMask(), Lugre::cGfx2D_L::SetBorder(), Lugre::cGfx2D_L::SetBorderMaterial(), Lugre::cUDP_SendSocket_L::SetBroadcast(), Lugre::cGfx3D_L::SetCastShadows(), Lugre::cGfx2D_L::SetCharHeight(), Lugre::cRenderGroup2D_L::SetClip(), Lugre::cGfx2D_L::SetClip(), Lugre::cGfx2D_L::SetColour(), Lugre::cGfx2D_L::SetColours(), Lugre::cGfx3D_L::SetCustomBoundRad(), Lugre::cGfx2D_L::SetDimensions(), Lugre::cGfx3D_L::SetDisplaySkeleton(), Lugre::cSoundSystem_L::SetDistanceFactor(), Lugre::cGfx3D_L::SetExplosion(), Lugre::cGfx3D_L::SetFastBatch(), Lugre::cGfx2D_L::SetFont(), Lugre::cRenderGroup2D_L::SetForcedMinSize(), Lugre::cGfx3D_L::SetForceLookat(), Lugre::cGfx3D_L::SetForcePosCam(), Lugre::cGfx3D_L::SetForceRotCam(), Lugre::cSoundSystem_L::SetListenerPosition(), Lugre::cSoundSystem_L::SetListenerVelocity(), Lugre::cRobRenderable2D_L::SetMaterial(), Lugre::cSpriteList_L::SetMaterial(), Lugre::cGfx3D_L::SetMaterial(), Lugre::cGfx2D_L::SetMaterial(), Lugre::cGfx3D_L::SetMesh(), Lugre::cGfx3D_L::SetMeshSubEntityCustomParameter(), Lugre::cGfx3D_L::SetMeshSubEntityMaterial(), Lugre::cSoundSource_L::SetMinMaxDistance(), Lugre::cGfx3D_L::SetNormaliseNormals(), Lugre::cGfx3D_L::SetOrientation(), Lugre::cRenderGroup2D_L::SetParent(), Lugre::cGfx3D_L::SetParent(), Lugre::cGfx2D_L::SetPartColours(), Lugre::cGfx3D_L::SetParticleSystem(), Lugre::cGfx3D_L::SetParticleSystemBounds(), Lugre::cGfx2D_L::SetPartUV(), Lugre::cGfx3D_L::SetPath(), Lugre::cGfx3D_L::SetPathAnimTimePos(), Lugre::cRenderGroup2D_L::SetPos(), Lugre::cGfx2D_L::SetPos(), Lugre::cSoundSource_L::SetPosition(), Lugre::cGfx3D_L::SetPosition(), Lugre::cGfx3D_L::SetPrepareFrameStep(), Lugre::cGfx2D_L::SetPrepareFrameStep(), Lugre::cGfx3D_L::SetRadar(), Lugre::cGfx3D_L::SetRadialGrid(), Lugre::cGfx2D_L::SetRankFactor(), Lugre::cRenderManager2D_L::SetRenderEvenIfOverlaysDisabled(), Lugre::cGfx3D_L::SetRenderingDistance(), Lugre::cGfx3D_L::SetRootAsParent(), Lugre::cGfx2D_L::SetRotate(), Lugre::cGfx3D_L::SetScale(), Lugre::cGfx3D_L::SetSimpleRenderable(), Lugre::cGfx3D_L::SetStarfield(), cBufferedMesh_L::SetSubMeshMatName(), Lugre::cGfx3D_L::SetTargetTracker(), Lugre::cGfx3D_L::SetText(), Lugre::cGfx2D_L::SetText(), Lugre::cGfx2D_L::SetTextAlignment(), Lugre::cGfx3D_L::SetTextFont(), Lugre::cRobRenderable2D_L::SetTexTransform(), Lugre::cSpriteList_L::SetTexTransform(), Lugre::cGfx2D_L::SetTrackMouse(), Lugre::cGfx2D_L::SetTrackOffset(), Lugre::cGfx2D_L::SetTrackPosSceneNode(), Lugre::cGfx3D_L::SetTrail(), Lugre::cGfx2D_L::SetTransparent(), Lugre::cGfx2D_L::SetUV(), Lugre::cGfx2D_L::SetUVMid(), Lugre::cGfx2D_L::SetUVRad(), Lugre::cSoundSource_L::SetVelocity(), Lugre::cDialog_L::SetVisible(), Lugre::cRenderGroup2D_L::SetVisible(), Lugre::cGfx3D_L::SetVisible(), Lugre::cGfx2D_L::SetVisible(), Lugre::cSoundSystem_L::SetVolume(), Lugre::cSoundSource_L::SetVolume(), Lugre::cGfx3D_L::SetWireBoundingBoxGfx3D(), Lugre::cGfx3D_L::SetWireBoundingBoxMinMax(), Lugre::cBitMask_L::SetWrap(), Lugre::cGfx3D_L::ShareSkeletonInstanceWith(), Lugre::cFIFO_L::Size(), Lugre::cGfx2D_L::SOC_ChildBringToFront(), Lugre::cGfx2D_L::SOC_ChildInsertAfter(), Lugre::cGfx2D_L::SOC_ChildInsertBefore(), Lugre::cGfx2D_L::SOC_ChildSendToBack(), Lugre::cSpriteList_L::SpriteList_Open(), Lugre::cSoundSystem_L::Step(), Lugre::cSoundSource_L::Stop(), Lugre::cGfx3D_L::StopSharingSkeletonInstance(), Lugre::cBitMask_L::TestBit(), cBufferedMesh_L::TransformSubMeshTexCoords(), Lugre::cWidget_L::UpdateClip(), and Lugre::cFIFO_L::WriteToFile().

template<class _T>
static int Lugre::cLuaBind< _T >::LuaGC ( lua_State *  L  )  [inline, static]

methods automatically registered for lua

void LuaGC (udata) GarbageCollection/UData-Destructor NotifyGC can be used as callback

Definition at line 305 of file lugre_luabind.h.

template<class _T>
static int Lugre::cLuaBind< _T >::l_Get ( lua_State *  L  )  [inline, static]

value Get (udata,fieldname)

Definition at line 319 of file lugre_luabind.h.

template<class _T>
static int Lugre::cLuaBind< _T >::l_Set ( lua_State *  L  )  [inline, static]

void Set (udata,fieldname,value)

Definition at line 327 of file lugre_luabind.h.

template<class _T>
static int Lugre::cLuaBind< _T >::IsAlive ( lua_State *  L  )  [inline, static]

bool IsAlive (udata)

Definition at line 335 of file lugre_luabind.h.

template<class _T>
int Lugre::cLuaBind< _T >::Set ( _T *  pObj,
const char *  sMemberVarName,
lua_State *  L,
size_t  index = 3 
) [inline]

methods for access to member vars

on error : pushes error string, especially "readonly" or "not found" default index=3 because index[1]=obj, index[2]=varname

Definition at line 344 of file lugre_luabind.h.

template<class _T>
int Lugre::cLuaBind< _T >::Get ( _T *  pObj,
const char *  sMemberVarName,
lua_State *  L 
) [inline]

returns nil if not found or error returns vector & quaternion as tables (with numeric index) default index=3 because index[1]=obj, index[2]=varname

Definition at line 456 of file lugre_luabind.h.


Member Data Documentation

template<class _T>
std::map<std::string,cMemberVar*> Lugre::cLuaBind< _T >::mlMemberVar

template<class _T>
std::vector<struct luaL_reg> Lugre::cLuaBind< _T >::mlMethod

template<class _T>
std::string Lugre::cLuaBind< _T >::msError_X_expected

Definition at line 92 of file lugre_luabind.h.

template<class _T>
std::string Lugre::cLuaBind< _T >::msError_dead_X_ptr

Definition at line 93 of file lugre_luabind.h.

template<class _T>
const char* Lugre::cLuaBind< _T >::mszError_X_expected

Definition at line 94 of file lugre_luabind.h.

Referenced by Lugre::cLuaBind< Lugre::cBufferedMesh >::checkudata().

template<class _T>
const char* Lugre::cLuaBind< _T >::mszError_dead_X_ptr


The documentation for this class was generated from the following file:

Generated on Wed Feb 8 06:00:21 2012 for cpp by  doxygen 1.5.6