bind
This commit is contained in:
@@ -67,6 +67,29 @@ const RectF *RageTexture::GetTextureCoordRect( int iFrameNo ) const
|
||||
return &m_TextureCoordRects[iFrameNo];
|
||||
}
|
||||
|
||||
// lua start
|
||||
#include "LuaBinding.h"
|
||||
|
||||
class LunaRageTexture: public Luna<RageTexture>
|
||||
{
|
||||
public:
|
||||
LunaRageTexture() { LUA->Register( Register ); }
|
||||
|
||||
static int position( T* p, lua_State *L ) { p->SetPosition( FArg(1) ); return 0; }
|
||||
static int loop( T* p, lua_State *L ) { p->SetLooping( !!IArg(1) ); return 0; }
|
||||
static int rate( T* p, lua_State *L ) { p->SetPlaybackRate( FArg(1) ); return 0; }
|
||||
|
||||
static void Register(lua_State *L) {
|
||||
ADD_METHOD( position );
|
||||
ADD_METHOD( loop );
|
||||
ADD_METHOD( rate );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
LUA_REGISTER_CLASS( RageTexture )
|
||||
// lua end
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001-2004 Chris Danford
|
||||
* All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user