From 976d0b2caa3f69c0b7c40e98517073e08e87774d Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 18 Jan 2015 13:14:25 -0500 Subject: Reorganize supported video driver query mechanisms --- doc/menu_lua_api.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index 45db89fb0..5c0f90df6 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -90,7 +90,9 @@ core.sound_play(spec, looped) -> handle core.sound_stop(handle) core.get_video_drivers() ^ get list of video drivers supported by engine (not all modes are guaranteed to work) -^ returns list of available video drivers e.g. { "OpenGL", "Software" } +^ returns list of available video drivers' settings name and 'friendly' display name +^ e.g. { {name="opengl", friendly_name="OpenGL"}, {name="software", friendly_name="Software Renderer"} } +^ first element of returned list is guaranteed to be the NULL driver Formspec: core.update_formspec(formspec) -- cgit v1.2.3