Set flags directly on Renderer class.

This removes a dependency on mjvScene from the App class.

PiperOrigin-RevId: 824983816
Change-Id: I20dd411e6359ee411f9b0b86d4442c090ba4bd5c
This commit is contained in:
Haroon Qureshi
2025-10-28 05:23:00 -07:00
committed by Copybara-Service
parent 7ba0d96d77
commit 3b79d3f14b
2 changed files with 8 additions and 3 deletions
+4
View File
@@ -55,6 +55,10 @@ class Renderer {
// Saves a screenshot of the simulation state into the given file.
void SaveScreenshot(const std::string& filename, int width, int height);
// Rendering flags.
mjtByte GetFlag(mjtRndFlag flag) const { return scene_.flags[flag];}
void SetFlag(mjtRndFlag flag, mjtByte value) { scene_.flags[flag] = value; }
// Returns the mjvScene used by the renderer.
mjvScene& GetScene() { return scene_; }