Allow users to access mjrContext.

PiperOrigin-RevId: 836641787
Change-Id: I2f2aee30a047336d1adbe33b7996fee3ec845213
This commit is contained in:
Haroon Qureshi
2025-11-25 06:24:22 -08:00
committed by Copybara-Service
parent f28bcc4346
commit d8712808b9
+3
View File
@@ -58,6 +58,9 @@ class Renderer {
// Returns the current, average frame rate.
double GetFrameRate() const { return fps_; }
// Returns the render context.
const mjrContext& GetContext() const { return render_context_; }
private:
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>;