Browse Source

Update lovr.draw docs;

bjorn 6 years ago
parent
commit
d1f2ad8a2b
2 changed files with 2 additions and 3 deletions
  1. 1 1
      api/init.lua
  2. 1 2
      api/lovr/callbacks/draw.lua

+ 1 - 1
api/init.lua

@@ -272,7 +272,7 @@ return {
       name = "draw",
       tag = "callbacks",
       summary = "Called continuously to render frames to the display.",
-      description = "This callback is called every frame.  Use it to render the scene.  If a VR headset is connected, this function will be called twice per frame (once for each eye) and the function will instead draw to the headset's display.",
+      description = "This callback is called every frame.  Use it to render the scene.  If a VR headset is connected, anything rendered by this function will appear in the headset display.",
       key = "lovr.draw",
       module = "lovr",
       related = {

+ 1 - 2
api/lovr/callbacks/draw.lua

@@ -3,8 +3,7 @@ return {
   summary = 'Called continuously to render frames to the display.',
   description = [[
     This callback is called every frame.  Use it to render the scene.  If a VR headset is connected,
-    this function will be called twice per frame (once for each eye) and the function will instead
-    draw to the headset's display.
+    anything rendered by this function will appear in the headset display.
   ]],
   arguments = {},
   returns = {},