Jelajahi Sumber

Update docs

Daniele Bartolini 10 tahun lalu
induk
melakukan
0bdb828578
1 mengubah file dengan 18 tambahan dan 0 penghapusan
  1. 18 0
      docs/lua_api.txt

+ 18 - 0
docs/lua_api.txt

@@ -1031,6 +1031,24 @@ Profiler
 	**record** (name, value)
 		Records *value* with the given *name*. Value can be either number or Vector3.
 
+Display
+=======
+
+	**modes** () : table
+		Returns an array of display modes. See `Display Mode`_.
+
+	**set_mode** (id)
+		Sets the display mode *id*.
+
+Display Mode
+------------
+
+	Display mode is a lua table with 3 fields:
+
+	* ``id``: The id of the display mode.
+	* ``width``: The width of the display mode.
+	* ``height``: The height of the display mode.
+
 Window
 ======