Lugre::cTexAtlas_L Class Reference

Inheritance diagram for Lugre::cTexAtlas_L:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cTexAtlas_L:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void RegisterMethods (lua_State *L)
 called by Register(), registers object-methods (see cLuaBind constructor for examples)
virtual const char * GetLuaTypeName ()

Static Public Member Functions

static int Destroy (lua_State *L)
 void Destroy ()
static int AddImage (lua_State *L)
static int MakeImage (lua_State *L)
 void MakeImage (pImage)
static int MakeTexture (lua_State *L)
static int LoadToTexture (lua_State *L)
static int CreateTexAtlas (lua_State *L)


Detailed Description

Definition at line 18 of file lugre_texatlas_L.cpp.


Member Function Documentation

virtual void Lugre::cTexAtlas_L::RegisterMethods ( lua_State *  L  )  [inline, virtual]

called by Register(), registers object-methods (see cLuaBind constructor for examples)

Reimplemented from Lugre::cLuaBind< _T >.

Definition at line 20 of file lugre_texatlas_L.cpp.

References AddImage(), CreateTexAtlas(), Destroy(), LoadToTexture(), MakeImage(), MakeTexture(), PROFILE, and REGISTER_METHOD.

static int Lugre::cTexAtlas_L::Destroy ( lua_State *  L  )  [inline, static]

void Destroy ()

Definition at line 34 of file lugre_texatlas_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cTexAtlas_L::AddImage ( lua_State *  L  )  [inline, static]

see also lugre::cImage : lua wrapper for Ogre::Image return true and texcoords (left,right,top,bottom) on success (false means error, no space left in atlas) bSuccess,l,r,t,b AddImage (pImage,iBorderPixels=4,bWrap=true)

Definition at line 41 of file lugre_texatlas_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cTexAtlas_L::MakeImage ( lua_State *  L  )  [inline, static]

void MakeImage (pImage)

Definition at line 57 of file lugre_texatlas_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cTexAtlas_L::MakeTexture ( lua_State *  L  )  [inline, static]

returns the texname, generates a unique name if no argument is passed no bIsAlpha possible here, the texatlas has to be in an alpha-only image format for that string MakeTexture (sNewTexName=nil)

Definition at line 66 of file lugre_texatlas_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), Lugre::cOgreWrapper::GetSingleton(), Lugre::cOgreWrapper::GetUniqueName(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cTexAtlas_L::LoadToTexture ( lua_State *  L  )  [inline, static]

loads the image to an existing texture, returns true on success bool LoadToTexture (sTexName)

Definition at line 75 of file lugre_texatlas_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cTexAtlas_L::CreateTexAtlas ( lua_State *  L  )  [inline, static]

width and height in pixels, should be square and power of two udata CreateTexAtlas (w,h)

Definition at line 91 of file lugre_texatlas_L.cpp.

References Lugre::cLuaBind< _T >::CreateUData(), and PROFILE.

Referenced by RegisterMethods().

virtual const char* Lugre::cTexAtlas_L::GetLuaTypeName (  )  [inline, virtual]

Implements Lugre::cLuaBind< _T >.

Definition at line 97 of file lugre_texatlas_L.cpp.


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

Generated on Tue May 22 06:00:40 2012 for cpp by  doxygen 1.5.6