lua/wrappers/gfx/lua_texture.cpp
/**
	 * Attempts to reload the texture from its currently set filename.
	 *
	 * @returns am.code Return codes:
	 * <table class='return_codes'>
	 *  <tr><td>success</td><td>The texture loaded the new file successfully.</td></tr>
	 *  <tr><td>file_not_found</td><td>Texture didn't load because the file could not be found.</td></tr>
	 *  <tr><td>texture_load_failed</td><td>Texture didn't load because there was an issue with the file.</td></tr>
	 * </table>
	 */
Attempts to reload the texture from its currently set filename.
@returns am.code Return codes:

successThe texture loaded the new file successfully.
file_not_foundTexture didn't load because the file could not be found.
texture_load_failedTexture didn't load because there was an issue with the file.

Attempts to reload the texture from its currently set filename . @returns am . code Return codes : successThe texture loaded the new file successfully . file_not_foundTexture didn ' t load because the file could not be found . texture_load_failedTexture didn ' t load because there was an issue with the file .
int Texture_reload(lua_State *lua)
	{
		Texture *texture = castUData<Texture>(lua, 1);
		if (texture)
		{
			lua_pushinteger(lua, texture->reload());
			return 1;
		}
		return LuaState::expectedContext(lua, "reload", "am.texture");
	}
int Texture_reload ( lua_State * lua ) { Texture * texture = castUData < Texture > ( lua , 1 ) ; if ( texture ) { lua_pushinteger ( lua , texture -> reload ( ) ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Attempts to reload the texture from its currently set filename.
Attempts to reload the texture from its currently set filename .