lua/wrappers/gfx/lua_texture.cpp
/**
	 * @static
	 * Creates a new texture using the given filename.
	 *
	 * @param string filename Path to the texture.
	 */
@static
Creates a new texture using the given filename.

@param string filename Path to the texture.
@static Creates a new texture using the given filename . @param string filename Path to the texture .
int Texture_ctor(lua_State *lua)
	{
		if (lua_gettop(lua) == 1)
		{
			if (lua_isstr(lua, 1))
			{
				Texture *asset = new Texture(lua_tostring(lua, 1));
				wrapRefObject<Texture>(lua, asset);
				return 1;
			}
		}
		return LuaState::expectedArgs(lua, "@new", "string filename");
	}
int Texture_ctor ( lua_State * lua ) { if ( lua_gettop ( lua ) == 1 ) { if ( lua_isstr ( lua , 1 ) ) { Texture * asset = new Texture ( lua_tostring ( lua , 1 ) ) ; wrapRefObject < Texture > ( lua , asset ) ; return 1 ; } } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Creates a new texture using the given filename.
@static Creates a new texture using the given filename .