mirror of https://github.com/bjornbytes/lovr.git
425a2ca343
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. |
||
---|---|---|
.. | ||
api.c | ||
api.h | ||
l_audio.c | ||
l_audio_source.c | ||
l_data.c | ||
l_data_blob.c | ||
l_data_image.c | ||
l_data_modelData.c | ||
l_data_rasterizer.c | ||
l_data_sound.c | ||
l_event.c | ||
l_filesystem.c | ||
l_graphics.c | ||
l_graphics_canvas.c | ||
l_graphics_font.c | ||
l_graphics_material.c | ||
l_graphics_mesh.c | ||
l_graphics_model.c | ||
l_graphics_shader.c | ||
l_graphics_shaderBlock.c | ||
l_graphics_texture.c | ||
l_headset.c | ||
l_lovr.c | ||
l_math.c | ||
l_math_curve.c | ||
l_math_randomGenerator.c | ||
l_math_vectors.c | ||
l_physics.c | ||
l_physics_collider.c | ||
l_physics_joints.c | ||
l_physics_shapes.c | ||
l_physics_world.c | ||
l_system.c | ||
l_thread.c | ||
l_thread_channel.c | ||
l_thread_thread.c | ||
l_timer.c |