lovr/src/api
Samuel Gosselin 425a2ca343 Add support for setting the display refresh-rate.
OpenXR provides APIs to enumerate the supported refresh-rates, and
selecting a new refresh-rate. This patch adds two new APIs to the
lovr.headset module:

  - lovr.headset.getDisplayFrequencies():
	Returns a table containing the supported refresh-rates on
	success; nil otherwise.
  - lovr.headset.setDisplayFrequency(refreshRate:number):
	Returns true on success, false otherwise.

Only the OpenXR backend has support for this feature and it is
gated by the "refreshRate" feature flag, similarly to what the
"getDisplayFrequency()" API does.
2022-05-06 10:55:29 -07:00
..
api.c Fix error when passing objects as thread arguments; 2022-03-23 23:16:34 -07:00
api.h Add luax_checku32 and luax_optu32; 2022-02-21 14:19:24 -08:00
l_audio.c Source:isSpatial; Separate spatial from effects; 2022-03-27 19:09:25 -07:00
l_audio_source.c Source:isSpatial; Separate spatial from effects; 2022-03-27 19:09:25 -07:00
l_data.c Merge branch 'master' into dev 2022-03-14 13:19:59 -07:00
l_data_blob.c mv util src; 2022-03-22 00:13:38 -07:00
l_data_image.c Add luax_checku32 and luax_optu32; 2022-02-21 14:19:24 -08:00
l_data_modelData.c mv map util; 2022-03-30 12:34:38 -07:00
l_data_rasterizer.c mv util src; 2022-03-22 00:13:38 -07:00
l_data_sound.c mv util src; 2022-03-22 00:13:38 -07:00
l_event.c mv util src; 2022-03-22 00:13:38 -07:00
l_filesystem.c lovr.filesystem.write/append returns success instead of size; 2022-03-30 22:45:09 -07:00
l_graphics.c mv util src; 2022-03-22 00:13:38 -07:00
l_graphics_canvas.c Add luax_checku32 and luax_optu32; 2022-02-21 14:19:24 -08:00
l_graphics_font.c Merge branch 'master' into dev 2022-03-30 13:52:58 -07:00
l_graphics_material.c Flatten api.h; 2021-03-15 18:54:27 -06:00
l_graphics_mesh.c Fix Mesh:setVertices starting index wraparound crash; 2021-10-09 03:01:40 -07:00
l_graphics_model.c Fix Model:getTriangles; Add Lua API; 2021-03-25 12:29:11 -06:00
l_graphics_shader.c Flatten api.h; 2021-03-15 18:54:27 -06:00
l_graphics_shaderBlock.c Fix ShaderBlock:send(Blob) error message; 2021-06-28 22:39:16 -07:00
l_graphics_texture.c Flatten api.h; 2021-03-15 18:54:27 -06:00
l_headset.c Add support for setting the display refresh-rate. 2022-05-06 10:55:29 -07:00
l_lovr.c mv util src; 2022-03-22 00:13:38 -07:00
l_math.c Use doubles for noise; 2022-03-27 14:51:06 -07:00
l_math_curve.c mv util src; 2022-03-22 00:13:38 -07:00
l_math_randomGenerator.c mv util src; 2022-03-22 00:13:38 -07:00
l_math_vectors.c Fix weirdness with vec2 scale arguments; 2022-04-06 10:10:27 -07:00
l_physics.c mv util src; 2022-03-22 00:13:38 -07:00
l_physics_collider.c Minor physics cleanup; 2022-03-30 22:05:10 -07:00
l_physics_joints.c Minor physics cleanup; 2022-03-30 22:05:10 -07:00
l_physics_shapes.c Minor physics cleanup; 2022-03-30 22:05:10 -07:00
l_physics_world.c Add `World:setStepIterations(num)` and its getter 2022-04-27 11:39:08 -07:00
l_system.c Flatten api.h; 2021-03-15 18:54:27 -06:00
l_thread.c mv util src; 2022-03-22 00:13:38 -07:00
l_thread_channel.c mv util src; 2022-03-22 00:13:38 -07:00
l_thread_thread.c mv util src; 2022-03-22 00:13:38 -07:00
l_timer.c Flatten api.h; 2021-03-15 18:54:27 -06:00